insert occurrences directly from the ID string.

insert occurrences directly from the ID string.

maeokaQ2NB3
Advocate Advocate
454 Views
2 Replies
Message 1 of 3

insert occurrences directly from the ID string.

maeokaQ2NB3
Advocate
Advocate

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> >

0 Likes
Accepted solutions (1)
455 Views
2 Replies
Replies (2)
Message 2 of 3

goyals
Autodesk
Autodesk
Accepted solution

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
Advocate
Advocate
 
We will do it the same way as before.
0 Likes