Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations dmapguru 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
Joined
Jul 16, 2016
Messages
2
Location
GB
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.
 
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

Back
Top