Jump to content

Recommended Posts

Posted

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

Posted

Use it like this:

 

(command "_BREAK" MyEntity MyPoint [color=red]"@"[/color])

 

 

Regards,

Posted

Thanks

And the following is hanging .

(setq abc (entget (ssname objs a)))
     (command "_.break" objs (cdr(assoc 50 abc)) "" "@" 20)

 

Regards,

Posted

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,

Posted

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,

Posted

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,

Posted

Hi

 

Why can't I break a circle since that I can break it in Autocad ?

 

Arcs are open not closed .

Thanks

Posted

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,

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...