TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on March 15, 2006, 09:10:30 AM
-
(command "_dim")
(while (> (getvar "CMDACTIVE") 0)
(command pause)
)
any idea how ?
:?
-
I don't understand what's the problem is.
-
I need to detect "dim mode"
eg:
(setq cecolor (getvar "cecolor"))
(setvar "cecolor" 1)
(while "DIMMODE" is active)...
(do nothing)
;;otherwise reset color
(setvar "cecolor" cecolor)
)
-
You can see nearly univeral error catcher at http://www.arcada.com.ua/forum/viewtopic.php?t=445 (but the resource is russian).
And at your code try this:
(defun ytty ()
(setq _cecolor_ (getvar "cecolor"))
(setvar "cecolor" 1)
(command "_.dim")
(while (/= (logand (getvar "cmdactive") 31) 0)
(command pause)
) ;_ end of while
(setvar "cecolor" _cecolor_)
) ;_ end of defun
-
You can see nearly univeral error catcher at http://www.arcada.com.ua/forum/viewtopic.php?t=445 (but the resource is russian).
Just curios, is that a forum like this one?... Do they have ObjectARX in there ?
Thanks.
Luis.
-
Do they have ObjectARX in there ?
You can see:
http://www.autocad.ru/cgi-bin/f1/board.cgi?p=024
-
You can see:
http://www.autocad.ru/cgi-bin/f1/board.cgi?p=024
Спасибо
[ Я буду пробовать изучить ваш язык в будущем ]
-
You can see:
http://www.autocad.ru/cgi-bin/f1/board.cgi?p=024
Спасибо
[ Я буду пробовать изучить ваш язык в будущем ]
http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=ru_en&url=http%3A%2F%2Fwww.autocad.ru%2Fcgi
-
Thank you so much Sir.
-
http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=ru_en&url=http%3A%2F%2Fhttp://www.autocad.ru/cgi-bin/f1/board.cgi?p=-1
-
You can see:
http://www.autocad.ru/cgi-bin/f1/board.cgi?p=024
Спасибо
[ Я буду пробовать изучить ваш язык в будущем ]
:-D If you see nickname Александр Ривилис on forum autocad.ru - it is my full name. Well come to this forum!!!
-
:-D If you see nickname Александр Ривилис on forum autocad.ru - it is my full name. Well come to this forum!!!
Thank you, I saw your name there and went to that forum some time ago, I do not know if I can make it in there, my goal is to learn more on C++/ARX/MFC ... The problem would be the communication barrier.... :-(
At least, I will try just to post once and say HI over there... :-)
Have fun.
-
By the way Александр Ривилис
If you have a chance, to review the ARX code posted on the below topic, thanks!
http://www.theswamp.org/index.php?topic=9032.0
-
On forum autocad.ru my nickname Евгений Елпанов.
This is my full name. Welcome to autocad.ru!
:-)
-
I had a similar problem and ended up using this as the command name:
_.acad_dim.dimlinear
_.acad_dim.dimaligned
etc...
-
You can see nearly univeral error catcher at http://www.arcada.com.ua/forum/viewtopic.php?t=445 (but the resource is russian).
And at your code try this:
(defun ytty ()
(setq _cecolor_ (getvar "cecolor"))
(setvar "cecolor" 1)
(command "_.dim")
(while (/= (logand (getvar "cmdactive") 31) 0)
(command pause)
) ;_ end of while
(setvar "cecolor" _cecolor_)
) ;_ end of defun
sorry..but this code not workin..
need to set :
(setvar "cecolor" "1")
in the first step..
and second...the result you have backslah for text.
:oops:
-
Luis,
You speak Spanish and Russian?
My wife and I just spent 3 weeks in Russia (adopting 2 children). My Russian is still pretty weak, but I can at least communicate with my daughter (5).
You can see:
http://www.autocad.ru/cgi-bin/f1/board.cgi?p=024
Спасибо
[ Я буду пробовать изучить ваш язык в будущем ]
-
What about checking value of CMDNAMES system variebles?
(if (wcmatch (getvar "CMDNAMES") "DIM*") (progn
;; do something
))
-
Luis,
You speak Spanish and Russian?
My wife and I just spent 3 weeks in Russia (adopting 2 children). My Russian is still pretty weak, but I can at least communicate with my daughter (5).
I wish.... no Joel I don't
. . .
CONGRATULATIONS with your two kids!!!!! :kewl: