- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to use Occurrences.addExistingComponent to copy a subcomponent of a referenced component into a (non-referenced) subcomponent of the current design. However, it appears that this operation is unsupported. What I'm doing appears to work fine when no referenced components are involved, or if the copy source is itself a referenced component; but when the copy source is a subcomponent of a referenced component, I get a "RuntimeError: 3 : add operation failed".
Trying to achieve the same thing by copying and pasting from the UI doesn't appear to work either, so this may not strictly be an API issue.
(Relatedly, I'm finding that BRepBody.copyToComponent fails to copy bodies from within referenced components. This doesn't work in the UI either, as described in https://forums.autodesk.com/t5/fusion-360-design-validate/copy-paste-body-from-linked-component/m-p/...)
Is there some sort of API call I'm missing that I can use to "localize" an external subcomponent to the current design? Or any other method/workaround for creating a local copy of an external subcomponent?
Tack-on tanget: I wanted to provide a script that demonstrated this issue, but I couldn't find API calls that would let me set up a referenced component between two Documents. If someone could point me in the right direction there, I'd be happy to add a demo script.
Solved! Go to Solution.
