I am trying to set up a named expression that picks up the model name and adds the word DRAFT to the end, when plotting to pdf. I want it to look something like this - 12345-01-Floor+Plans-DRAFT.pdf.
I have worked pout the model name bit but not how to add DRAFT.
Any help would be appreciated.
Hi Stuart,
stuartw said:I am trying to set up a named expression
it would be nice to follow the best practices and to specify not only the used product and it's exact version, but also where you want to use the expression.
The expression can by used at several different places in MicroStation, but with different set of symbols providers available, so the answer can be different.
stuartw said:when plotting to pdf
So I assume your want to define output file name in Print Organizer ?
stuartw said:I have worked pout the model name bit but not how to add DRAFT.
As described in this chapter in MicroStation help, to merge (concatenate) string, the operator & (ampersand) can be used:
PrintDefinition.MasterModelName & "-DRAFT"
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Jan,
Using MicroStation CONNECT U16.
Thanks for your help. I must be ding this wrong. Just create a new named Expression with what I though my be the correct syntax and have added to my pltcfg file. Printing to pdf gives me "Invalid Expression".
Any ideas?
The Personal.dgnlib is located under your personal user preference area.
C:\Users\{Windows UserID}\AppData\Local\Bentley\MicroStation\10.0.0\prefs\Personal.dgnlib
RegardsAndrew BellTechnical SupportBentley Systems
Andrew Bell said:The Personal.dgnlib is located under your personal user preference area. C:\Users\{Windows UserID}\AppData\Local\Bentley\MicroStation\10.0.0\prefs\Personal.dgnlib
Perfect!
stuartw said:Daft question but where do I find Personal.dgnlib? I've done a search with no results.
The addition to Andrew's tip: Because it can be confusing to find the personal dgnlib location (who should remember these complicated paths ;-), you can use this key-in:
expand echo $(MS_PERSONALDGNLIB)
It displays the personal.dgnlib location in Message Center details section.
Regards,
I would have thought any .dgnlib file located within a folder which is assigned to MS_DGNLIBLIST would work fine.
Barry Lothian said:I would have thought any .dgnlib file located within a folder which is assigned to MS_DGNLIBLIST would work fine.
Accordingly to MicroStation documentation, MS_GUIDGNLIBLIST (generally) and DGNLIBLIST_PRINTING (specifically for printing-related NEs) variables should be used.