Skip to main content
14-Alexandrite
May 5, 2017
Question

SYMBOL DRIVEN RELATION

  • May 5, 2017
  • 6 replies
  • 2857 views

hello everybody

i have a question: is it possible to add a relation in the model like this:

IF PARAMETER==YES

PARAMETER_2 = &sym(symbol)

ENDIF

thanks

    6 replies

    KenFarley
    21-Topaz II
    May 5, 2017

    If you're asking instead "How do I set a parameter to a symbol or group of symbols?" then I have done it.

    What I've done:

    (1) Create the target parameter in the model, setting it to be type String.

    (2) Open or create a drawing. Doesn't matter which, you're just using it to generate your text.

    (3) Create a note, and put the symbol(s) of interest into it.

    (4) Copy/paste the symbols of interest into the assignment relation, such as

      PARAMETER_2 = "XXXXX"

    The XXXXX would be a quote delimited string that contains your symbol(s).

    I don't know if this works for every symbol there is, but it's worked for me for what I've tried.

    Also, if you want fancy stuff like superscript 2, or 3 or a degree symbol, I find that typing the character into a word processor and then copy/paste-ing it into the relations works fine, too. You can use markup stuff to do superscripts, but they mess up the line spacing and I don't care for that.

    cspinelli14-AlexandriteAuthor
    14-Alexandrite
    May 5, 2017

    ‌i don't know what XXXXX stands for

    KenFarley
    21-Topaz II
    May 5, 2017

    It's just an example of a string that you would assign to the string parameter. I could have put "STRING" or "LINE" or "SYMBOLTEXT". Since the parameter you are trying to assign the symbol to is a String, you need to use double quotes around the text you wish to assign to it.