Jump to content

subtract cylinder


Akbar

Recommended Posts

Hi every one,

 

I'm newbie in lisp and Autocad,

I have simple drawing with lisp includes some boxes and cylinder and i want to subtract some cylinder from box
My code look like this :

(command "box" "0, 0, 0" "16, 400, 1084")

(command "cylinder" "24,28,16" "4" "-11")
(command "cylinder" "24,72,16" "4" "-11")
(command "cylinder" "40,108,16" "5" "-10.3")

 

How can subtract these cylinder form box?

Thanks for any help

Akbar

Edited by fuccaro
Thread title adjusted
Link to comment
Share on other sites

Think of it like this as you make each solid remember it (setq sol1 (entlast)) ie box, then when you use the subtract command you can use the entitiy names in the correct sequence.

 

Have a go rather than us providing an answer.

 

(command "extract" sol1 .......................)

  • Like 1
Link to comment
Share on other sites

13 hours ago, Akbar said:

Hi every one,

 

I'm newbie in lisp and Autocad,

I have simple drawing with lisp includes some boxes and cylinder and i want to subtract some cylinder from box
My code look like this :

(command "box" "0, 0, 0" "16, 400, 1084")

(command "cylinder" "24,28,16" "4" "-11")
(command "cylinder" "24,72,16" "4" "-11")
(command "cylinder" "40,108,16" "5" "-10.3")

 

How can subtract these cylinder form box?

Thanks for any help

Akbar

You can't subtract these 3 cylinders from the box. The cylinders are outside the box. They do not interfere with the box.

Link to comment
Share on other sites

  • fuccaro changed the title to subtract cylinder

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...