×
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

Part properties

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 ?
 

RE: Part properties

What exactly are you looking to do? Simply edit existing attributes; add, edit, and delete attributes; or something else?

RE: Part properties

Yes. Our drawing formats are populated and edited from a GRIP program and attributes.

"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand

RE: Part properties

(OP)
I'm trying to read values of those user defined partfile attributes and then write them out to text file.

RE: Part properties

Here is some code snipets:

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

Hi guys

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

UG does not support VB up through NX2. NX3 may change that.

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

Thnx man

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

Sorry, I don't write C code.

"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand

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