Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

why popup the dialog box?

3 REPLIES 3
Reply
Message 1 of 4
nychoe1
461 Views, 3 Replies

why popup the dialog box?

for example

 

(defun c:1 ()
  (command "units" "2" "1" "1" "2" "0" "n")
  (princ "\n>> Precision : 0.0")
)

 

I have a problem.

in Autocad 2009, no popup the units dialog box

but, after Autocad 2013 upgraded, continued popup the units dialoh box.

 

why does that??

 

I have many LSP file like these... I want to no popup dialog box.

 

  (command "units" "2" "1" "1" "2" "0" "n") --> .  (command "-units" "2" "1" "1" "2" "0" "n")  except like this edited,

is there any other way?

 

Tags (1)
3 REPLIES 3
Message 2 of 4
_Tharwat
in reply to: nychoe1

Add this (initcommandversion 1) before the command UNITS to suppress the command dialog to be appeared .
Message 3 of 4
nychoe1
in reply to: _Tharwat

wow thanks~
Message 4 of 4
_Tharwat
in reply to: nychoe1

You're welcome

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost