How do you actually use the TxLibraryStorage Class class for Process Simulate? There is no assisgment method and nothing in the constructor to pass a component object. So how do I pass a component to the class so I can access the Fullpath property?
Go to Solution.
Are you trying to find the file path location of an object?
Here is an example (note if the component is open for modeling, then the StorageObject is of type TxLocalStorage)
ITxObject obj = TxApplication.ActiveSelection.GetItems();
TxStorage storage = (obj as ITxStorable).StorageObject;
TxLibraryStorage libraryStorage = storage as TxLibraryStorage;
if (libraryStorage != null)
string cojtPath = libraryStorage.FullPath;
//your logic here
Watch Replays of Previous Topics