Wonder if we can code a text substitution to substitute another text substitution.
$SHTNO$ = "_FILES_" => If PP01.dgn is open, this SHTNO = PP01.dgn
PP01.dgn = "10" => then, SHTNO = 10
The idea is that we can use the same $SHTNO$ text substitute for every cutsheet file, say, PP01.dgn, PP02.dgn, ..., PPn.dgn. When a cutsheet file is opened, SHTNO = PP01.dgn or PP02.dgn and so on. Then if we have a pentable that assigns an actual sheet number, say, PP01.dgn = 10, PP02.dgn=11, and so on, the actual sheet number will be stamped on each cutsheet.
Hope you can help. Thanks!
Depending on your version, you could use a text field for the Sheet Number model property. That would be a lot simpler to manage and it can account for non-consecutive numbering.
I'm also not sure that the pen table logic works that way. The text substitution is a string function, not a variable function. It looks at one string of characters and substitutes another set of characters. You can only run one pen table for plot set, as far as I know. I'm not even sure it would be able to run those commands consecutively within the same pen table - it's possible that once a string has been recognized and substituted it is excluded from further processing. But I'm not certain about that.
It would make a long and cumbersome text substitution list.
I know next to nothing about design scripts, but that might be another option to look into for further processing.
What version of Microstation are you using? If your version allows it, the text field sheet number would be my recommendation.
You can always try it and see if it works. The worst thing to happen would be nothing.
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2
I found it easier to use tags in the title block and manage all the tags via custom vba programs like Caddpro title block tags manager through excel or Flexitable by LA solutions or even axiom tools ( but axiom is very expensive)..
With a big job say 100 plus plans caddpro will pay for it self first time you need to update all you plans
you can search google youtube caddpro adam lambert title block tags
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me