Sheet API
Sheet API
(OP)
Hi there,
I'm trying to edit a note on the CURRENT drawing sheet using VB.
When I record a macro it looks something like:
...
Model.SelectByID("DetailItem56@Sheet Format1", "NOTE", ...)
...
This is the selection of the note.
Now I see that if I edit the note on sheet 3 the recorded macro selects ... DetailItem56@Sheet Format3 ...
So I will need to find the sheet number of the current sheet in order to select the note on the current sheet.
Isn't there an easier and quicker way to do this?
Is there a way to edit/access the note directly by name if you know the currentsheet?
What does the Sheet Format1 means? Do they mean Sheet number? What sheet property returns this number?
I'm trying to edit a note on the CURRENT drawing sheet using VB.
When I record a macro it looks something like:
...
Model.SelectByID("DetailItem56@Sheet Format1", "NOTE", ...)
...
This is the selection of the note.
Now I see that if I edit the note on sheet 3 the recorded macro selects ... DetailItem56@Sheet Format3 ...
So I will need to find the sheet number of the current sheet in order to select the note on the current sheet.
Isn't there an easier and quicker way to do this?
Is there a way to edit/access the note directly by name if you know the currentsheet?
What does the Sheet Format1 means? Do they mean Sheet number? What sheet property returns this number?






RE: Sheet API
f you look on your model tree, under each sheet you will see an icon for the sheet's format, if there is a format associated with the sheet. This is were you will see the origin of the format name.
For instance, Model.SelectByID("DetailItem56@Sheet Format1", "NOTE", ...) indicates that DetailItem56 belongs to Sheet Format1, which belongs to whichever sheet was active. You should see tis on the model tree, as well. If you rename the format in the model tree (right-click format icon-->Properties-->Name), you will see that name carry through when you record a macro.