Jump to content
Perseus

subtract 2 solids without deleting

Recommended Posts

Perseus

I am very new to 3d drawing in autocad.

 

I am constructing the plans for a bed and could use some help on an issue.

 

Where I am joining 2 solids (like plywood sitting in a dado joint), how can I have one solid be carved out where the 2nd solid overlaps it, without deleting the 2nd solid.

 

Pretty much what SUBTRACT does but without the deleting.

 

Thanks.

Scott

Share this post


Link to post
Share on other sites
CarlB

Just a thought;

 

Copy parts A & B on top of itself so you have duplicates. First subtract A from B, then subtract B from A. Each operation will remove the "overlap", leaving the remainder of the original.

Share this post


Link to post
Share on other sites
hendie

have a look at the DELOBJ system variable

Share this post


Link to post
Share on other sites
Perseus

Thanks for the quick replies

 

I tried the DELOBJ. And it seems to just leave behind the 2D drawing after I extrude to 3D. But the 2nd part of SUBTRACT still gets deleted, leaving the 2D part behind.

 

The COPY method works good. Maybe a little extra effort, but functional.

 

I would of thought there would be an option to NOT delete the object.

 

Again thanks

Scott

Share this post


Link to post
Share on other sites
hendie

you could use the INTERFERENCE command, create the interference then subtract that from your solid

Share this post


Link to post
Share on other sites
Perseus

Hey that works pretty well too. Thanks very much for the extra info.

 

Scott

Share this post


Link to post
Share on other sites
ixyak
you could use the INTERFERENCE command

did u mean typing INTERFERENCE on a command prompt? cos the command doesn't exist, please help :( i'm using Autocad 2011

Share this post


Link to post
Share on other sites
Cad64
did u mean typing INTERFERENCE on a command prompt? cos the command doesn't exist

 

That's because the command is INTERFERE, not Interference.

Share this post


Link to post
Share on other sites
SuperCAD

Copy the solid you want to remove with a 0,0,0 base point. Use SUBTRACT to remove the solid you just copied from the solid that you want the body removed from. Paste the copied solid back to the 0,0,0 base point.

Share this post


Link to post
Share on other sites
lamensterms

I was pretty sure autocad used to prompt you and ask if you would like to delete the subracted solid. but apparently this isnt the case.

 

after testing this i have found that it is a lisp routine i am running which will ask you if you wish to keep the original subtracted solid (similar to how the mirror command asks you if you want to keep or delete the original element).

 

(Defun c:sub (/ SS1 SS2 YNTST1 OS)
(setvar "cmdecho" 0)
(command "undo" "be")
(prompt "\nSUBTRACT Select objects and regions to subtract from ..")
(setq SS1 (ssget))
(prompt "\nSelect solids and regions to subtract ..")
(setq SS2 (ssget))
(if (= YNTST nil)(setq YNTST "No"))
(initget "No Yes")
(setq YNTST1 (getkword (strcat "\nDelete the objects selected to subtract ? \(Y/N\) <" YNTST "> : ")))
(if (= YNTST1 nil)(setq YNTST1 YNTST)(setq YNTST YNTST1))
(if (= YNTST1 "No")
(progn
 (setq OS (getvar "osmode"))
 (setvar "osmode" 0)
 (command "copy" SS2 "" "0,0,0" "0,0,0")
 (setvar "osmode" OS) 
)
)
(command "subtract" SS1 "" SS2 "")
(command "undo" "e")
(setvar "cmdecho" 1)
(princ)
)

 

is the routine.

 

good luck mate.

Share this post


Link to post
Share on other sites
lamensterms

also note that this routine will do exactly as SuperCAD described.

 

cheers.

Share this post


Link to post
Share on other sites
JD Mather
I am very new to 3d drawing in autocad.

 

If you are a student you might download a next generation 3D CAD program like Autodesk Inventor and avoid these limitations.

Students can get Inventor for free from http://www.autodesk.com/edcommunity

Share this post


Link to post
Share on other sites
Cad64
If you are a student you might download a next generation 3D CAD program like Autodesk Inventor and avoid these limitations.

Students can get Inventor for free from http://www.autodesk.com/edcommunity

 

Gotcha again JD. Perseus started this thread 6 years ago. :P

Share this post


Link to post
Share on other sites
ShawnTTCoop

I think Inventor asks if you want to delete the subtracted solid. I am not sure though, as it has been months since I have used Inventor to create anything :(

Share this post


Link to post
Share on other sites
ShawnTTCoop
Gotcha again JD. Perseus started this thread 6 years ago. :P

 

I really have to start reading these threads all the way before I reply

Share this post


Link to post
Share on other sites
pizarro

Please, you can modify the routine to subtract several solids from another group of solids, without eliminating the first and without joining the seconds. Thank you very much for the reply.

 

Share this post


Link to post
Share on other sites

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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