Message 1 of 6
Problem with createForAssemblyContext
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
With some scenes I have error when calling createForAssemblyContext function.
I got error: "The object has been in root component."
This is how my code looks like:
for occ in rootComp.allOccurrences: if occ.isVisible: comp = occ.component for body in comp.bRepBodies: b = body.createForAssemblyContext(occ)
assemblyContext for such bodies returns None.
Is there any way to fix this issue? Maybe different way of getting bRepBodies?
--
Grzegorz