DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

System Variables in Text

Started by Rob S, February 24, 2010, 09:02:20 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Rob S

Now that we've had another good round of bugfixes, maybe we can risk asking for some new features again...

I've been asking for a long time for system variables which could be inserted into some kind of text fields that would evaluate at print time - such as date, time, username, filename, filepath, DCAD version, etc.
User since forever

Dr PR

Rob,

I second that! However, lets be careful what we ask for, lest we receive it.

I asked for this in P-CAD years ago, and some moron programmer came up with the stupidest implementation I have ever seen: one field, with year, month, day, day of week (Monday, etc.), hour, minute, second and hundredths of a second! 2010/02/05 Fri 08:45:32.74! I have customers with specific title boxes they want in their drawings and this format fits none of them, so it was totally useless.

Word 2002 had the best set of options I have seen for dates:

year: YYYY = YYYY or YY
month: MM = M, MM, Jan., or January
day: DD = D or DD
(leading zero suppression for month and day optional)

YYYY, MM, DD
YYYY/MM/DD
DD, MM, YYYY
DD/MM/YYYY
MM, DD, YYYY
MM/DD/YYYY
YYYY, MM
YYYY/MM
MM, YYYY
MM/YYYY
YYYY (useful for automatic copyright statements)
and probably others.

Time should be 12 hour and 24 hour: HH:MM
Is there any need for seconds?

File name and file path should be two different variables. File name should include file type.

Page Number. For multi-page 2D drawings this variable could be placed on layers for specific pages. Page numbers would be sequenced in the same order as layer numbers, but would not necessarily be the same as the layer number.

Total Pages. Total number of page number variables assigned.

For example, assume that layer 1 was a Title Page that contained the title box and borders, with a blank space for the Page Number variable and a Total Pages variable. Layers 2 and 3 could be a page set to be printed with layer 1, with a Page Number variable on one of these layers. Layer 4 could be another pages set, with another Page Number variable. Layers 5, 6 and 7 could be a third page set, with another Page Number variable. Three page sets could be printed using the common Title Page with automatically assigned Page Numbers (1, 2 and 3) and the common Total Pages = 3.

These are all automatically generated variables. Some variables could be user defined:

Drawing author (Drawn by).

A Version or Revision number would be useful.

What else?
DesignCAD user since 1987

Rob S

As to date and time formats, I'd be quite happy to keep it real simple and have just the ability to have the date and time appear in the date formats I have selected in Windows.

Shouldn't be too hard to reference "drawing Info" items

Would also be real handy to be able to reference quantities of any particular attribute, so I could create a self-updating material list.
User since forever

dcadRob

You can write a macro which replaces existing text with current values. You just have to remember to run it.