AnsweredAssumed Answered

Delete annotation style

Question asked by Chris Manger on Nov 18, 2015
Latest reply on Nov 19, 2015 by Steven Barry

I have a macro that uses the code below to insert a annotation favorite.   Before inserting though, I woudl like to delete the favorite if it exist in the drawing.  I found the Method to do this but I am not sure how to call it correctly.

 

Code to insert the annotation favorite:

    Set myAnnotation = swDrawing.Extension
    Set myAnnotation = swDrawing.Extension.InsertAnnotationFavorite(FavoriteNameHere)

 

The method to delete the style

2015 SOLIDWORKS API Help - DeleteStyle Method (IAnnotation)

Outcomes