(MText value from user parameter) inside a block

Illyrius
edited April 3 in 2D Drafting
I have done the following:
  • created a user parameter named "nr" with the value 34
  • inserted a field in the MText --> Objects --> Formula.
filled in the form as follows:
  • Formula: nr
gives:
  • Field expression: %<\AcExpr (nr)>%
  • Field value: ####
something is wrong and i think its the formula but dont know for sure.
I would love any help.

Comments

  • Hello.

    Parameters can't be used in field formulas.

    An alternative could be to create a block with attributes to hold various values.
    Then, inside mtext, the value of an attribute can be inserted as a field.

    When there is another value needed, the block should be selected and the attribute value updated as required.
  • Illyrius
    edited April 4
    Virgil said:

    Hello.

    Parameters can't be used in field formulas.

    An alternative could be to create a block with attributes to hold various values.
    Then, inside mtext, the value of an attribute can be inserted as a field.

    When there is another value needed, the block should be selected and the attribute value updated as required.

    okay i will try that!