×
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

file name

file name

file name

(OP)
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

RE: file name

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

RE: file name

(OP)
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.

RE: file name

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

RE: file name

(OP)
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

RE: file name

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?

RE: file name

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.

RE: file name

(OP)
well, i have the nx4 installed on my computer and helps says automatic text only works for parts lists :o(((

RE: file name

Bummer.  It seems to work for any drawing text in NX5.

RE: file name

(OP)
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...

RE: file name

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

RE: file name

(OP)
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...

RE: file name

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

RE: file name

Henry is correct, I forgot the "$".
Guess the best solution is to push for updating to NX5.

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