tizianost
Guest
hi to everyone, I've been writing my first lisp program for a few days to automate monotonous procedures. I think it is useless to say that I came across many difficulties but with so much patience I managed to overcome them... except two:
1) the first problem concerns the use of "command" instruction as if I try to run some non-internal autocad commands (such as those of the express menu) I get an error message as the command does not exist. for precision the expression used by me in the lisp is as follows:
(command "txtexp" (ssname (ssadd ent) 0)
I immediately say nothing changes if I add "_" to the command ("_txtexp")
2)The second problem arises when I try to explode with
(command "_explode" (ssname (ssadd ent) 0)
the following entity
((-1). <nome 7e30f788="" entità:="">) (0 . "hatch") (330 . <nome 7ebfcc10="" entità:="">(a) (a) (a) (b) (b) (b)) (b) (b)) (b) (b) (b) (b) (b)) (b) (b) (b)) (b) (b) (b) (b)) (b) (b)) (b) (b) (b) (b)) (b) (b)) (b) (d))) (d) (d))) (d) (d) (d)) (d) (d) (d))))) (d) (d) (d))) (d) (d) (d) (d)))) (d) (d) (d) (d))) (d) (d) (d) (d)) (d) (d)) (d) (d) (d) (d) (d))))))))) (d) (d) (d) (d) (d) (d) (d) (d) (d) (d))) (d) (d) (d) (
I always get:
_explode
select object:
the object is not in the current space.
search without result.
select object:
"exploded hatch"
1831 _explode
*no valid selection*
requires a point or last/every/group
; error: function canceled
Thank you in advance
Hi.
Titian</nome></nome>
1) the first problem concerns the use of "command" instruction as if I try to run some non-internal autocad commands (such as those of the express menu) I get an error message as the command does not exist. for precision the expression used by me in the lisp is as follows:
(command "txtexp" (ssname (ssadd ent) 0)
I immediately say nothing changes if I add "_" to the command ("_txtexp")
2)The second problem arises when I try to explode with
(command "_explode" (ssname (ssadd ent) 0)
the following entity
((-1). <nome 7e30f788="" entità:="">) (0 . "hatch") (330 . <nome 7ebfcc10="" entità:="">(a) (a) (a) (b) (b) (b)) (b) (b)) (b) (b) (b) (b) (b)) (b) (b) (b)) (b) (b) (b) (b)) (b) (b)) (b) (b) (b) (b)) (b) (b)) (b) (d))) (d) (d))) (d) (d) (d)) (d) (d) (d))))) (d) (d) (d))) (d) (d) (d) (d)))) (d) (d) (d) (d))) (d) (d) (d) (d)) (d) (d)) (d) (d) (d) (d) (d))))))))) (d) (d) (d) (d) (d) (d) (d) (d) (d) (d))) (d) (d) (d) (
I always get:
_explode
select object:
the object is not in the current space.
search without result.
select object:
"exploded hatch"
1831 _explode
*no valid selection*
requires a point or last/every/group
; error: function canceled
Thank you in advance
Hi.
Titian</nome></nome>