Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NX11 - Create assembly labels for components 2

Status
Not open for further replies.

Kenja824

Automotive
Nov 5, 2014
949
We have a program from one customer that will label all of the components on an iso view.

We click the button, select a component, select the location we want the note to be placed, then attach the leader to the component. That note will automatically read the TOOL_ID attribute of the selected component, copy it and paste it into the note. This will only be a note and not associated to the attribute.

I know how to attach a note to a component's attribute, but it will always keep it associated.

The problem is we cannot use this button for other customers. So I need to find a way to do the same thing. Currently all of the employees have to attach notes and manually type the TOOL_ID into the note for each component.

It would be awesome if we can just select a component inside the view window, attach the note to the edge of the component in the view and place a note and that note will only be a note but will have the TOOL_ID attribute in the note. (Not associated).

IS there a way to do this
 
Replies continue below

Recommended for you

MANox said:
DraftingNote is better then IdSymbol.
That depends on the situation.

MANox said:
But for DraftingNoteBuilder I can't find corresponding command.
Drafting note objects don't have a balloon property associated with them. What exactly are you trying to accomplish?

www.nxjournaling.com
 
Hey cowski,

cowski said:
Drafting note objects don't have a balloon property associated with them. What exactly are you trying to accomplish?
Standard I use Autobaloon. In part list settings I have Symbol as Circle.
When I use this journal Drafting Note is as Underline.
I can't find place to change this settings.

Best regards
MANok
NX 12 & TC10
 
MANox,
The code above isn't meant to be used in conjunction with a parts list. It creates labels (note objects with a leader attached), it does not create ID balloons (circle, triangle up, square, etc).

www.nxjournaling.com
 
Cowski

In your last reply to this thread, you gave me code to create labels. Early in the thread, you asked this question...

cowski said:
What drawing view representation option do you use? Exact, Exact (pre-NX 8.5), lightweight, other?

The NX setup we used was Exact. However, I was about to try and manipulate this code to grab two different attributes "SPOT_ID" and "ZONE_STA_ROBOT", and realized for GM work, we use "Pre-NX 8.5" as our setting.

Can I ask what I would need to change to get it to work with this? Currently it wont let me select any edges. I tried to change the view setting to check the box for "extracted edges" and it lets me select it then, but then it errors out.
 
In the new "exact" views, all the geometry in the view is "drafting curves"; the API added a function that lets you easily see what component the drafting curve geometry is associated to. The old "pre NX 8.5" views consist of edges, silhouette curves, and section curves; the edges are easy to trace back to the component, but the other types are more difficult. The journal here works with pre NX 8.5 views (see GetComponentOfBalloon and its supporting subroutines).

The good news: it is possible
The bad news: it isn't a trivial change

www.nxjournaling.com
 
Thanks cowski

I just saw this. For some reason I never saw an email come through when you replied. Been happening to me on and off lately.

Sounds like its a good thing edges will do the job.... I hope.

Definitely gonna be a trial by error trying to make this work I think. lol
 
Looks like I got lucky. Turns out they arent doing exactly as I thought and they can just switch their drafting setting to "Exact" before adding the views. Then the code I already have works and only needed a little tweaking to pull the correct attributes. Which is a real good thing because changing it over was definitely out of my level of ability. lol
 
Crap! Turns out they are doing what I originally thought. They use the GM Toolkit that has a label button to add certain notes. That program needs the views to be "Exact Pre-NX 8.5". Which means the original code I had wont work.

Back to the drawing board.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor