Lisp to set current text style and insert not working with annotative text

Hello

I was hoping someone could explain why the below lisp does not work correctly in Brics with annotative text styles or suggest an alternative. (works fine in Acad)

(command "DTEXT" "S" "aLEROY_80")

The text style is annotative. In brics if I am in model space and click my tool bar that executes this then start typing… the text appears at its paper space size. After I hit Enter it changes to is correct model space size. This is obviously not ideal.

If I am in paper space, then in a model Viewport it works fine.

note that if I simply set the current style then the Dtext command it works fine too, but I need code the sets the style and starts the dtext command from a button.

thanks

DavidG

Comments

  • As soon as I posted this I thought of another method. Typical. :( but got it working now . I couldn't see how I could just delete my post though

  • Hi David,

    It's possible I have misunderstood your question, but I tested the condition you are discussing, and I think the pause is because your lisp line is incomplete

    If you have preset the text height in the text style, then the following applies

    (command "Dtext" "s" "aLEROY_80" "")

    The last enter is for the angle of the text

    Now if you haven't set the text style height

    (command "Dtext" "s" "aLEROY_80" "80" "")