Property that shows the drawing format used

Hi all, I'd like to add a property to Solidworks drawings that stores the drawing format name. I'd like to use that property in the data card and in a PDM dispatch to prompt people to change the format of they are using the wrong one. I haven't been able to find a property that shows the drawing format name anywhere. Any advise?

Comments 4
GS
GS 2021-10-27

Hello Elizabeth,


I'm not trying to be the grammar police, but as far as I know there are no drawing formats in SW.  Do you mean drawing templates, or sheet formats (see https://www.cadforum.net/viewtopic.php?f=17&t=305)?  I suspect it's the sheet format, but I'm not sure, and I would like you to get some help with this.


If you do mean the sheet format, and if you don't get the answer you're looking for, there are a couple settings in System Options that will cause new sheets to use the same sheet format as the active sheet, if that helps (maybe you already knew that).

AS
AS 2021-10-27

Hi @EP hope you've been doing well. Something you might be able to do is have a macro look at each sheet in the drawing, determine the sheet format, and add/update that format as a custom property in the drawing. You'd have to decide when to run this macro. Thoughts?

KC
KC 2021-10-27

Also, custom properties are always exposed for modification by anyone with write access to the file.

So potentially, someone could modify the property's value, on purpose or inadvertently, and break your intended workflow.

KC
KC 2021-10-27

Along the lines of using a macro that @AS suggested, perhaps Design Checker can be called via a macro (it is exposed somewhat through the API) or have the macro call a Design Checker task to run for this.

There are many checks that Design Checker can look for (hopefully one of which satisfies your requirements) and also Design Checker need only run the checks that you select for it. I don't believe it has to run through the gauntlet of all of its possibilities everytime.

Perhaps a contact with @DG if warranted so he can formulate a solution for you.