Michaels Posted July 28, 2010 Posted July 28, 2010 Hi I do not know why the command BREAK does not accept the first point of it as "_f" in Autolisp as shown below ? (command "_.break" objects "_F" ..... it brings Invalid point. ???? Any ideas ? Regards Quote
MSasu Posted July 28, 2010 Posted July 28, 2010 Use it like this: (command "_BREAK" MyEntity MyPoint [color=red]"@"[/color]) Regards, Quote
Michaels Posted July 28, 2010 Author Posted July 28, 2010 Thanks And the following is hanging . (setq abc (entget (ssname objs a))) (command "_.break" objs (cdr(assoc 50 abc)) "" "@" 20) Regards, Quote
MSasu Posted July 28, 2010 Posted July 28, 2010 The first argument should be an entity, not a selection set. Also, not sure about that 50 DXF code – what kind of entity you are using? Please see my example below to understand how it works: (setq MyEntity (car (entsel))) ;select a line (setq MyPoint (getpoint)) ;select a point on that line (with Nearest) (command "_BREAK" MyEntity MyPoint "@") Regards, Quote
Michaels Posted July 28, 2010 Author Posted July 28, 2010 Thank you . My lisp is looping . (if (setq objs (ssget "_x" '((0 . "CIRCLE,ARC")))) (progn (setq i 0 all (sslength objs)) (while (< i all) (setq abc (entget (ssname objs i))) (command "_.break" abc (cdr(assoc 10 abc)) "@" [color="red"]45[/color])[color="red"]<---- in red to be cut from entities[/color] (setq i (1+ i)) ( ......... Regards, Quote
MSasu Posted July 28, 2010 Posted July 28, 2010 You’re welcome! Saw that your selection allow for circle selection, too - but you cannot break a circle entity using single point – arcs of 360 degrees aren’t supported in AutoCAD. Regards, Quote
Michaels Posted July 28, 2010 Author Posted July 28, 2010 Hi Why can't I break a circle since that I can break it in Autocad ? Arcs are open not closed . Thanks Quote
MSasu Posted July 28, 2010 Posted July 28, 2010 At least up to AutoCAD 2010 (the last version that I ca test) you cannot break a circle using a single point – you will receive the below message: Arc cannot be full 360 degrees Regards, Quote
Michaels Posted July 28, 2010 Author Posted July 28, 2010 I am working on Autocad 2009. Please try the following in sequence in Autocad command line: break select arc f 20 No messages at all Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.