×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

About blanking object function.

About blanking object function.

About blanking object function.

(OP)
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

RE: About blanking object function.

The C function is: UF_OBJ_set_blank_status


extern int UF_OBJ_set_blank_status (
tag_t object_id,
int blank_status );



in C++ under UgDisplayableObject there is a function: blank()
 
Blank the invoking object.
void blank ( );

-Dave
PLM Exchange
http://plmexchange.net
http://groups.google.com/group/NX_CAX/

RE: About blanking object function.

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources