Am I missing something too simple? Setting in ACAD?

Discussion in 'AutoCAD' started by markv, Jan 12, 2026.

  1. markv

    markv

    Joined:
    Jan 12, 2026
    Messages:
    1
    Likes Received:
    0
    Below is a routine and its duplicate. One works properly in a drawing but not in a different drawing and vice versa. I have highlighted the lines of code that are this issue. correctly it inserts a block that is to rotate manually, then continue with an arc and text. Incorrectly in inserts the block with no rotation option then continues on

    (defun c:tgrab ()
    (initerr)
    (setvar "cmdecho" 0)
    (setvar "orthomode" 0)
    (command-s "-style" "Arial" "Arial" "4.5" "1" "0" "n" "n")
    (setvar "osmode" 512)
    (command-s "-insert" "grabm" pause "1" pause "")
    (command-s "ARC" pause pause pause)
    (setvar "osmode" 0)
    (command-s "dtext" pause "0")
    (reset)
    (princ)
    )


    (defun c:tgrab ()
    (initerr)
    (setvar "cmdecho" 0)
    (setvar "orthomode" 0)
    (command-s "-style" "Arial" "Arial" "4.5" "1" "0" "n" "n")
    (setvar "osmode" 512)
    (command-s "-insert" "grabm" pause "1" "1" pause "")
    (command-s "ARC" pause pause pause)
    (setvar "osmode" 0)
    (command-s "dtext" pause "0")
    (reset)
    (princ)
    )
     
    markv, Jan 12, 2026
    #1
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.