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.
You can try this way.
First you sholud join edit your tabular note .
and then Right click to cell /settings / Common/Cell/Category/date
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.
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.)
Finally , in drafting right click a cell , edit cell and wirte <X0@MyTimeStamp>.
Also if you want to make this for your own drafting templates , it's possible with same way.
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.
Yes , you can create fixed date.
You should describe attribute in your drawing templates parts and you can fallow this way.
-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 .
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.
When asking questions like this, PLEASE include the version of NX that you're running.
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?
Regardless of which import option i select in the pull-down menu.