×
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

VB code to Select Note on a drawing using X and Y co-ordinates

VB code to Select Note on a drawing using X and Y co-ordinates

VB code to Select Note on a drawing using X and Y co-ordinates

(OP)
I am looking for a help to create VB code in NX for selecting notes on a drawing sheet, If I know X and Y co-ordinates.
The code should select all notes under that rectangular area.
After that I want to delete those notes.
E.g. My point 1 is at ( x1,y1) and point 2 is at (x2, y2).
Then is should select all notes in rectangular area created by those 2 points and then delete.

RE: VB code to Select Note on a drawing using X and Y co-ordinates

This link shows some code that is very similar to what you want to do. Note that it only considers the annotation origin point when deciding if the note is in the rectangle or not. If you want to find notes that are completely contained within the specified rectangle, you will have to do some more processing.

www.nxjournaling.com

RE: VB code to Select Note on a drawing using X and Y co-ordinates

(OP)
Thank you very much

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