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.

what am I doing wrong this time

Started by paul craig, July 29, 2021, 07:10:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Adrian 2.0

I did the the leak test (in V2020) and I got 'Solid Is Watertight'.

As I understand, DCad cannot draw solid surfaces - you have to convert the solid using Menu/Edit/selection edit/convert/solid to surface.
I did that too, it still reports  'Solid Is Watertight', on retesting.

paul craig

#16
nice to know that Adrian, but why oh why does Dcad not mention that anywhere in the updates????????
If for instance the leak test had a dialogue box telling you what to do, it would be useful

I tried to sort it a couple of times and it did not show water tight.
Will practice. My latest prints look ok, but must separate the models more to get better print quality.

Learning to do these things does take time.

Paul

bdeck

#17
Hi Paul,

Just to follow up, attached images show what I got when I tried DT's suggestion.

Starting with the watertight extruded solid:

1) Widen a cutting vector (cropped from your 2d drawing) and put it below the solid at, say, x= 588.
2) Use Menu/Draw/Extrude to create a vertical cutting grid. (use shift key when setting second point manually)
3) Use Scale or PointMove to extend the solid past the grid in the x direction.
4) Menu/Solids/SliceByCurvedSurface. Set first point on solid, second on grid.
5) Select and delete the scrap.
Result Is Not Watertight

6) Select the solid. Menu/Edit/SelectionEdit/Convert/SolidToSurface.
Result Is Not Watertight.

7) Select the solid surface. Export as STL.
8) Import the STL file.
Result Is Watertight.

Using Surface Connect to create the vertical grid between two parallel vectors also works,
but the solid resulting from that slice had more troublesome defects than the solid sliced by the extruded grid.

Same issue with solid subtract. A solid prismatic tool with an extruded cut surface seems to result in a cleaner cut than a one made by surface connect.

Regards,
BD

PS: The SolidToSurface command was used here just to test the "IsSolidWatertight" function. As the IsSolidWatertight function is unreliable, and STL files can be created directly from solids, and solids render much better than solid surfaces in DC's implementation of OpenGL, I don't see much reason to use solid surfaces. Also, multiple points cannot be selected on solid surfaces.  The STL file in this example could have been created directly from the solid.


paul craig

ok, I have tried another technique, due to the needs of the final outlook.
If  you look at the prototype drawing I posted earlier you will see that there is a dome at one end.

so I have tried to do that by separating various parts and aligning them to the relevant measurement.
those are on layer 2.
The left hand roof piece finishes where it needs to,
the body sides overlap the front, and the shape should be removed, to leave the side aligned there.
next, the top of the curved front should be that of the extruded piece over it. Then it would be surface connect to the
main roof.
However, trying to curve slice at the front top tells me that the parts don't overlap properly, so what am I doing wrong?
Then to get the shape of the front curve at the bottom, what commands do I need to use to get it to retain sides and end.
everything I have tried seems to remove the sides?

I finally understand parts of the 3d process in DCAD, but obviously not enough, but then with no actual training it is a
pick it up as I go along process.

Paul

bdeck

#19
Your curved slicing tool is a solid created by extruding the shape in your 2d drawing.

To slice with it, it needs to be a plane or a grid (a collection of planes).

To create that surface, start by cropping the back curve off of your closed 2d shape.

That should leave a simple open vector.

Extend the ends a bit, if they are not wider than the carriage.

Then position the shape well below the carriage, and extrude it some random distance above the carriage.

The extrusion of a vector results in a grid, just as the extrusion of a grid results in a solid.

Execute Solids/SliceByCurvedSurface, (even though there really are no curves DC3d), and set a point on the solid and then on the grid. (just the opposite of solid subtract)

SliceByCurvedSurface also differs from SolidSubtract in that it does not destroy the tool. So it does not matter whether you do SolidAdd before the slice. You can slice one solid after the other using the same grid.

Alternatively, you could extrude the grid in the x direction about 50 units, and then do SolidSubtract, in which case you would first need to SolidAdd the 2 upper and lower carriage solids.

Good Luck,
bd


PS: To avoid all this, if your existing solid tool is large enough, you could Solid Add your carriage parts, then use your existing solid slicing tool and do a SolidSubtract. That would leave you with a single solid with a slot cut through it. To resolve that, do SolidExplode, select and delete the part you want to discard, and then select the keeper and execute SolidDefine.

Or you could first perform solid explode on your solid tool, leaving you with a thick grid. Using it to SliceByCurvedSurface will leave you with a single solid with a slot cut through it. Resolve as above.

So you see there is no DC process, we're all just groping our way forward.

paul craig

thanks BD,
I am not sure I understand it all, but will see how I can work through it.
Basically,  what I understand is that my piece laid out on the horizontal needs to be only
the front part, not the whole piece, or am I missing something?

Paul

bdeck

#21
Quote from: paul craig on August 14, 2021, 03:50:10 AM
Basically,  what I understand is that my piece laid out on the horizontal needs to be only
the front part, not the whole piece, or am I missing something?

Correct.

For SliceByCurvedSufrface your tool must be either a plane or a grid.

It should be an open grid, for example a grid extruded from an open vector.

If your tool grid is closed (as you would get by extruding your closed 2d tool vector, or by doing SolidExplode on the solid tool in your file) SliceByCurvedSufrface will give you the same result as using your solid tool in SolidSubtract. It will still cut, but it will not separate the remaining solid into two pieces. That will require you to SolidExplode and then SolidDefine individually the piece(s) you want to keep.

However:   I am seeing some intermittent odd behavior when slicing with an open grid. When the tool is an open grid based on your 2d drawing, Occasionally, SliceByCurvedSurface  corrupts the remaining solid with stray points located at the bounds of the tool.  That does not happen with solid subtract. Perhaps that was giving you problems before. I have not tracked down the cause, but when I reloaded a a clean file, it did not happen.

So maybe solid subtract is the way to go if that problem pops up.

Select the open grid .you have created from the cropped vector, and extrude it about 50 feet in the X direction. That will result in a solid you can subtract from the car that will remove all the unwanted solid in a single operation. 

Or before creating the grid, close the open vector with 3 sides that extend 50 feet in the x direction, then make plane, then extrude vertically to above the car.


Best Regards
bd

PS: I use the terms "open" and "closed" loosely here. On the "closed" grid created by an extrusion, of course the ends are not closed.

Ps: In the file you sent, your car looks  twisted because it is too close to your camera. That's easily fixed by hitting the down arrow in the view toolbox (or the f key in the vdd macro).  Is a twist visible on your system?

PS: i noticed your solid tool appears to have been made by extruding a closed vector vertically and then using SolidDefine. But it seemed to work in solid subtract,

PS: Also I noticed that your car had at least 4 solids. The ones in the area to be cut should be added together before using solid subtract, or you'll have to repeat the operation with a duplicate tool.

paul craig

Hi BD
it does not look twisted in my item, but then I am not sure if I would know anyway!

If you look at the latest piece, I have just done, I am still having problems using slice by curved
and not losing the right hand end of the carriage as it hits the vector grid, or have I still done
that incorrectly?

Then I still have a subsequent problem trying to remove the front end from the vertical,
wonder whether trying that first helps?

See  attached,
I must say, I think this is a better way to learn and try  to understand the foibles of 3D DCAD, than
any of the tutorials I have ever tried.

Paul

Rob S

In terms of easier ways to learn, I often try to test how a command should work by constructing a simple not to scale example in a new clean drawing, and try it there.  As many permutations as I can think of.

Once I know how it "should" work, I try it on my "real" drawing, so that when complications arise, I have the confidence to say "Well that should have worked, now why does it not here??"

Often when one is uncertain, one gives up too soon and for the wrong reasons.  Also much less chance of messing up a good drawing.   :)
User since forever

bdeck

#24
Hi Paul,

In the file you just posted, the roof of the right end was missing, and the tool was a solid, not a grid.

Still it appears usable in solid subtract, if you follow the (rather complex) suggestions for using solid subtract for this kind of cut..

But if you want to slice by curved surface, you need a grid,

I've attached an image of an open vector that can be extruded vertically to a create a cutting grid.

Also, you may want to leave the grid in place after the slice so that you can extrude it to the thickness of an end wall. Save the section that you sliced off, and explode it to get the vectors you will need to make a solidsubtract cutting tool for the end wall. Unless you make the tool bigger than the end wall starting solid, you will have a mess to clean up.


paul craig

Rob,
I agree, it would be better to use a different approach to learning, but in the real world I need to learn something
that makes sense for future modelling. In my experience, that is how I retain the learning.

BD,
I imported the curved section as a unit after using the b command in 2d. I then imported it to 3D.
Then I placed it where needed, and used the extrude command only, nothing else. So what am I missing
in terms of a grid? What I need to do is to stop the sides at the curved shape going toward the front,
then make the top shape leave a line on the curved piece at the top. Then I would use surface connect
to get the other shape I need. I have tried that separately before, and it worked for me, so I was quite
happy with that. Just wish I could get these intersections correct, and get the shape shown in the original
drawing that I posted before.

Paul

bdeck

Before moving to 3d, use the scissors on the near end to remove either the front or back side of the curve. You do not want a hollow shape after extrusion. you want a 0-thickness surface grid for the slice.

paul craig

Scissors, never found that before :-[
I thought I had only got the the curve, no front or back to it.

Attached my latest effort, but I cannot get the end shape I need for the vertical and horizontal front interface.

I have tried a number of ideas, solid add, solid subtract, but???

Paul

bdeck

#28
Your cutting tool looks correct, but it is not a grid, it is a solid, which cannot be used in a slice.

And when it is SolidExploded, it does not yield a grid, but a series of planes. Very strange.

But the underlying vector you used to create the tool is good (although slightly asymetrical).

To simply slice and cap the end of the car, you could do this:

1) Discard this drawing.
2) Load "Railmotor 3d test4 13082021" which has both roofs, and a thick solid cutting tool.
3) Delete the solid tool, but not the tool-shaped vector below it.
4) Select the tool-shaped vector and move it down a few units.  Zoom in and snip the near end, then select and remove the front side.
5) Extrude the remaining open vector vertically to make a cutting grid. DO NOT SolidDefine!
6) SolidAdd the front porch roof and the car bottom extrusion.
7) SliceByCurvedSurface. Do not erase the tool yet.
8) Select the scrap, and move it 100 units away from the car in the X direction.

To complete the cap, look at the bottom paragraph and the bottom image in my post 25.

However, that would still leave the wide gap between the two roofs that needs attention.

Now that we can see the general shape that you are trying to accomplish, a different approach to the project seems advisable.

A Better Method

Rather than extruding thin walls, and then trying to close the ends with separate pieces added to the part, why not make an outer and an inner solid, then subtract the inner from the outer.

If you are not opposed to having slightly inconsistent wall thickness, the easiest way to accomplish that is to simply create an outer solid, and then scale it down to a starter plug. Extrude, SolidAdd, and Solid Subtract are the only tools needed, (and SliceByCurvedSurface if you cut the ends off with with a grid)

Edit the starter plug in point select mode by using pointmove in the x direction, until all the yz walls are about the right thickness, and you end up with a quick final plug to subtract. Passages and openings could be added to the inner plug before subtracting.

If you want a method that will provide precise wall thickness, see the procedure outlined in the attached image. (passages not added)

paul craig

OK BD,
I have done what I think you suggested, and attach the latest version of 3d test 4 13082021

I have got so far but the porch roof did not cut back to the curved surface, and I cannot remove all the
relevant pieces.

I think I need to understand the whole process and work at it again a number of times.
SO
1/ draw the item in 2d, if it is to be a solid, then use the "B" command in 2D, make a plane of
each relevant piece in 3d.
2/ Can you only extrude a plane? or can  you extrude any single line?
3/ To create a solid, you have to made a plane of an object that you extrude?
4/ once you have two or three items that need to be joined, what commands do you use?
and how many objects can you join in one process?
5/ why, when I extrude the porch roof, and want it to end at the slice item does it not allow me to
remove it?
6/ based on what I have learnt now when do I solid define, as I go through, or only at the end?
7/ I know that I have been using DCAD for many years, but most of my work has been in 2D
creating etches. Right now I am trying to work out a particular problem for a 2D etch  by trying
to create a 3D item, and hence where I am with this item.
8/ Wouldn't it be nice to have an ability to flatten curved surfaces to allow you to export them
back into 2D for etch layout work?

Paul