Cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Approximation data for TxComponent objects (JT files)

Pioneer
Pioneer

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.

 

Thanks !

9 REPLIES 9

Re: How to get Approximation data for TxComponent objects (JT files)

Genius
Genius

sandeepmore,

 

just get an approximation for all geometry objects in the TxComponent.

Witalij.

Re: How to get Approximation data for TxComponent objects (JT files)

Pioneer
Pioneer

How to get geometry objects from TxComponent object?

Re: How to get Approximation data for TxComponent objects (JT files)

Genius
Genius

Dim component As TxComponent

component.GetAllDescendants(New TxTypeFilter(GetType(ITx2Or3DimensionalGeometry)))

Re: How to get Approximation data for TxComponent objects (JT files)

Pioneer
Pioneer

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 ?

 

Regards,

Sandeep

 

 

Re: How to get Approximation data for TxComponent objects (JT files)

Siemens Legend Siemens Legend
Siemens Legend

hi,

to enable modeling you can either do it via the ui with the "Set Modeling Scope" or use the api ITxComponenet.

SetModelingScope()

Re: How to get Approximation data for TxComponent objects (JT files)

Pioneer
Pioneer
why Set Modeling Scope button is disabled on UI for Compound parts ? how I can enable that ? Tried through code is also not working

Any idea on this ?

Regards,
Sandeep

Re: How to get Approximation data for TxComponent objects (JT files)

Genius
Genius

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.

 

Witalij.

Re: How to get Approximation data for TxComponent objects (JT files)

Pioneer
Pioneer

Attached is screen shot which show a part is unable to set for modelling scope ? How I can enable the modelling scope for this part so that I can get the SubGroup and Geometry data ?

 

Thanks 

Sandeep

Re: How to get Approximation data for TxComponent objects (JT files)

Creator
Creator

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:

TxApplication.CommandsManager.ExecuteCommand("ComponentOperations.LoadComponentsAtEntityLevel");

The Component has to be selected when u run that line.

 

 

Henrik