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's the secrete to make a NON-round TUBE?

Started by boswell, May 08, 2011, 06:37:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

boswell


Rob S

Draw the desired cross section shape as a curve, filleted rectangle, oval or whatever.

Check for excessive number of points in your shape, if so, smooth it.

Then extrude your cross section along the length of the Tube.
User since forever

boswell

Rob;
Thank you for the response, but ...

You have created alternate shapes, alright; now, if one, say square; has WALL THICKNESS of .13, how is it drawn, and extruded?

Rob S

#3


The easy way would be to extrude the interior surface and the exterior surface, but the result will not be solid pipe material, just skins.

Second easiest is to draw the shapes in 2D and polygon subtract and convert to planes.  The result will be "Solid Half-pipes"

To get a proper pipe made of solid material:

- draw a plane the size and profile of the exterior, and define it as a solid.

- draw a solid box the size of the interior, position so it penetrates the plane.

- solid subtract box from plane to create profile of tube

- extrude the plane
User since forever

Dr PR

boswell,

Are you trying to extrude lines that were created in 2D mode with line width? If so, they will have zero width in 3D mode. Line width applies only to 2D drawings.

As Rob said, you need to extrude a plane or polygon to get a solid. If you extrude lines you get a zero thickness grid. For many drawings this is good enough, and actually creates a smaller drawing file. I use grids instead of solids for most pipes and cables.

Rob's suggestion will work. You can also draw two coplanar polygons and subtract one from the other (Edit/Polygon Edit/Polygon Subtract) to get really odd "hollow" polygons to extrude. Or just draw an irregular shape with the Plane (P) function.

If you want to get smooth rendering of odd-shaped extrusions, use "Solids/Solid Define" to make them solids. This isn't always necessary, but if you have multiple pieces that render individually, with kinks where they come together, defining them to be a single solid often causes the pieces to render smoothly where they come together.

Phil
DesignCAD user since 1987

DrollTroll

In 2D mode, draw the inner square with line width 0.0, using 2D Box or the Line command.
Then use Parallel by Distance to create the outer square with the desired offset.

Next switch to 3D Mode.
Use Surface connect to connect the two squares, with these settings:
Connection Type: Normal
Planes per Line: 1
Intermediate Breaks: 0
Use Original Points: checked
Retain Original Point Order: checked.
Snap to a point on each line to create a grid surface connecting them.

Next, delete the original two lines (or move them to a hidden layer).

Finally, use Extrude to extrude the grid to form a square duct. Or if you want to follow a profile, you can also use Extrude Along A Curve.
25 years with DesignCAD

Dr PR

DT,

I just learned a new trick! I have never used Surface Connect to create a surface with a hole in it! In fact, I somehow just assumed that it was impossible.

Thanks!

It worked with circles saved as many sided polygons, but you need to be careful where you set the starting points.

However, I don't recommend trying it with inner and outer polygons that have different numbers of sides - I got some very strange surfaces that were twisted upon themselves, and in one case a single straight line that the Info Box identified as a grid!

In the attached picture the black pairs of lines at the bottom were the templates for Surface Connect. The colored surfaces above them are the results.

Phil
DesignCAD user since 1987

minstrel

#7
Now...that's very much fun!

Seems lots of exciting things are happening lately.

Thanks DT...you're giving out lot's of good information today!
Now, if I can only get you to update that old "obj file' export macro......oops, I'm off topic...sorry.

Minstrel

Rob S

Using DT's new system, I was able to create in just a couple of minutes the enclosed HSS which makes only an 82 k file

draw square
fillet 4 corners
combine lines
parallel by distance
smooth each line once using 20 degree option
surface connect
delete source lines
extrude
only 37 points per grid

Done!!



User since forever

DrollTroll

QuoteHowever, I don't recommend trying it with inner and outer polygons that have different numbers of sides - I got some very strange surfaces that were twisted upon themselves, and in one case a single straight line that the Info Box identified as a grid!

Indeed, this method only works welll for profiles with very similar shapes and number of points. It won't let you for example do a box with two or more holes, only simple thin  (or thick) shells.
25 years with DesignCAD

Lar

I tried a 4 corner outside with a 24 point inner circle and got the twisting but it was a matter of the start of one line being on the opposite side of the start of the other line. A point reversal and a mirroring corrected the problem. It's also important to click on the line with the more points first because that will determine the number of sections in the grid. Also, the start and end of the grid  (which are in the same place) generates inner surfaces. If this bothers you you can simply solid explode, delete the 2 surfaces and redefine the solid.

Lar

DrollTroll

Retain Original Point Order and Use Original Points are only useful when the shapes are very similar and go in the same direction, as is the case for Parallel or Parallel By Distance.

For dissimilar shapes, uncheck Use Original Points, and set the two points (one for each profile) in matching or nearly-matching locations, as these will now determine where the grid begins/ends. You may also need to adjust the number of Planes Per Line to get the desired the number of "columns" between the profiles. Use Original Points generally (I almost said "always" but there may be exceptions) puts only one facet between consecutive points.
25 years with DesignCAD

Dr PR

#12
While this has been a fun "learning" experience I recommend against using "Surface Connect" for this type of thing. You get pretty complex surface grids with lots of points - larger file sizes. This is especially true if you extrude these surfaces along a curve!

In addition, if you perform any of the solid Boolean operations on these grids they will explode into numerous individual planes, again increasing file size. The results are somewhat unpredictable.

My preferred procedure is to hand draw the end surfaces, using only one or two polygons. Then I erase the lines between the polygons (Hidden line by section) and group multiple polygons so they act as one.

There is one nice "stealth" feature that has been sneaked into DesignCAD since about V19. If you do have a planar surface that is composed of a complex grid with many facets and you "poke a hole" into it with "Solid Subtract," DesignCAD automatically cleans up the grid mess, and does a very nice job of it. "Solid Add" also does a pretty good job of this.

For the attached picture I created the green line and then swept (W) it 360 degrees to create the red disk. This object was created as a grid. I selected it and used "Solid Define" to make it a solid. Notice all the radial lines in the end surfaces. Then I created the blue cylinder and subtracted it from the red disk. Notice that all of the end lines were cleaned up.

I used "Hidden Edge" to reveal the "joints" in the end surfaces in the object at the far right. Each of the end surfaces is now a single "C" shaped polygon that wraps 360 degrees so the ends of the "C" come together. I couldn't have done a better job myself.

Phil
DesignCAD user since 1987