News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Multiple solid subtract

Started by Dr PR, May 14, 2012, 10:15:33 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dr PR

It is very common for me to want to subtract a single "tool" solid from several diffeent "working" solids. To do this I must create multiple copies of the tool and subtract them one at a time from the working solids.*

A simple solution would be to open a small dialog box when Solid Subtact is executed, and have a "Multiple subtraction" option selection (this should default to off so the function works normally as it always has). If this option is selected:

1. Select the solid to be subtracted (the way it works now).
2. Select one or more solids.
3. Press Enter to execute the multiple subtraction.

Phil

* Yes, I know that I can select all of the working solids and define them to be a single solid with Solid Define, and then do a single subtraction. But it should be obvious that this is not a suitable approach when you don't want all of the individual solids lumped into one.
DesignCAD user since 1987

MarkX

While we're at it, why not allow us to select several objects as the minuend as well?

As I found out too late, if you do this with the current DC, the selected objects become "glued" together and inseparable.

Unless I'm doing a deliberate "add", I don't want objects to be combined.

Mark

Dr PR

Mark,

While I think that would be useful, it will be harder to implement.

I will be happy if subtracting one tool from multiple work pieces is implemented and debugged the first time around.

After that we can try for multiple tools and multiple work pieces!

However, once the programmers are into the problem that may take the full plunge.

****

Now, how would your procedure work? How do you define multiple tools and multiple objects?

Phil
DesignCAD user since 1987

JJG

I agree with Dr Pr, and vote for his good idea, which can save time and save in ease of use also !

prl

#4
Quote from: MarkX on May 14, 2012, 10:57:44 AM
While we're at it, why not allow us to select several objects as the minuend as well?
As I found out too late, if you do this with the current DC, the selected objects become "glued" together and inseparable.

Mark, that solution is pretty simple.  I've attached this before but can't remember when or where it is.

MarkX

Quote from: prl on May 20, 2012, 03:00:30 AM
Quote from: MarkX on May 14, 2012, 10:57:44 AM
While we're at it, why not allow us to select several objects as the minuend as well?
As I found out too late, if you do this with the current DC, the selected objects become "glued" together and inseparable.

Mark, that solution is pretty simple.  I've attached this before but can't remember when or where it is.
I think your macros actually solve Phil's problem. My concern was the other way -- if you have several objects from which you want to subtract one object (imagine a hole bored through several separate layers of wood).

Mark

prl

#6
Quote from: MarkX on May 20, 2012, 01:07:21 PM
I think your macros actually solve Phil's problem. My concern was the other way -- if you have several objects from which you want to subtract one object (imagine a hole bored through several separate layers of wood).

Well I have a version for that one too.  Been there, needed that too at some point.

Edit:  I temporarily removed the code.  Seems it doesn't run with the latest.  I need to check it out.  Should work now.


'Program ssm (solid subtract multiple)

dim rx(100), ry(100), rz(100)

precision 15
setpoint "set a point on subtractor", 1
pointval x1, y1, z1, 1

>PointSelect
  {   
   <Type 1
   <Pointxyz [x1, y1, z1]
  }

>SetHandle
  {
   <Pointxyz 0, 0, 0
  }

>Copy
{
}
sys(1)=0

here:
    setpoint "set a point on solid to be notched", 1
   
    if sys(1)=1 then
       pointval x2, y2, z2, 1
    else
      END
    endif
   
   >SolidSubtract
     {
      <Pointxyz [x1, y1, z1]
      <Pointxyz [x2, y2, z2]
     }

   >Paste
    {
      <Type 1
      <Pointxyz 0, 0, 0
    }
  sys(1)=0
  sys(80)=0 
goto here

Dempsey

Something like this has already been on the request list for some time (F-170).
Dempsey