I have the following code below to delete some notes in a title block; then enter them in the way I like.
The problem is that the note parameters or x, and y are not the same as the cursor location.
Why are the two of these different?
Or how should I be selecting the notes?
Names doesn't seem to be the right path templates could change and therefore names would be
different?
Also this doesn't work correctly unless I zoom to the title block; if I'm zoomed to max it tries to pick
other items, so I've added a zoom to keep it the same.
For now this stuff works for me; but I just wanted to know why it was not working the way it was suppose
to and what I wasn't doing right?
'boolStatus = Part.Extension.SelectByID2(Note, "NOTE", 0.7584, 0.035, 0, False, 0, Nothing, 0)
'Part.EditDelete
'Below is the note location by way of actual note parameters?
'boolStatus = Part.Extension.SelectByID2(Note, "NOTE", 1.5917335, 0.1003577, 0, True, 0, Nothing, 0)
'boolStatus = Part.Extension.SelectByID2(Note, "NOTE", 1.5927487, 0.0870927, 0, True, 0, Nothing, 0)
'boolStatus = Part.Extension.SelectByID2(Note, "NOTE", 1.4875112, 0.0738931, 0, True, 0, Nothing, 0)
'boolStatus = Part.Extension.SelectByID2(Note, "NOTE", 1.5510261, 0.0363082, 0, True, 0, Nothing, 0)
'=========
'Note deletion does not work correctly unless you are zoomed into that location?
'The location is by way of the cursor coordiants at the bottom of the screen?
Part.ViewZoomTo2 0.507227071708, 0.1274311707953, 0, 0.8862202398957, -0.002615504563233, 0
'Title Line 1 'DetailItem79
boolStatus = Part.Extension.SelectByID2(Note, "NOTE", 0.7953007, 0.0471673, 0, True, 0, Nothing, 0)
'Title Line 2 'DetailItem80
boolStatus = Part.Extension.SelectByID2(Note, "NOTE", 0.7953007, 0.0404415, 0, True, 0, Nothing, 0)
'FIRST MADE FOR 'DetailItem81
boolStatus = Part.Extension.SelectByID2(Note, "NOTE", 0.7469443, 0.0354551, 0, True, 0, Nothing, 0)
'Title Line 2 'DetailItem80
boolStatus = Part.Extension.SelectByID2(Note, "NOTE", 0.7779063, 0.0166691, 0, True, 0, Nothing, 0)
Part.EditDelete
Part.ClearSelection2 True
SolidworksApi macros