Lisp file works in ps but not ms???

adesta

Usenet Archive
Joined
Sep 12, 2003
Messages
7
Reaction score
0
Not sure if you can post lisp files on here, so I won't, but I have a lisp file that works in paper space but not in model space. It is one I tried to come up with myself, so I have no idea what I would have done to make it work one place but not the other. Any ideas without seeing the file?

Thanks
 
VOOOoooommmmm, Bbaaammm.....over my head........

 

Please post the code.

 

We have no idea on how it works....

 

"adesta" <> wrote:

Not sure if you can post lisp files on here, so I won't, but I have a lisp file that works in paper space but not in model space. It is one I tried to come up with myself, so I have no idea what I would have done to make it work one place but not the other. Any ideas without seeing the file?

Thanks
 
map2000i is the version and the all the items are in the same space.
 
Adesta,

What version of AutoCAD and what is your Operating System?

The one answer I can give, the lisp routine expects the objects to be in the same SPACE.

Now I know somebody will have a better answer but that is what I have experenced.

Later
Kirk
Here is what I came up with (I do not know much about lisp files but tried to give it a go) This is written to end up with a break where intersecting lines cross (the
one I tried with break only work sometimes, for some reason)
 
When it works, one of my lines no longer intersects the other but breaks before the line and starts again on the other side of it.
 
try this: (defun c:xo

(setq pt1 (getpoint "select intersection"))
(command "circle" pt1 ".125")

(setq ss (ssget "l") )

(command "trim" "l" "" pt1 "")
(command "erase" ss "")

)
 
Thanks, that works great. What does the (setq ss ssget "l")
actually do?
 

Latest threads

Back
Top