I'm trying to setup a named expression to, among other things, pull the sheet number from the plotted model and it's not working for me. I'm using the PrintDefinition.SheetNumber symbol but it only returns a value of "0" regardless of what number is set in the sheet number field of the model. Am I missing something or not understanding what that symbol is supposed to do?
PrintDefinition.ParentFolderName& IIf(System.String.Length(PrintDefinition.ParentFolderName)=1,System.String.Format ("{0:D3}", PrintDefinition.SheetNumber),System.String.Format ("{0:D2}", PrintDefinition.SheetNumber))&"-"&System.Path.GetFileNameWithoutExtension(PrintDefinition.SourceFile)
Here is the expression I have setup. It is using the parent folder name for a prefix and then setting the number of places for the sheet number based on if that prefix is only one letter or more. I just can't get it to actually pull the number from the sheet number in the model. If I use ActiveModel.SheetNumber it will find the number, but then it puts the same sheet number from the active model on all the names instead of the number that goes with the corresponding model.
I'm using V8i SS4 version. 8.11.09.829
I am not using variable print definitions. I noticed when I turn on "View All Print Definitions" and look at all the columns available that Sheet Number isn't on the list. Seems like it should be in there for this to work?
.
Wouldn't it just be easier if you renamed the models to the sheet number ands then use model name as part of your pdf name, similar to the way out autocad cousins work, they name the sheet models drg file name/ number - sheet number?
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
Unknown said:The problem with that is being able to re-number sheets when they need to change due to added or removed sheets. I'm using the Sheet number field because they can easily and quickly be re-numbered using the Project Explorer.
Can you demonstrate how to do that in project explorer?