Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to add cadfile plotdate and plot time as an attribute

1 REPLY 1
Reply
Message 1 of 2
Gail2011
322 Views, 1 Reply

How to add cadfile plotdate and plot time as an attribute

Currently, I am aware of the plotstamp available in the Plot Dialog box, however, we are looking at ways to imbed this info in the dwg. I currently have the WD_TB with an attribute for FULLFILENAME, an attribute for PLOTDATE, and an attribute for PLOTTIME12. So I get the information on the dwg. However, I would like to be able to run all these attributes as a string. I have tried FULLFILENAME|PLOTDATE|PLOTTIME12 with spaces, commas, ( ), " ",  etc. and I do not know the proper syntax to get this to work. I have also tried (getenv "FULLFILENAME") or the getvar, in the title descriptions box. I need help and have used almost 2 straight days trying to find the right combination. Does anyone have any ideas?

thanks

Gail

1 REPLY 1
Message 2 of 2
phanaem
in reply to: Gail2011

You can use fields (whitin a Mtext or Text).

Create a text and copy&paste following codes

- full name --> %<\AcDiesel $(getvar, dwgprefix)$(getvar, dwgname)>%

- pltodate --> %<\AcVar PlotDate \f "MMMM d, yyyy">%

- plottime -->  %<\AcVar PlotDate \f "h:mm:ss tt">%

 

You can combine the last two in a single code  --> %<\AcVar PlotDate \f "MM/dd/yyyy h:mm:ss tt">%

Various date&time formats can be used.

All codes can be used in a single text line, like this:

%<\AcDiesel $(getvar, dwgprefix)$(getvar, dwgname)>% | %<\AcVar PlotDate \f "MMMM d, yyyy">% | %<\AcVar PlotDate \f "h:mm:ss tt">%

 

Plot date and time will be updated only after a new plot.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost