Model Checker - Check Sheet Number, conform to company standard

Model Checker - Check Sheet Number, conform to company standard

CptnCaveman
Contributor Contributor
401 Views
3 Replies
Message 1 of 4

Model Checker - Check Sheet Number, conform to company standard

CptnCaveman
Contributor
Contributor

Hello, 

I'm using Model Checker and I'm trying to run a check to verify Sheet Names conform to company standards. Example: A100 or AD100 (Must start with Max. 2 letters in caps, followed by Max. 3 digits). Everything I run passes things that should fail. I've checked my Regular Expressions on RegEx101.com to confirm working. See attached Image of things I've tried to get to work. Help Please

0 Likes
Accepted solutions (2)
402 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni
Accepted solution

You could try to start with exactly two letters followed by exactly three digits, using [A-Z][A-Z][0-9][0-9][0-9].

  

Once that works reliably, add another, separate rule allowing just one letter, and another allowing just two digits, etc.

  

Less elegant, maybe, but more foolproof.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 4

JasonKunkel
Collaborator
Collaborator
Accepted solution

The Category of your filter should definitely be Parameter, not API Parameter. The API Parameter checks against the Properties of an element access via the API.

 

I rebuilt your check and ran it against a sample model. These are the filters I had:

 

Jasonkunkel_0-1656071087729.png

 

And it ran as expected. These are my sheets:

Jasonkunkel_1-1656071136238.png

 

And only one of them, sheet "12", comes back as Failed in the Model Checker report:

Jasonkunkel_2-1656071184527.png

 

As noted above, be sure you are checking again Parameter and not API Parameter. And be sure this isn't an extra space after the parameter name, or in the data field for the regular expression.

 


Jason Kunkel
Senior Practice Manager, Architecture and Engineering
LinkedIn
Message 4 of 4

CptnCaveman
Contributor
Contributor
Thanks,
I did try that expression, the primary issues were using API Parameter instead of Parameter & SHEET_NUMBER instead of Sheet Number.
Thanks again!
0 Likes