Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

UG Open

Status
Not open for further replies.

psiwak

Aerospace
Aug 17, 2006
58
Hi all,

I would like to imnprove work in drafting and wants to create program to hide components in view. Typical problem in my job is when I want to add new component to assy this component appear on all views. :(

I wrote code in C, but I have problem with component selection. I use UF_UI_select_with_class_dialog function with filter for componets but I cant select components in drafting view or ANT. I have to switch to Format==>Dispaly sheet and then I can select components in 3D.
How to select components in drafting? Or any sugestions?

UF_UI_select_with_class_dialog(cue, title, UF_UI_SEL_SCOPE_ANY_IN_ASSEMBLY, NULL, NULL, &response, &count, &objects);

Regards
Siwy
 
Replies continue below

Recommended for you

What version of NX are you using?

before you invest too much time and effort have a look at NX-5 because I think I have read here that there are new functions for managing hiding components in drawing views.

Best Regards

Hudson
 
I'm runnig on NX2. Main cutomer had to change to NX4 before end of 2007 but sof far we are workin on NX2. :(

Some departments wants to have GA and details on one file, and in this case we have to waste a lot of time if we change something in assy structure.
I divide process to 2 stages, first stage is almost finish. I have code which works, but I have to select componets only on 3D. Next stage will be the same code plus UI Styler.
 
Well for what it is worth the way we tend to hide components in assembly drawing is to simply move them to another layer and set that layer to not-visible in view.

We occasionally add a reference set to a component so that a flat pattern is visible for the drawing which would in all other assembly contexts be hidden.

Now you could standardize and automate these processes but they're generally fairly easy to do even without creating a program to manage it for you. If it was me I might create a macro but nothing much more, since I wouldn't see the benefit of putting too much time into it unless you use it so very frequently that you would get some savings from doing so.

Best Regards

Hudson
 
We cant free move components to any layers. We have to work according to PLM procedures (eg. for drawing we can only use entire part ref set, components have to be on first layer etc). I wrote some GRIP codes to mannage this (turn on/off some layers on views, set propoer ref set etc) but GRIP cant hide componetns on drawings.
 
Sounds like somebody went too far with the system settings. Is this under teamcenter? I'm sorry to hear that they've stymied one of the best available methods for you. I would find it extremely frustrating. Now just on the off chance that you're working under the GM system then I'd say you may be wrong about those limitations, and I may be able to help further if you share that with me.

GRIP is still supported but hasn't been developed for quite a few versions. The cutoff point was about the same time when assemblies were introduced so naturally anything to do with them can't be done using grip.

Best Regards

Hudson
 
Sounds like somebody went too far with the system settings.
Propably (99%)UGS set up system for RR.
Is this under teamcenter?.
Yes it is under TcEng but I work in native.

Best Regards
Siwy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor