Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

file name

Status
Not open for further replies.

vitulaaak

Automotive
Jul 5, 2007
70
Hello,

I would like to have my file name as a note or as attribute. How can I do that in NX 3?

Thank you
Vita
 
Replies continue below

Recommended for you

Under File/Properties/Attributes/ enter DRAWING NUMBER as the Title and your filename as the Value then Enter/OK.

Now your filename is an attribute that can be refered to in your note as: <W@?DRAWING NUMBER>

Gary Ashby
Designer
 
This is not what I wanted...I obviously can make an attribute and call it in the note..its simple, I need the file name to be an attribute called in the note.
 
I misunderstood what you wanted. By file name are you refering to what your part is called (I.E.: WHEEL)?

If you are using TeamCenter Engineering I think the file name or description is called out as <W@DB_DESCRIPTION>

If you are using Native NX then you will have to assign an attribute for that file name that can be used in your note.

Gary Ashby
Designer
 
By file name, i want to reffer to the name of the file...for example wheel.prt -> wheel...in proe you can for example from file name 555_wheel you can get file name wheel and file number 555 by extracting the filename string...i would like to know, if something like this works in UG
 
I've seen this before, but it required a grip routine to parse the string text to get what you needed from the attribute supplied by the model. It would then create a note on the dwg for the 'new' name... but it's not associative unless you re-run the grip.

I did a quick search for the source code, but can't seem to find it. I'll have to check my archives at the house tonight... If I find it, I'll let you know... shouldn't be too hard to mod to your needs.

Regards,
SS
CAD should pay for itself, shouldn't it?
 
I'm not sure about NX3, but in the NX5 help files there is info on automatic text.

<W@SH_PART_NAME> will return the sheet part name (if your drawing file is named "wheel.prt" it will return "wheel")

<W@SH_MASTER_PART_NAME> will return the master model drawing sheet part name (if your drawing file is named "wheel.prt and the master model is named "wheel_12.prt" it will return "wheel_12")

Try it out to see if it will work in NX3.
 
well, i have the nx4 installed on my computer and helps says automatic text only works for parts lists :eek:(((
 
Bummer. It seems to work for any drawing text in NX5.
 
hm,thats a pitty, it would be great if it works.....it seems there is no good way to do that...i only find out,that if i use multiple parts lists, then i can do that...but this is a little bit odd solution...
 
Correct format for automatic attribute is:
<W@$SH_PART_NAME>
<W@$SH_MASTER_PART_NAME>
In help file: C:/Program%20Files/UGS/NX%205.0/REL_INFO/whatsnew/whatsnew5/drf_auto_text.html

Henry
 
This unfortunatelly doesnt work in UG 3... I have tried it and nothing...the only option what I see is to make plenty of parts lists...but it wont show me the name of the drawing master file...
 
I couldn't get any of these to work in NX-3 either.

If you want create a drawing in master model fashion with the models separate from the assembly then you would probably want to use a parts list.

If on the other hand you want to put on the face of the drawing the file name of the file that contains that drawing then perhaps one of the above mentioned attributes works in later versions of NX. Otherwise it may be possible to do it with Grip or Open User Function.

Best Regards

Hudson
 
Henry is correct, I forgot the "$".
Guess the best solution is to push for updating to NX5.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor