Message 1 of 10
Cannot select object in component using activeSelections
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to select a sketch that resides within a component. However, I get a runtime error.
The below snippet shows trying to select a sketch in a component and then a sketch that resides in the rootComponent.
ui.activeSelections.add(app.activeProduct.rootComponent.occurrences.item(0).component.sketches[0])
RuntimeError: 3 : invalid argument entity
ui.activeSelections.add(app.activeProduct.rootComponent.sketches[0])
True
If I manually select the sketch in the timeline and grab the selection from activeSelections, I can add it back to activeSelections. So it seems the object I select manually is wrong in some way?