Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sheet API

Status
Not open for further replies.

Hacaro

Industrial
Aug 14, 2002
10
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?

 
Replies continue below

Recommended for you

Apparently, you are editing a note in the sheet format, not on the sheet itself.

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.

[bat]All this machinery making modern music can still be open-hearted.[bat]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor