Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Journal to select line, and create arc or square?

Status
Not open for further replies.

hppianoman

Mechanical
Mar 8, 2012
7
Good Morning,


I am new to NX and VB journaling, and am needing to write some journal or macro for NX7.5:

I need to be able to select a line, and have the journal read the line information.
If the line is not a centerline, then I need a warning message sent to the screen stating this, and have the user click OK and then continue with the program.
If the line is a "yellow" centerline, then I need the program to create (2) .050 circles, centered on the line, one circle .150 in from each end point.
If the line is a "fuschia" centerline, then I need the program to create (2) .050 squares, centered on the line, one square .150 in from each end point.
Also, when the squares are created, they need to remain at zero degrees, no matter what angle the fuschia centerline is at.
When I am done selecting lines, I need to be able to quit out of the program.
This needs to be done in "Sheet Metal", not in Drafting, as I am doing this with the Flat-Pattern.

Any help would be appreciated.

Thanks,
hppianoman

 
Replies continue below

Recommended for you

Status
Not open for further replies.

Part and Inventory Search

Sponsor