(MText value from user parameter) inside a block

edited April 2024 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.
  • edited April 2024
    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!

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.