Skip to main content
joe_morton
18-Opal
18-Opal
July 15, 2021
Solved

Auto-number drawing based on model

  • July 15, 2021
  • 1 reply
  • 1836 views

We have automated numbering for our models. For our drawings, we use this convention: drawing number = model number + "-DRW".

The downside of this is that the engineer has to manually number the drawing. Sometimes they number it incorrectly, and sometimes, duplicate drawings are created. I have the fun job of finding those issues and cleaning them up.

Is there a way to get drawings to auto-number based on the model?

One additional caveat: sometimes our engineers like to include multiple models in a drawing. 

 

I was thinking of trying to create a workflow that ran on check-in to handle this, and assign a task to the user if the primary model number couldn't be determined. I'm hesitant because then I'd have to have that workflow run on every CAD file checked into the system. 

 

Any other ideas of how to accomplish it?

 

Best answer by d_graham

Joe,

There is.

A post checkin from Workspace listener can be written which would check if the numbering convention is being adhered to. If it isn’t, renumber the drawing such that it adheres to the standard. Or throw an exception to the user pointing out the error of their ways. Dealers choice. You’re the dealer BTW. 


If you go the auto renumber route and the target number is already in the dB again throw an exception.

 

That’s how I’d handle it.  It’s automatic, bombproof and frees you up to do stuff that can’t be automated.

 If multi-model drawing you’d just have to decide how you want to handle those.

 

David

1 reply

d_graham18-OpalAnswer
18-Opal
July 15, 2021

Joe,

There is.

A post checkin from Workspace listener can be written which would check if the numbering convention is being adhered to. If it isn’t, renumber the drawing such that it adheres to the standard. Or throw an exception to the user pointing out the error of their ways. Dealers choice. You’re the dealer BTW. 


If you go the auto renumber route and the target number is already in the dB again throw an exception.

 

That’s how I’d handle it.  It’s automatic, bombproof and frees you up to do stuff that can’t be automated.

 If multi-model drawing you’d just have to decide how you want to handle those.

 

David

joe_morton
18-Opal
18-Opal
July 16, 2021

Spoke with a more senior admin on our team, and he said the same thing. Thanks!