ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
JMJohn Malmberg02/09/2009

We have a sketch picture on the Sheet Format of our drawings.  We would like to run a macro that would open all the drawings in a folder and delete the picture and then save.  The only problem I am having is selecting the sketch picture in the drawing.

What I would like to do is select all the sketch pictures in the Sheet Format and cycle through them to determine which one I want to delete.

I know I need to use the GetSketchPictures command, but I can not figure out how to call it correctly.

A easy way would be to use the following but the picture name could be different from drawing to drawing.

'boolstatus = Part.Extension.SelectByID2("Sketch Picture4", "SKETCHBITMAP", 0.2281728724532, 0.1740483537728, 0, False, 0, Nothing, 0)
'Part.EditDelete

Any Help or Ideas?