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:
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?
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
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?
Regards,
SS
CAD should pay for itself, shouldn't it?





RE: GRIP: Assigning part file attributes...
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...
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...
CODE
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!
Regards,
SS
CAD should pay for itself, shouldn't it?