Message 1 of 3

Not applicable
03-22-2016
09:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to move a body from one component to another using the code below. I get an Invalid Input Target Runtime error. I know the occurence target exists. What would cause this error?
for body in self.objectBodySet: body.moveToComponent(self.rwoOccurences().item(0)) for body in self.holderBodySet: body.moveToComponent(self.holderOccurences().item(0)) def rwohOccurences(self): occs =self.design.rootComponent.allOccurrencesByComponent(self.RWOH) if occs.count==0: self.ui.messageBox("no occurences") return self.design.rootComponent.allOccurrencesByComponent(self.RWOH)
Solved! Go to Solution.