×
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

GRIP: Assigning part file attributes...

GRIP: Assigning part file attributes...

GRIP: Assigning part file attributes...

(OP)
Ok, I'm having a brain fart...  I'm trying to assign a part file attribute where the value is the name of text file used to load the expressions in the UG part (QFN).  I'm getting the attr title loaded, but not the value... ideas?  suggestions?  Relevant code snippets:

CODE

STRING/QCIW(2,50),$
       QFN(32) $$ Text file name; should wind up being attr value
             $$ I'm getting this, and can "print/ QFN" okay
PRINT/ QFN
at1:   QCIW(1)='MIW'
       QCIW(2)=&ATTVL(PART,QFN,IFERR,L0:)
L0:
$$ Assigns part attribute values to titles
       ASATT/PART,QCIW,5

It has something to do with setting the string 'QFN' value to the 'QCIW(2)' value, but I can't seem to figure it out, and I JUST KNOW it's something silly... so anybody out there want to earn a shiny new star?  smile

Regards,
SS
CAD should pay for itself, shouldn't it?

RE: GRIP: Assigning part file attributes...

It looks like you're attempting to READ the attribute value of QFN.  Unless you know something I don't, QFN is NOT the name of an attribute.


John R. Baker, P.E.
Product 'Evangelist'
UGS NX Product Line
SIEMENS
UGS PLM Software
Cypress, CA
http://www.siemens.com/ugs
http://www.plmworld.org/museum/

RE: GRIP: Assigning part file attributes...

(OP)
John,
QFN is the name of the text file that I'm accessing; the user types the name of the text file he wants to load and his response is saved as QFN.  So how do I get this string value to load as the attribute value (in my case, QCIW(2))?

Regards,
SS
CAD should pay for itself, shouldn't it?

RE: GRIP: Assigning part file attributes...

(OP)
Thanks John...problem solved.

CODE

at1:        QCIW(1)='MIWname'
        QCIW(2)=&ATTVL(PART,'MIWname',IFERR,L0:)
        QCIW(2)=QFN
L0:
$$ Assigns part attribute values to titles
        ASATT/PART,QCIW,5

Sometimes I just need to be slapped.  ...and as promised, here's your star!  smile

Regards,
SS
CAD should pay for itself, shouldn't it?

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