Inventor General Discussion

Inventor General Discussion

Reply
Contributor
martinpeters
Posts: 16
Registered: ‎06-07-2013
Message 1 of 3 (544 Views)

Plot stamp time/date and file location.

544 Views, 2 Replies
07-15-2013 02:06 AM

Does anyone know how to add the plot stamp time/date and file location when printing  in autodesk inventor the same as in Autodesk.

So far this has eluded me.

Regards

*Expert Elite*
cwhetten
Posts: 1,074
Registered: ‎09-03-2008
Message 2 of 3 (523 Views)

Re: Plot stamp time/date and file location.

07-15-2013 08:53 AM in reply to: martinpeters

Hi and welcome to the forum!

 

Unfortunately, there is no built-in way to do this.  This is going to involve some programming, either in VBA or iLogic.

 

This question has been asked on the forum many times, so doing a search should turn up a lot of posts on the subject.  Here are a couple to help you get started:

 

ilogic plot stamp

 

Drawings Stamp with Date

 

Here is the iLogic rule we use (also attached as a TXT file):

 

Dim odrawdoc As DrawingDocument
odrawdoc = ThisApplication.ActiveDocument
customPropertySet = odrawdoc.PropertySets.Item("Inventor User Defined Properties")
Try
      prop = customPropertySet.Item("iLogicPrintDate")
Catch
      customPropertySet.Add("", "iLogicPrintDate")
End Try
Try
Dim PlotDate As Date
PlotDate = Now

iProperties.Value("Custom", "iLogicPrintDate") = PlotDate
Catch
End Try
InventorVb.DocumentUpdate()

 This code creates a custom iProperty called iLogicPrintDate, then reads the current date and stores it to that iProperty.

 

We have some text in our drawing border that displays the values of several properties: drawing creator, iLogicPrintDate, and file path and name.  This is what it looks like:

 

Plot Stamp.png

 

 

And this is what it looks like when the values are populated:

 

Plot Stamp 2.png

 

I think it would be a simple thing to include the time as well as the date.

 

We also set an iLogic event trigger to run the rule that updates the date when the drawing is saved.

 

Post back if you have any more questions.

 

Cameron Whetten
Inventor 2012

Valued Contributor
methoni
Posts: 81
Registered: ‎11-02-2012
Message 3 of 3 (497 Views)

Re: Plot stamp time/date and file location.

07-16-2013 12:58 AM in reply to: martinpeters

Thanks Cameron

It looks a fairly complicated procedure,something that needs to be done when i have a little more time, i am surprised that

Autodesk inventor being as sophisticated that it is that this was not a regular inherent built in tool as in Autocad.

Regards

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.