×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Sheet API

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?

RE: Sheet API

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.

All this machinery making modern music can still be open-hearted.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources