Cancel
Showing results for 
Search instead for 
Did you mean: 

How to place Creation Date on a drawing (in title block)?

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello!

 

First of all, I don't have a clue about the programming. So I really hope, that someone can help me with this problem.

 

Is it possible, to get the Creation Date as an attribute on a drawing?
If I look at File/Properties/Part File, I can see Creation Date parameter. But I don't know, how to get this information on a drawing (in a title block).

 

Does someone already has a macro, that does this?
I would really appreciate, if such macro can be shared.

 

Thanks.
Best REgards.

23 REPLIES

Re: How to place Creation Date on a drawing (in title block)?

Valued Contributor
Valued Contributor

Hello friend,

You can try this way.

First you sholud join edit your tabular note .

and then Right click to cell /settings / Common/Cell/Category/datedate.jpg

 

 

 

Re: How to place Creation Date on a drawing (in title block)?

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello.

 

Thanks for answering. But, your answer explains the settings for the cell. It explains, how the date will look like in this cell.

 

What I am searching is, how to automatically populate the cell with the date of creation.

So, when I first save my drawing, the date of creation is stored in the file. And I would like for this attrbiute to appear autamatically in my title block. I don't want to enter this manually.

In short, first save of the drawing file would populate appropriate cell in a title block.

 

Thanks.

Best Regards.

 

Re: How to place Creation Date on a drawing (in title block)?

Valued Contributor
Valued Contributor

Okey . 

Try this way friend.

First open you model-plain-1-mm-template.prt  from template file.(C:\Program Files\Siemens\NX 10.0\UGII\templates)

-Open expression menu (ctrl+2)

and decribe this strings.

 

MyDate = StringUpper(dateTimeString("localTime?", True))

MyDay = subString(MyDate, 9, 10)
MyMonth = subString(MyDate, 5, 7)
MyYear = subString(MyDate, 21, 25)
MyTimeStamp = MyDay + " " + MyMonth + " " + MyYear

 

and then save file.

 

(You should make this in modelling template part . Because you need to see this strings next time.)

string.jpg

 

 

Finally ,  in drafting right click a cell , edit cell and wirte  <X0@MyTimeStamp>.

That's all.edit.jpg

 

 

Also if you want to make this for your own drafting templates , it's possible with same way.

 

 

 

Re: How to place Creation Date on a drawing (in title block)?

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello!

 

First, thanks for this option with expressions. It works.

But, there is a problem. Date parameter, defined with expressions, changes every day. Yesterday I have created a part with this date expression. But when I opened this same part today, the date has changed. So, it doesn't show me the date of creation, but rather the current date.

If it is possible to somehow create a date of creation (fixed date), it would be great.

 

Thanks.

Best Regards.

Re: How to place Creation Date on a drawing (in title block)?

Valued Contributor
Valued Contributor

Hey friend,
Yes , you can create fixed date.

You should describe attribute in your drawing templates parts and you can fallow this way.
file/properties
New attribute
-choose category (it's optional)
-write your attribute name what you want to see
-Data Type (it's important)    :   DATE
- give your special date also time.

And then you should import your cell . That's all . Smiley Happy

 

 properties.jpgimporttt.jpgimport.jpg

Re: How to place Creation Date on a drawing (in title block)?

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello!

 

Thanks for all your help. I have just tested the option with setting the date in properties and it works. Yesterday, I have creatd a drawing and today it still show the date of creation (yesterday's date).

I have just one more question.

Is it possible, to somehow remove the time information? So, that I will have only the day/month/year written in the title block.

 

Thanks again.

Best Regards.

Re: How to place Creation Date on a drawing (in title block)?

Siemens Phenom Siemens Phenom
Siemens Phenom

When asking questions like this, PLEASE include the version of NX that you're running.

John R. Baker, P.E. (ret)
EX-Product 'Evangelist'
Irvine, CA

Re: How to place Creation Date on a drawing (in title block)?

Valued Contributor
Valued Contributor
Okey.
version is NX 10 .

Re: How to place Creation Date on a drawing (in title block)?

Creator
Creator

Wanted to try this but when click insert attribute the list always comes up empty, regardless of which category I select in the pull-down. I am currently using NX8 but the paths all seem to run the same with the exception that I only get a small amount of attributes, none of which seem to be able to import. Is there something I need to do in customer settings?

Properties.JPGAttribute list.JPG

Regardless of which import option i select in the pull-down menu.