AnsweredAssumed Answered

Get Model Document Path via API

Question asked by Jana Stahn on Feb 5, 2019
Latest reply on Feb 5, 2019 by Jana Stahn

I want to get the string via API that is listed in the component properties under "Model Document Path".

Is there some API command for that or do I need to build up that string myself?



- for nonvirtual components, I want to get the file path (which can be gotten via IModelDoc2.GetPathName() or IComponent2.GetPathName()).



- for virtual components, I want to get the name of the component, followed by an @, followed by the name of its parent component.