Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

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

Status
Not open for further replies.

HarshGanesh

Mechanical
Jul 16, 2016
2
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.
 
Replies continue below

Recommended for you

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor