Hi
I am running Solidworks 2018.
I tried to insert a revision block to the drawing. And I would change the attribute of it after. However, when I used MakeSketchBlockFromFile method like this
Set swSktBlkDef = swSktManager.MakeSketchBlockFromFile(swMathPoint, FileName, True, scl, angle)
I could insert the block successfully but the could not do anything after. During debugging, when I moved cursor over swSktBlkDef, it always showed “nothing”. Like nothing was assigned to swSktBlkDef. I couldn’t get instance from this block definition as it is empty.
Can anyone help?
SolidworksApi/macros