Part properties
Part properties
(OP)
Hello
I'm seeking a method to handle user defined UG part attribute values with UG GRIP. Has anybody done that ?
I'm seeking a method to handle user defined UG part attribute values with UG GRIP. Has anybody done that ?





RE: Part properties
RE: Part properties
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand
RE: Part properties
RE: Part properties
Reading an attribute to a variable:
attvar = &attvl(part,'attribute_name',iferr,l00:)
Replace attribute_name with your attribute. You can use an array in a loop.
Create a text file:
create/txt,10,'text_file_name.txt',iferr,err0:
Writing a line of data to a text file:
Format mask
fmt1='#@@@@@@@@ #@@@@@@@@@@@@@@@@@ #@@@@@@@@@@@@'
write/10,using,fmt1,attr1, attr2, attr3
file/txt,10
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand
RE: Part properties
I am lokking for function to get UG part attrubutes using VB6. I tried to make C/C++ program to get attr. using API but I failed on that. I don know how tyo do that.
Can you help me pls?
Tnx
RE: Part properties
Your only methods for getting atributes out of UG are GRIP or C/C++.
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand
RE: Part properties
but I unfortunately I do have problem with C/C++ API functions. Code runs through UF_ATTR_ask_part_attrs_in_file function but all parameter are empty. So I dont know how to write correct code pls help me
Tnx Miro V
RE: Part properties
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand