Delete, not Remove, Occurence

Delete, not Remove, Occurence

casey.rogers
Alumni Alumni
928 Views
2 Replies
Message 1 of 3

Delete, not Remove, Occurence

casey.rogers
Alumni
Alumni

My script creates a combine feature with isNewComponent set to True. It then exports the component created by the combine feature and deletes the combine feature. The geometry contained in the component created by the combine disappears when I delete the combine, but the component itself (as shown in the browser) does not go away. This is a problem because my script repeats this proces 100s of times which fills up the timeline and browser with new components and slows Fusion to a crawl.

I grabbed the occurrence object via the timeline and called .deleteMe on it, but this didn't fix the problem.

timeline = templateDesign.timeline

tempFeature = timeline.item(timeline.markerPosition - 1).entity

tempFeature.deleteMe()
Calling deleteMe got rid of the occurence in the browser but it didn't get rid of the new component feature in the timeline and it also added a "remove instance" feature to the timeline. How do I "delete" the occurence, not "remove" it?

0 Likes
Accepted solutions (1)
929 Views
2 Replies
Replies (2)
Message 2 of 3

liujac
Alumni
Alumni
Accepted solution

Hi,

 

This should be a defect about Occurrence.deleteMe. I logged a defect for this issue. We will fix it. 

 

Thanks,

Jack

Message 3 of 3

liujac
Alumni
Alumni

This issue about occurrence.delete has been fixed. The fix has been included in January 23, 2016 Update.

 

Jack

0 Likes