Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing Quotes from String Expression 1

Status
Not open for further replies.

ChaseWichert

Mining
Jan 4, 2012
147
I was wondering how you would remove the quotes on an expression. I want to use the string to populate the part attribute and then use that attribute to populate a parts list in another file.

Thanks in advance!
 
Replies continue below

Recommended for you

What version of NX?
Do you have a current workflow for this process? If so, what is it?
 
Have you created a part attribute from the expression? and the quotes show up in there? and in the parts list?

What version of NX are you on?
 
Sorry I even told myself I wouldn't forget to put that, 7.5.5.4
We are trying to get most of our stuff automated and we are at the very beginning of that process, so I am trying to make this fool proof by bringing ever expression up to the top level drawing.

I am trying to create the workflow. Basically it is a pin assembly, that includes a Pin, Retainer, and Retainer Pin.
The individual components feed an assembly file and the assembly file will feed the drawing file. The drawing file will automatically populate using the attributes of the assembly files that are added. Does that help?
 
Yeah Jerry, the quotes follow it all the way through to the parts list..
 
As you try to define the workflow, what have you tried so far; specifically, how are you getting the string expression into the part attribute?
 
What happens if you change
Code:
ug_setpartattrvalue("PIN_PMID", stringvalue(PIN_PMID))
to
Code:
ug_setpartattrvalue("PIN_PMID", PIN_PMID)
 
Genius! I was just copying and pasting all the code and didn't pay attention to the fact that it was already a string!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor