×
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

Removing Quotes from String Expression

Removing Quotes from String Expression

Removing Quotes from String Expression

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

RE: Removing Quotes from String Expression

What version of NX?
Do you have a current workflow for this process? If so, what is it?

RE: Removing Quotes from String Expression

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?

RE: Removing Quotes from String Expression

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

RE: Removing Quotes from String Expression

(OP)
Yeah Jerry, the quotes follow it all the way through to the parts list..

RE: Removing Quotes from String Expression

can you show us what the expression looks like?

RE: Removing Quotes from String Expression

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?

RE: Removing Quotes from String Expression

What happens if you change

CODE

ug_setpartattrvalue("PIN_PMID", stringvalue(PIN_PMID))
to

CODE

ug_setpartattrvalue("PIN_PMID", PIN_PMID)

RE: Removing Quotes from String Expression

(OP)
Genius!  I was just copying and pasting all the code and didn't pay attention to the fact that it was already a string!

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