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!

About blanking object function.

Status
Not open for further replies.

ugsnx2

Computer
Feb 9, 2007
3
hello people,

I am not so familiar with the UG NX2 functionality. But i have been using it in my code and at a certain point now i have to use a blank function to blank out a curve in my models or drawings through the code..does anyone know of the blank functions or the functions that i should use to blank the curve out. I am coding in C++. Please let me know of the code that i can use.

thanks
tanvi
 
Replies continue below

Recommended for you

Hi Dave,

thanks for your response. I found the function and i am able to understand how i many proceed with this.. However i have a question,

as you can see below before i call the blanking function, i have to find out the tag of the part i want to blank or the object_id..now what i have to do is.. find the tag and then compare it with the type i wanna blank. if the tag_id or object_id matches the type, i will blank that object_id out.. so just look at the code below and tell me whether the tag_id or object_id here will be the "part" n the type will be "type" that i should match to proceed with the blanking function.. or how else can i find out the tag otherwise.. Please note: i dont have a name for that object. let me know if i m right or wrong!!



num_parts = UF_PART_ask_num_parts();
for ( curr_part=0 ; curr_part < num_parts ; curr_part++ )
{
/* Get the part tag for the current part number of the
loaded part.
*/
part = UF_PART_ask_nth_part( curr_part );

count_1 = 0;
type = UF_feature_type;
feature = NULL_TAG;
/* Start the cycling process by passing in a NULL_TAG. */
UF_OBJ_cycle_objs_in_part( part, type, &feature );
/* Keep cycling until there are no more features to cycle. */
while ( feature != NULL_TAG )
{
count_1++;
UF_OBJ_cycle_objs_in_part( part, type, &feature );
}


thanks
tanvi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor