×
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

ug_setPartAttrValue - RESULT IN STRING

ug_setPartAttrValue - RESULT IN STRING

ug_setPartAttrValue - RESULT IN STRING

(OP)
Is it possible to use this function and have the result be a string?

I created an Expression: SUPPLIER-----if(LENGTH>5/8) "STOCK" else "STD" (DISPLAY VALUE ="STOCK")

Then I created another Expression: SUPPLIER_ATTRIBUTE-------ug_setPartAttrValue("SUPPLIERS","SUPPLIER") (DISPLAY VALUE =0)

When I checked the Properties Attribute the VALUE = SUPPLIER but I need it to say "STOCK" is there any way to get this to work? PLEASE HELP

RE: ug_setPartAttrValue - RESULT IN STRING

(OP)
I was also wondering if its possible to add the IF statement to the original moldwizard spreadsheet, I tried =if (LENGTH>5/8) "STOCK" else "STD" but that didn't work either.

Thanks for any help anyone could offer.

RE: ug_setPartAttrValue - RESULT IN STRING

Your expressions should read like this (note the lack of "quotes" in second field of the ATTR expression):



This will result in the attribute SUPPLIERS="STOCK" being created

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.

RE: ug_setPartAttrValue - RESULT IN STRING

(OP)
Wow that was simple,

Thanks John

RE: ug_setPartAttrValue - RESULT IN STRING

(OP)
I was asked to change our spreadsheets for screws to include SUPPLIER=STD or STOCK basically telling purchasing if the component is in STOCK or not. The only issue I’m having is with the AUTO screws. As shown in the pictures I just separated the length list by line so I could call out specific screws and lengths to be STOCK or STD, but the screw no longer auto sizes and now wants to pick a screw length. This method worked for all other spread sheets except this one.
Do you know why it’s doing this or how I can fix it?

Thanks for any help anyone can offer.


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