Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
import adsk.core
app = adsk.core.Application.get()
product = app.activeProduct
design = adsk.fusion.Design.cast(product)
root = design.rootComponent
for die in dies:
id = die[0]
boundary = die[1]
boundaryName = f'{boundary.split("/")[len(boundary.split("/"))-1].split(".")[0]}:1'
insertionAngle = die[2]
iges = app.importManager.createIGESImportOptions(boundary)
iges.isViewFit = False
app.importManager.importToTarget(iges, root)
newBoundary = design.activeComponent.occurrences.itemByName(boundaryName)
I am trying to import an IGES file into my design. It is creating a new occurrence, but the occurrence is empty.
Am I using this function incorrectly? I am not sure what I am doing wrong.
Thanks
Solved! Go to Solution.