switching between PS and MS

Discussion in 'AutoCAD' started by Jon Baker, Jun 11, 2004.

  1. Jon Baker

    Jon Baker Guest

    Is there a way to toggle text size when switching between PS and MS?
    thanx..

    ACAD2k2
     
    Jon Baker, Jun 11, 2004
    #1
  2. We use following line:
    (setq osm(getvar "osmode"));(setvar"osmode" 0);-LAYER;M;TXT18;C;18;TXT18;;TEXT;\(* 1.8 (if (= (getvar"tilemode") 1)(getvar"dimscale")1));0;\\-LAYER;SET;PEN1;;(setvar "OSMODE" osm);

    To prevent the osnaps messing up things, i read the value and set it to 0 (zero).
    I than create a layer for the text (in this case TXT18 for 1.8mm. text)
    Start the TEXT command.
    Than the fun part, i check if we are in Modelspace (tilemode=1) get and set the dimscale for textsize or if in Paperspace (tilemode=0) use 1 as scale.
    We than put the text, restore to a standard layer (pen1) and restore the osnaps.

    Hope it gives you an idea.

    Jan


    "Jon Baker" <> schreef in bericht Is there a way to toggle text size when switching between PS and MS?
    thanx..

    ACAD2k2
     
    Jan van de Poel, Jun 11, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.