Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

NXOpen question

Status
Not open for further replies.

claforet

Mechanical
Joined
Apr 8, 2010
Messages
54
Location
US
Hi,

I'm using NXOpen to check some assembly clearances. I'd like to set the default clearance zone (say, 5mm) for the assembly clearance using the UFClear.SetDefaultClearanceZone method. The problem is, the clearance zone argumenat this method accepts is a tag object. How do I know what the tag is for a 5mm clearance zone?

Thanks.
 
Claforet,

There is an example in "%UGII_BASE_DIR%\ugopen\ufd_clear.c" which may prove helpful. It creates a clearance set (and returns its tag) and then uses that tag and a tag for an expression with the value for the size of the zone to setting the clearance zone. (and it has many other example operations).

So, the tag for the clearance value in UF_CLEAR_set_default_clear_zone is the one that is used by UF_MODL_create_exp_tag when creating the size expression.

Regards, Joe
 
Thanks jpetach. But do you know if there is a function which will take in the value of the expression and output the tag (I want to be able to easily input a value for the clearance zone)?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top