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
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.
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.
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