Drawing Attributes, NX3, Windows
Drawing Attributes, NX3, Windows
(OP)
I am setting up seed parts with attributes in the titleblock (tables) that will be referenced from the model file.
Any way an attribute can be set up to call out the file name?
Our name scheme is, x11111.mldes.prt. I want that to go on the title block in one of the tables.
Any way an attribute can be set up to call out the file name?
Our name scheme is, x11111.mldes.prt. I want that to go on the title block in one of the tables.
Justin Ackley
Designer
jackley@gmail.com





RE: Drawing Attributes, NX3, Windows
~~~~~~~~~~~~
#! NX/KF 3.0
DefClass: partAttributeName (ug_base_part);
(String Modifiable) PartName: ug_askCurrentWorkPart();
(Integer Modifiable) setPartNameAttribute: ug_setAttrValue_(
"", //Part Name
"PART_ATTRIBUTE", // Attribute Type
"PART_NAME", // Attribute Name
PartName: // Attribute Value
);
~~~~~~~~
Since this is a seed file you can instantiate this once in the file and have the Part attributes with you all the time. Not the best solution but will get you the partname attribute you want. There is a demand value issue that needs to be resolved so that when you saveAs the attribute will update.
-Dave
PLM Exchange
http://plmexchange.net
http://groups.google.com/group/NX_CAX/
RE: Drawing Attributes, NX3, Windows
C:\Program Files\UGS\NX 4.0\UGOPEN\SampleNXOpenApplications\.NET\TitleBlock
-Dave
PLM Exchange
http://plmexchange.net
http://groups.google.com/group/NX_CAX/
RE: Drawing Attributes, NX3, Windows
If this is the case, let me know and I will give you the attribute names.
RE: Drawing Attributes, NX3, Windows
Justin Ackley
Designer
jackley@gmail.com
RE: Drawing Attributes, NX3, Windows
I'll see if i can find a better solution for you then the titleblock example file.
-Dave
PLM Exchange
http://plmexchange.net
http://groups.google.com/group/NX_CAX/
RE: Drawing Attributes, NX3, Windows
RE: Drawing Attributes, NX3, Windows
Since you have the GM toolkit, I would try creating a seed part with the file-log filled out. File log parses out the part number, class and rev level from the file name when you open it and populates the attributes.
I'll look at it when I get to work tomarrow just because I'm now curious as to whether it will work or if there is another option for you.
One more observation. The naming convention you give in your initial question is unique to GM. (Unless someone else has adopted it?) If you are creating GM drawings you probably could be using the GM drawing program to populate the title block.
RE: Drawing Attributes, NX3, Windows
I know with GM drawings/parts they are named 12345678.mldes.0001.prt. Ours will be x12345.mldes.prt or 12345.mldes.prt (X is prototype, no X is production).
I will mess around with the file log but I don't think that would work just because of the name we use.
We also use our own drawing format.
Justin Ackley
Designer
jackley@gmail.com