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.

2d to 3d converting to plane issue (newby)

Started by compman2, January 07, 2013, 09:39:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

compman2

I have a several dwf drawings that I am importing and converting to 3d.  I continue to run into problems converting the outline of my objects to a plane.  The trouble is always with fillets and Arcs.  It seems that there is a minute space between the end of the line and the start of the fillet or arc.  What can I do to close up those gaps and make this work more reliably?  I know this is probably really simple but I keep bumping my head against it.  I have in a couple of cases simply redrawn the object using the base drawing as a guide but this is tedious.

Dr PR

compman,

It will be tedious no matter how you do it. I have tried several techniques using different functions in DesignCAD, but if the original imported drawing has incomplete outlines there is no simple way to clean it up. This is a very common problem with files I get from my customers.

If you work in Point Select mode (CTRL1 toggles this mode) and zoom in at each line junction you can see if there is a gap, and drag the end of one line to meet the other. However, you must be very careful, especially with arcs, because you can change the overall geometry subtily! This will introduce errors.

I have found that redrawing on a new layer, using the import as a template, is the most reliable way. In fact, I usually redraw everything in any drawing that I import. This goes pretty quickly since the imported drawing already has the necessary geometric information.

Phil

PS: Look around the forum for macros to do file cleanup. DT has posted several in his DrollTroll's Toolbox thread:

http://forum.designcad.com/index.php?topic=3797.0
DesignCAD user since 1987

Bob P

Looks like none of DT's macros cover finding non-identical points of separate lines.  A proper macro is possible but, if the drawing is large, it might take quite a while to loop over and over, comparing (and possibly moving) every point on every line to every other point. 

I have a possible shortcut if the distance separating the imported points is well within your intended final (solid) tolerance.  You can loop through each entity in the drawing, moving each end point to the nearest (for instance) 0.001 value.  If the original points are close enough, they will end up coincident.

Am I devious, or what?  8)

Dr PR

You want to be careful about moving the end points of arcs.

If it is a three point arc (not center/radius) you will change the radius and the center of the arc. This could really screw up the final product.

Just moving the end point of a center/radius arc can mess things up if you then move a nearby line endpoint to the end of the arc. This may change the line from being tangent to the arc to being non-tangent. If the arc is 90 degrees and the line is supposed to be tangent and have a "smooth" intersection with the arc, the result will be an angled intersection.

OK, you might say just move line (vector) end points. But what if the arc is supposed to be 90 degrees, but imports as 89 degrees? If you move the line end point you change the angle of the line. Again, this could screw up the results.

There is no way to solve this problem without examining each situation and determining if it is the end of the arc, the line, or both that must be moved. After all, maybe the intersection of the line and arc is supposed to be at an angle, or maybe the angle of the line should be changed.

Phil
DesignCAD user since 1987

Adrian 2.0

If you are going to combine the lines & arcs to form a plane you should convert the arcs to vectors before you try to join the endpoints, I always do this so that I can reduce (or increase) the number of points on each arc individually as necessary. I always combine all my lines before I convert to a plane so that I can check that there are no 'floating' sectons that didn't combine correctly which wouild cause the plane to be cut up into pieces.
(If you try to reduce the points after you have combined everything you'll mess up the combined vectors as well)
Arcs with tight radii have way too many points when converted whilst arcs that are nearly a straight line very often have too few points & actually become a straight line. Those arcs I generally trace over to get a satisfactory result.

Another consideration especially when dealing with imported drawings is to check why points are not connecting. sometimes it is not because they are 'short' but because they are in different planes & if you automatically combine those sections of line you'll finish up with an error message or a distorted plane.

Adrian

Dr PR

Adrian,

Good points. It also brings up how easy it is to omit certain important details when describing how to do something!

When I intend to create a polygon by combining lines and arcs, I always use the "Draw as line" option when creating the arcs. That allows me to define how many points each particular segmented "arc" has in it. Then I have no problems with unnecessary points when I combine everything into a plane.

I have been doing this for decades, and it is such a "natural" part of how I work I'm sure I forget to state it explicitly. It is sort of like some of my Mom's recipes - they have everything she needs to know to make a really good dish. But she often left out the obvious - to her - and my attempts to replicate one of my favorite foods using her recipe sometimes produces something less palletable than dog food.

Phil
DesignCAD user since 1987

Adrian 2.0

Phil,
Don't tell me you left the beef out of the beef stroganoff??
You are right of course - many of the things I do (the repetitive stuff) are so automated in my mind I don't even realize I'm doing it.

compman2

Ok so I did the ctrl1 and drug the points to match using gravity snap to snap to the end point and the drawing combined and I was able to make it a plane and extrude to 3d.  The odd thing was that in this one example I had redrawn much of the part in DC and thought I had used snaps for the end points.  I am struggling with how to use snaps while drawing arcs.  I have been using the period key to anchor the points of the arc it seems sometimes this works sometimes it throws me out of the arc or anchors somewhere funny.  I have resorted  to simply selecting the gravity snap icon on the tool bar before placing each point.  I must have missed a snap or two in the redraw process.

I have attached a copy of the object I was working with.  The problem was where at both ends of the big arc.  In this case the exact integrity of the arc weren't that important.  I simply made the straight line joining the bottom of the large arc slightly less than 90 degrees and modified the fillet that attached to the top of the large arc slightly.  In both cases they have no effect on the real outcome of the object.

I have another question.  There are lots of holes in this object.  Currently I have been selecting each hole and making it a plane and then extruging it.  Then doing a solid subtract.  Is there a way to "join" all the holes as one unit and do one extrude  and then one solid subtract?

Thanks for all the help and suggestions.

Rob S

#8
Absolutely, yes, and there are probably several ways to do it

Starting with your drawing as is, what I did was switch to 3D mode, select all the circles, and "edit, selection edit, convert to planes".  (This is a bit inefficient, as it leaves too many points, see drawing info below,  but OK for this example)

Then, with all of the circular planes still selected, I extruded them together, and defined the result as a single solid.

Then, I extruded your body plane to a slightly lesser thickness, making sure my rods (for want of a better word) stuck out on both faces.

Next, I subtracted the one "solid" consisting of all of the rods, from the body, result as below, rotated so you can see the holes go right thru the body.

Total time the drawing was open 14 minutes, and I had not actually ever done this before.

I think it would have been quicker and more efficient to draw the circular objects as "rods" in the first place, using the solid primitive tool, then define them together and subtract.
User since forever

Bob P

Regarding fixing the corner curves:
It's a bit late now (after the plane is created) but what I would do is delete the original (bad) curve, then fillet the corners.  That way you're guaranteed proper connections.

Dr PR

compman,

I assume you do not have grid snap enabled. If it is you may think you have placed the cursor at the end of a line, but the cursor will end up at the nearest grid intersection instead. This can cause misplaced line ends near the ends of arcs.

Another thing that can cause small positioning errors is "cursor creep." You may gravity snap to the end of a line or arc, but then the mouse moves a tiny bit and the cursor is repositioned. Then when you draw the line there will be a slight gap between it and the object it is supposed to connect to.

Cursor creep is caused by the digital nature of the mouse/trackball pointing device. If the mouse position is right on the "edge" between a "0" and a "1" when you position the cursor, just the slightest vibration may cause the bit to flip. This causes the cursor to move. Anything that causes vibrations in the desk top can cause bit flip - a truck going down the road outside, typing on the keyboard, someone walking down the aisle, or just tension on the mouse cord. The distance the cursor moves is so small that you won't see it move unless you are zoomed in very deeply.

Phil
DesignCAD user since 1987

compman2

Rob S.
Ok I tried it from scratch with this drawing following your directions.  Here is what I ran into.  I selected all the holes and converted them to planes.  Then with them still selected I extruded them.  I then did a solid define for the holes.  Then I extruded the body thinner than needed and centered it on the rods in the top view.  I then did a solid subtract.  This removed all but three of the holes.  I did a control-z to undo and immediately did the solid subtract again and all the holes were removed.  I am running v20.1 could this intermittent behavior be a bug.  It seems odd that performing the same operation with the same solid and getting different results is really odd.

I just did an undo again back to having the rods defined as a solid.  I did the solid subtract and all but 4 holes subtracted.  Once those holes are in that state they can't be used for solid subtract.  I did the undo again and backed up exploded the solid define, redefined the solid with all the rods(holes) and subtracted and all the holes were cleanly cut in the body of the piece.

I have done the undo then solid subtract maybe 10 times.  Out of 10 I maybe got 2 times with all the holes being cut into the body.  I tried to do my procedure exactly the same each time and I get random results.  Usually I get 2/3 of the holes cut but there is no ryhm or reason to which ones are done correctly and which ones don't.

If this is a known issue in v.20.1 an upgrade is in my future.

minstrel

#12
Hi compman2,

All sorts of 'crazy' things can happen with DesignCAD and it usually is something we over looked.

You are giving it your best so lets see if I can help.  I did a video and it's on YouTube - 'Cookie-Cutter Patterns'
http://www.crossresolution.nl/3Dspace/tut_005.php.

If you have not seen it, give it a peek...it reviews solid/subtract techniques...and may be found useful.

What seems to be happening is when you select the holes to 'solid define' there is a stray piece not being included and this is causing the problem.  Try this...after you 'solid define' move it aside and see
if the 'strays' show up.  If they do, undo and perform you selections one at a time [where necessary] by 'dragging' to select....

Another approach to this, since it a small project, is to drag select everything then, while holding down
the shift key de-select everything that's not to be included in the 'solid define'

hope this helps, too!

All Success!
Minstrel

edit - link update

MarkX

Quote from: minstrel on January 09, 2013, 08:38:37 AM
Another approach to this, since it a small project, is to drag select everything then, while holding down
the shift key de-select everything that's not to be included in the 'solid define'
The polygon select tool may help with this task.

Mark

compman2

Minstrel,
I have seen the video but will go over it again.  When learning there is much that goes by you on the first couple of viewings.  I went back to my larger project and converted this piece to 3d without a hitch as well as another 8-10 parts.  All of my other conversions went without a hitch.  Now I have all the pieces created in 3d.  On to doing a 3d assemply.  This is where the fun starts.  Thanks for you help.  I will keep in mind that funny things do happen and use your methodology when they do.

I may have more questions when trying to assemble these parts in 3d space.  That would be for a different thread though.  Thanks for all your help.  I now need to make myself some custom toolbars to streamline my work.

I have another real world project that I was working on and designcad has proved a gem.  My father and I have developed some land into a subdivision.  The engineering firm gave us the complete set of plans in a dwg file.  We have had lot purchasers want a plat to scale of their lot to help with locating dwellings on the lot.  I wanted a plat with topo lines property lines, setback, utilities information.  Using the section copy from the original drawing, I paste it into a new drawing, rotate it so the lot lines are roughly parallel to the page orientation, then I section copy and paste again to get rid of more extraneous junk.  I delete the origional selection and go about deleting all the layers of stuff that isn't needed.  This has been fast and easy and produces beautiful results.  I now have 17 more lots to go.

Thanks again for your help