1. Welcome to CAST's newly designed and improved Forum

    Log in or Sign up and share the knowledge!

    Dismiss Notice

Smart Variables in Layout Text

Discussion in 'Technical Support' started by roygbiv, Jul 10, 2016.

  1. roygbiv

    roygbiv Active Member

    Joined:
    Feb 6, 2014
    Messages:
    155
    Likes Received:
    14
    Hi guys

    Just read through the Release Notes more thoroughly and came across being able to use Smart Variables in Layout Text. This is very nice indeed, as I do spend some time correcting version numbers when even small changes was made.
    So now, I can use version numbers in an easier way (now that I think about it, I could probably just have imported a worksheet), however - I would love a new Smart Variable, called "%Layout Name%" - which would be my Layout headline on the drawing itself.

    The process of cloning layouts would be even more effective :)

    Thanks in advance
     
  2. Sebastien Dupont

    Sebastien Dupont New Member

    Joined:
    Sep 27, 2019
    Messages:
    5
    Likes Received:
    0
    Hello,

    This post is more than 3 years old but the idea of this "Layouts name" variable would be a very useful tool.
    Regards.

    Sebastien
     
  3. roygbiv

    roygbiv Active Member

    Joined:
    Feb 6, 2014
    Messages:
    155
    Likes Received:
    14
    Hey Sebastien
    It's was actually added a few releases ago - it's called %title% or %layout title% - if it's not correct, let me know. I'm not with my template file now.
     
  4. Sebastien Dupont

    Sebastien Dupont New Member

    Joined:
    Sep 27, 2019
    Messages:
    5
    Likes Received:
    0
    Hello,

    Thanks for your reply but it's seems that the variable name is not one of both.
    %Title% is the name of the worksheets page, and %layout title% is not an existing value. I've tried different combination with %Layout% but without success.
     
  5. Dany

    Dany Super Moderator

    Joined:
    Jan 16, 2014
    Messages:
    744
    Likes Received:
    71
    Since such a variable currently (as of R43) doesn't exist in WYSIWYG, it is not possible to show the name of a Layout by placing the %Title% variable it in the Worksheet that you use for your Title Block. The only way to "automatically" show the Layout's title on that Layout is to create a Layout Text Item (PRES mode > Layouts tab > INSERT menu > Text) and use the %Tittle% variable within it.

    For R44, we are hoping to be able to add a new %LayoutTitle% (or maybe %LayoutName% or maybe both) variable(s), which will accomplish what you wish, i.e. to display the name of the Layout within a "Worksheet Title Block".
     
    Floriaan likes this.
  6. Sebastien Dupont

    Sebastien Dupont New Member

    Joined:
    Sep 27, 2019
    Messages:
    5
    Likes Received:
    0
    Hi Dany,
    Thanks for this explanation, as usual detailed and precise !
    Regards.
     
  7. Dany

    Dany Super Moderator

    Joined:
    Jan 16, 2014
    Messages:
    744
    Likes Received:
    71
    You are most welcome. :)

    Just to let everyone know, development just wrapped on this feature, so it should definitely be coming to R44 (unless something weird happens). The name of the variable is %LayoutTitle%.
     
  8. Floriaan

    Floriaan Well-Known Member

    Joined:
    Feb 13, 2015
    Messages:
    301
    Likes Received:
    64
    Are %LayoutPaperSize% and %LayoutScale% also on the list? Although I can imagine the latter is difficult because you can put multiple plots with different scales on one Layout.
     
  9. ShaunC

    ShaunC Member

    Joined:
    Feb 26, 2018
    Messages:
    18
    Likes Received:
    2
    Paper size would be simple enough. Perhaps with the layout scale, it could be a Item Property for each Cad Item. Tick box for 'Show Scale', options for Horizontal/Vertical align/position.
     
  10. sanderloonen

    sanderloonen Member

    Joined:
    Jul 14, 2015
    Messages:
    40
    Likes Received:
    6
    Hi All,

    is there a lost of smart variables?
    thanks
    Sander
     
  11. Floriaan

    Floriaan Well-Known Member

    Joined:
    Feb 13, 2015
    Messages:
    301
    Likes Received:
    64
    The lost list so to say ;-)
     
  12. sanderloonen

    sanderloonen Member

    Joined:
    Jul 14, 2015
    Messages:
    40
    Likes Received:
    6

Share This Page