cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DIAGRAM API : How can I remove DrawingObjects from a diagram ?

CWaltking
Super Contributor

Hello everyone,

 

I would like to remove dublicates ("doublons" in french) on diagrams using MEGA API.

 

My script is ready and I know how to identify my dublicates but I simply don't know how to remove DrawingItems from my drawing object. I am looking for the opposit of the MegaObjectInsert function. Does anybody have an idea ?

 

 

Thanks in advance.

 

Christoph  

 

1 Reply

CWaltking
Super Contributor

I just found the answer by myself :

   odrawingItem.Erase

 

It's as simple as that. 🙂