Message 1 of 2
Axis isn't created in active component
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to create an axis into an occurrence that I created.
When done manually in F360, the axis gets created inside of the activated new occurrence, but that isn't the case when doing the same thing in api, what happens is that the axis gets created in the root component although it's not activated.
So, what is going wrong here?
Thanks,
Saeed.
occ = rootComp.occurrences.addNewComponent(adsk.core.Matrix3D.create())
occ.component.name = 'Component'
scale_body.moveToComponent(occ)
occ.activate()
axisInput = axes.createInput()
ref_axis = axisInput.setByTwoPoints(body_ver1, body_ver2)
axes.add(axisInput)
Saeed Hamza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.