I am able to get the approximation data for Geometry data. How I can get the approximation data for the TxComponent (or JT files) object.
I am not getting anything from above GetAllDescendants API. I am seeing TxComponent having attribute storageLibrary which has .Co file path (not sure will it help -- just FYI) . How I can get the geometry approximation data for this component ?
Also I read one post that to get geometry object of TxComponent, modeling should be enabled. But for my case I am seeing isModelingEanabled as false ? if this is reason how do I enable modeling ?
to enable modeling you can either do it via the ui with the "Set Modeling Scope" or use the api ITxComponenet.
The compound part is an container that aloows to group the parts. You have set the single parts in the modelling in order to get the approxinmation.
You need to mark the Component and click on:
Modeling -> Entity Level -> Load the Entity Level Representation
After that u can find the ITx2Or3DimensionalGeometry which have a property Approximation with the Approximation data.
Via Api you can load the Entity Level with:
The Component has to be selected when u run that line.