Hello everyone,
I'm trying to create an script for a customer and I need to get every path of all external components. As you can see, this is a very simple script where I get components on tree, then I do a count to ensure the number is correct and then I try to get the path of each one:
Python Script, API Version = V252
all_components = GetRootPart().Components
n_components = all_components.Count
print(n_components)
for i in range(0,n_components):
component = GetRootPart().Components[i]
print(component.Document.Path)
With this example:

The result I'm getting is this:

That path corresponds to the absolute assembly:

How can I do it to get the path for the three components called "A1", "A2" and "A3"?
Thanks for your help