Community
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.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

insert occurrences directly from the ID string.

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
maeokaQ2NB3
205 Views, 2 Replies

insert occurrences directly from the ID string.

Hi.

 

I want to insert occurrences directly from the ID string.

Now,I insert occurrences by FolderName&FileName  with For loop, but very slow for me.

Almost all of the same files are inserted, so I would like to access them directly with the ID in the list. Please tell me how to write dataFile.

addByInsert(dataFile, transform, isReferencedComponent)

 

dataFile value

<adsk.fusion.Occurrence; proxy of <Swig Object of type 'std::vector< adsk::core::Ptr< adsk::fusion::Occurrence > >::value_type *' at 0x0000019B01BAXXXX> >

2 REPLIES 2
Message 2 of 3
goyals
in reply to: maeokaQ2NB3

Unfortunately you can not create datafile object on fly using ID at the moment and you need to iterate through data folders only to get it.



Shyam Goyal
Sr. Software Dev. Manager
Message 3 of 3
maeokaQ2NB3
in reply to: goyals

 
We will do it the same way as before.

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