Creation and last modified date for all elements?

Diagramming issues

Moderator: Moderators

Creation and last modified date for all elements?

Postby hagenseifert » Thu Oct 20, 2011 3:22 am

Hello.

We automatically generate documentation from our class diagrams for a customer. The customer will see what has changed since the last version. Unfortunately, I've found no creation or modification date for classes, attributes, etc.. Is there a way to determine this and to process that information i a report?

Best wishes from Germany.
hagenseifert
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:1
Joined: Thu Oct 20, 2011 3:17 am

Re: Creation and last modified date for all elements?

Postby siri_c » Mon Oct 24, 2011 8:33 pm

MagicDraw neither stores a creation date and modification date in classes nor project. Only the diagram that contains <<DiagramInfo>> stereotype will automatically update the timestamp.

If a diagram has been changed, you can get a modification date from Diagram from
Code: Select all
$report.getStereotypeProperty($diagram, 'DiagramInfo', 'Modification date')


Another solution, you can print a report generation time in the documentation. By insert this code
Code: Select all
$date

or
Code: Select all
$date.get('yyyy-M-d H:m:s')


Best regards,
siri_c
Forum Expert
Forum Expert
 
Posts: 146
Posts Rating:4
Joined: Fri Jan 15, 2010 3:36 am

Re: Creation and last modified date for all elements?

Postby jeff.smallwood@gmail.com » Thu Sep 12, 2019 9:46 am

Is this still true in v19? Is there no createDate or lastModifiedDate like property for each element in the containment tree? I'm specifically looking for that for classes, blocks, and instances.
jeff.smallwood@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Thu Sep 12, 2019 9:45 am

Re: Creation and last modified date for all elements?

Postby alexbrolin » Wed Sep 18, 2019 8:10 pm

It doesn't store a creation date and modification date in classes.
lenny face
alexbrolin
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Wed Sep 18, 2019 8:07 pm

Re: Creation and last modified date for all elements?

Postby p_kn » Tue Jan 11, 2022 2:49 am

p_kn
Forum Newbie
Forum Newbie
 
Posts: 3
Posts Rating:0
Joined: Tue Jan 11, 2022 2:38 am


Return to Diagramming

Who is online

Users browsing this forum: No registered users and 0 guests