Cone properties

I have a 3D microstation file in V8i with basic components like cone, torus etc. In the properties we can view the Radius1, center1 and other such. Is there any mVBA that runs and can extract these properties. I can send a sample file if needed. Could some help.

Thanks,

Ramesh.P.K.

Parents
  • Hi Ramesh,

    please be aware this is general Developers and Programming forum, not the forum about MicroStation programming. I recommend to move the post to MicroStation Programming forum. Do not ask again, but move the post. To do it, use More > Move tool available under your original post.

    I have a 3D microstation file in V8i

    It's not enough details information! Please read and follow the forum best practices. When discussing any development topic, to specify used version exactly is crucial and mandatory. APIs have evolved and there were released many versions of V8i (as well as current CONNECT Edition) when some features were added or bugs fixed in later versions.

    with basic components like cone, torus etc.

    Please provide exact list. There are many 3D elements available in MicroStation and some are well supported from very beginning in MicroStation VBA, the support of some others was added in later V8i releases, but some are not supported in VBA (and e.g. native C/C++ API has to be used).

    Is there any mVBA that runs and can extract these properties.

    Are you asking for help with own code (which is perfectly fine) or you want to ask somebody to write a code for you?

    Without sharing code, which is usually the first step, it's more complicated to discuss your question. Also, without knowing exactly what type of elements you want to scan, what properties you want to extract ("these properties" is not exact specification suitable for writing a code) and also to what format the data should be exported, an advice can be hardly provided.

    Could some help.

    The basic 3D solids types you mentioned (cone, torus) are supported in MicroStation VBA and proper classes are available (ConeElement object, SmartSolidElement object). So to access their parameters would be quite simple.

    When an element is not supported directly, PropertyHandlers can be used to access the proerties. But you should be aware not all properties are supported, so it has to be tested with specific elements and their properties.

    With regards,

      Jan

Reply
  • Hi Ramesh,

    please be aware this is general Developers and Programming forum, not the forum about MicroStation programming. I recommend to move the post to MicroStation Programming forum. Do not ask again, but move the post. To do it, use More > Move tool available under your original post.

    I have a 3D microstation file in V8i

    It's not enough details information! Please read and follow the forum best practices. When discussing any development topic, to specify used version exactly is crucial and mandatory. APIs have evolved and there were released many versions of V8i (as well as current CONNECT Edition) when some features were added or bugs fixed in later versions.

    with basic components like cone, torus etc.

    Please provide exact list. There are many 3D elements available in MicroStation and some are well supported from very beginning in MicroStation VBA, the support of some others was added in later V8i releases, but some are not supported in VBA (and e.g. native C/C++ API has to be used).

    Is there any mVBA that runs and can extract these properties.

    Are you asking for help with own code (which is perfectly fine) or you want to ask somebody to write a code for you?

    Without sharing code, which is usually the first step, it's more complicated to discuss your question. Also, without knowing exactly what type of elements you want to scan, what properties you want to extract ("these properties" is not exact specification suitable for writing a code) and also to what format the data should be exported, an advice can be hardly provided.

    Could some help.

    The basic 3D solids types you mentioned (cone, torus) are supported in MicroStation VBA and proper classes are available (ConeElement object, SmartSolidElement object). So to access their parameters would be quite simple.

    When an element is not supported directly, PropertyHandlers can be used to access the proerties. But you should be aware not all properties are supported, so it has to be tested with specific elements and their properties.

    With regards,

      Jan

Children
No Data