Message 1 of 2
addByInsert is not working for occurrences in Python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Team,
I'm trying to insert an existing file (created in the program way too) into existing design.
doc1 = app.documents.add(adsk.core.DocumentTypes.FusionDesignDocumentType)
doc1.saveAs('Child', folder, '', '')
ret=doc1.close(True)
ui.messageBox(str(ret))
rootComp = design.rootComponent
matrix = adsk.core.Matrix3D.create()
rootComp.occurrences.addByInsert(doc1, matrix, True) # error
But getting an error message:
Could you please help me with this issue?