Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ComponentList object - explanation please ?

Message 1 of 2
139 Views, 1 Reply

ComponentList object - explanation please ?

Seeking assistance:


Can someone explain the ComponentList object to me ... and how it differs from the Components object ? There are a bunch of other ....List objects - so I assume they are all similar.


It appears like I can create a transient ComponentList object (say - a collection of components extracted from the design that match certain criteria) - and rather than traverse the main design to extract data, I could work on the transient ComponentList object (say to extract a bunch of data and output to a file).


If I am anywhere close to correct - can someone provide an example ? (to be clear - I have already developed scripts that do this ... I was just playing around with different approaches).



Message 2 of 2
in reply to: gvisca44

Hi @gvisca44 .


A ComponentList object is a collection of Component objects, which can be retrieved with the item method. 


I think the ComponentList object may be obtained by the return value of a method with a property, but I could not find the situation in which it could be obtained.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th

Autodesk Design & Make Report