Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Which is correct way to get all Geometry data from Cell ?

Pioneer
Pioneer

I am seeing below 2 ways to get all geometry data from a cell :

1. With TxComponent.SetModelingScope() as below :

         if(TxComponent.IsOpenForModeling)
         {
            TxComponent.SetModelingScope()
         }

2. or With libraryStorageObject as below :

          ITxStorable storableObj = documentObject.objValue as ITxStorable;
         TxLibraryStorage libraryStorageObject = storableObj.StorageObject as TxLibraryStorage;
         if ((libraryStorageObject != null) && libraryStorageObject.HasDetailedRepresentation)
          {
                if ((txObject as ITxComponent).RepresentationType == TxRepresentationType.United)
                  {
                      libraryStorageObject.Reload(TxRepresentationLevel.Detailed);
                  }

            }

1 REPLY

Re: Which is correct way to get all Geometry data from Cell ?

Siemens Legend Siemens Legend
Siemens Legend

Hi,

the first methods opens the component for modeling (and as a side effects loads its entities as well),

and the 2nd loads the entities.