Attributes to supress drafting object
Attributes to supress drafting object
(OP)
Is there a way to use attributes to supress a drafting object? For instance if I have and attribute stating a certain material, I have a set of standard notes. If I have a different material there are different notes. Can I somehow make the expression that controls these notes change value based on the material attribute? I know it is far fetched, but I thought I'd ask.
Thanks
Thanks





RE: Attributes to supress drafting object
Now you will need to set up expressions to read the current material attribute and then using some IF commands, determine what material is being used and therefore which note to 'unsuppress' keeping all the others suppressed. If you have some problems setting this up, let me know and I can create a simple example showing you how to do this.
John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Attributes to supress drafting object
So, how do I make my expression list see attributes list of the part? I didn't think that the expressions could reference these since they are strings.
Here is my scenario:
expressions: steel = 1 // or 0
Attributes: material = Steel // or aluminum
RE: Attributes to supress drafting object
John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Attributes to supress drafting object
RE: Attributes to supress drafting object
Note that at the moment, this is difficult to do using the master model mode so my example is done with the drawing and model in the same part.
Open the file and go to Drafting and note the drawing with the note.
Now go into Modeling and go to Tools -> Material Properties... and select the block and note the material that's highlighted, that is the current one assigned. Select the other and hit OK. Now there is a problem with attribute update so for now go to Tools -> Update -> Update for External Change. Now go back to Drafting and note the change in the note. BTW, if you had saved and reopened the file, everything would have been correct since opening the file forces an update.
Anyway, take a look and see if this might work for you.
John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Attributes to supress drafting object
I see exactly what you are doing with this example. Unfortunately it doesn't work for me. I don't know if we are missing a license or what, but I get the attached error when I update.
RE: Attributes to supress drafting object
Is this function available in NX3. Most of our users are still using 3. We are waiting to flip the switch to 4. Thanks again for your help
RE: Attributes to supress drafting object
ug_askAttrvalue("",PART_ATTRIBUTE,"MATERIAL")
IF(ug_askAttrvalue("",PART_ATTRIBUTE,"MATERIAL")="STEEL")(1)ELSE(0)
RE: Attributes to supress drafting object
John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.