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.

DXF Dimension Import Problem

Started by RKanarek, March 22, 2011, 11:08:25 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

RKanarek

Greetings.

There doesn't seem to be an area expressly for defect (bug) reports. Doubtlessly this is because defects (bugs) are so unusual in DesignCAD as it exists under the stewardship of IMSI/whoever-they-are-today. Still, I seem to have found a few regarding DesignCAD Max 20.1's DXF import, so I thought I'd report them here. There's no need to hurry to correct them; Thursday will be fine.

I imported a drawing of a Bud Industries CU-3821 plastic project/utility box from http://www.budind.com/dxf/hb3281.dxf [1][2]. Using both the quasi-corresponding PDF file file and the previously described DXF file loaded into FelixCAD LT, the following defects are immediately obvious:

1. ALL the linear dimensions--not text or pullouts, but computer derived dimensions--are wrong. Also, they are all badly drawn.

2. ALL the draft angle dimensions are badly drawn and show two percentage signs (i.e., "%%") in lieu of a degree mark.

I happen to have DesignCAD Max 14 installed on my computer, too. Based upon a cursory inspection, it imported the DXF file just fine.

Cordially,
Richard Kanarek



[1] Caveat: Having no personal experience with the box, I vouch neither for nor against the box in question.
[2] Pedantic Note: The drawing is misnamed as it covers more than one model of the plastic box series and all the boxes described are of the suffix MB variety.


Rob S

#1

You will find bug reports scattered throughout these forums, mind you as you say, due to the depth and near perfection of designcad, these often turn into a feature before you know it.   ;D   

We also do have one dedicated user who reports confirmed bugs to a list that is kept in the beta forum, and the rest of us who remind him if he misses one!

I can confirm your issues in V19 and V20 using the default import settings.

However for me, in V20 I can get it to import pretty much correctly by selecting the file type dxf, and then the setup button in the import dialog, and at the bottom left select "Use generic dimension"

The latest earlier version that imports a drawing which "looks" correct is V17, but you will note that these same dimensions are imported as lines and text, and are not dimensions at all.

This kind of thing has been troublesome since DCAD has been trying to import dimensions as such, the conversion is usually fairly good, but often enough there are some problems due to the many different dimension parameters that autocad uses.

User since forever

DrollTroll

There's always room for improvement. Despite what some marketers may attempt to claim, DesignCAD will never be a complete replacement for AutoCAD.

Unlike AutoCAD, DesignCAD allows dimensioning in an arbitrary 3D plane, not just parallel to the current workplane. In this particular drawing, some of the control points of some dimensions are not in the same plane, so DesignCAD has tried to interpret the data in a 3D fashion. Hence the somewhat skewed aspect of some dimensions.

As Rob noted, if you choose the "generic dimension" option in the setup tab, DesignCAD will explode the dimension into its component parts, and not try to convert it to a DesignCAD dimension. This has the advantage of making it "look right", but the disadvantage of not updating values if you rescale or move points.

DesignCAD 14 *always* explodes the dimension, so it "looks right", but you always get lines arrows and text, and never dimension entities.
25 years with DesignCAD

RKanarek

Greetings.

First off, thanks for the very helpful and informative posts--both here and elsewhere!

The really shocking thing about the problem was not that DCAD merely displayed some of the dimensions badly, but that the dimensions themselves were wrong. As a long time (if sporadic) DCAD user, I would not have been nonplused if DCAD had imported the dimensions as text or just badly. But dimensional numbers that are wrong is the sort of kick in the pants that I wouldn't have been on guard for.

If DCAD can't correctly import dimensions as actual dimensions, then surely the default mode of operation should (again) be to import the dimensions as text.

Just my two cents.

Thanks again!

Cordially,
Richard Kanarek



Rob S


If the points are not in the same plane, then the dimension along the angle might in fact be correct in 3D space?
User since forever

Adrian 2.0

Rob,
You are exactly right. This seems to be the result of a poorly drawn drawing, or indeed of a drawing that is supposed to be read in 3D.
Richard,
If it's the former there is a simple solution.
try:
Edit/select all.
Open the info box & in the Z scale box change the number from '1' to '0' and the dimension should then read correctly.
There are other methods of 'flattening' a drawing which were discussed in recent post here, but I still find this quickest.
Of course if the drawing is deliberately drawn in 3D this would wreck it!!

The attached is a simple 3D cube with a (red) diagonal dimension, viewed in 3d, 2d & then 'flattened'. Notice the dimension 'fixes' itself.

The reality is is most likely a 'bug' in the original program, not in DCad - I bet it has a name beginning with 'Auto'

RKanarek

Dear Rob and "adriank":

Thanks for giving me a chance to try out a new (to me) command! I've been on a quest to bring myself out of the 90s by fully exploring all Windows DesignCAD has to offer. (I've even [finally] read about DCAD's BasicCAD macro language!)

BTW, regarding the "Scale" (Edit / Selection Edit / Scale) command, it won't accept a 0; according to the pop-up dialog box, the smallest scale factor it will accept is 0.00001 (1.0 * 10^-5). Does the Scale command work differently for you? I'm using DCAD 3D MAX 20.1.

While I understand the nature of the problem, as an objective, impartial reasoner, I must point out that we have only established that DCAD is putting things in 3D; we have not established that it should be (i.e., that the DXF file was improperly generated by the original draftsman or CAD software).

Lastly, to protect the (potentially) guilty, I won't mention that the "Properties" tab in Adobe Reader describes the PDF quasi-version of the DXF file as having been created by "AutoCAD 2000." ;-)


Cordially,
Richard Kanarek

P.S. FWIW, importing the DXF with the option "Use Generic Dimensions" rather than "Fit a regular Dimension type" causes the DXF file to be imported (apparently) properly, although, as was mentioned, the dimensions import as text.

Pearco

RKanarek;

If I understand your comment on scale sizes correctly, you are trying to enlarge or shrink a object and leave one axis the same ( no change in size).
If that is the case, leave that axis at 1. Do not try to change it to (0). It will remain the same size.
Jim
User since ProDesign 1.5

Adrian 2.0

The 'scale' command will not accept a value of '0' - that is true, but if you open the info box and use the Z scale field (coloured yellow in the attached) it does.
More accurately, it does on entities other than solids and grids, it seems they need to be converted to lines or planes for it to work.

RKanarek

Howdy.

You've probably figured out this thread by now, but just in case you haven't...

Quote from: Pearco on March 27, 2011, 03:33:37 AM
RKanarek;

If I understand your comment on scale sizes correctly, you are trying to enlarge or shrink a object and leave one axis the same ( no change in size).
If that is the case, leave that axis at 1. Do not try to change it to (0). It will remain the same size.

The problem was that an (apparently) 2D DXF file was being displayed incorrectly because, for whatever reason, bits of it were being drawn in 3D and this was affecting the displayed dimensions. The idea that was suggested was to set the Z scale to zero, so as to flatten the drawing. (I'm inclined to stick with using the "setup" option with File Import to "Use Generic Dimensions," but that's just me.)

I'm not sure what the effect of setting the Z scale to exactly zero is. Setting it to nearly zero did not leave the drawing "the same size" (at least not in the Z direction). I just went to try setting the Z scale to zero via the "Info Box," but I couldn't find the choice. Perhaps I had to many and/or the wrong drawn items selected, but I have neither the time or the particular need to discover where that little scale menu has gone off to at the moment.

BTW, I've actually completed my first (reasonably) satisfactory 3D model: yes, that dreadful box is now fully rendered. Brass (or at least yellow) threaded inserts, draft angles, the works! I can't imagine being more proud of myself! ;-) I don't think an old fashioned paper-and-pencil draftsman could have done the same thing in much less than 1/1000 the time!


Cordially,
Richard Kanarek

Dr PR

Richard,

I have seen the Z axis depth problem in imported 2D DXF files many times over the years. It isn't something new, and I don't think it is DesignCAD's fault.

Not all DXF files import into DesignCAD this way, but some do. I have always suspected that the original designer of these files (working in another program) was unknowingly working in 3D mode, viewing the file end on so it appeared as a 2D image. In this case something may have introduced the small Z dimension offsets, and these would not have been noticeable to the viewer.

It can be difficult to reconstruct these warped files. Here are two tricks to try.

Method 1:

1. In 3D mode draw a plane (on an empty layer) larger than the entire drawing and in the desired Z axis plane of the 2D drawing (where most of the drawing objects already are).

2. Work in Point Select Mode (CTRL 1) so you can see the points on selected objects.

3. Where there is a point out of plane, select the point (the cursor will turn into a "target" symbol when near the point) by gravity snapping to it.

4. Press the "F7" key to activate the snap to plane function. This will cause the point to move on a line perpendicular to the plane and snap to a point on the plane. With luck you can also select dimension points and snap them back into the plane to get accurate dimensions.

CAUTION: If the point is outside the area of the plane it will snap to the edge of the plane along a non-perpendicular path. Be CERTAIN the plane is much larger than the drawing area!

Method 2 (if all else fails):

1. Draw a plane larger than the drawing area at some Z distance from the plane of the drawing.

2. Select all objects in the drawing (except the plane),

3. Extrude all objects through the new plane, perpendicular to the plane.

4. Find the surface intersection of each extruded grid with the plane. These will all be in a 2D plane.

Note: All bets are off what dimensions will do with this method. Also, the surface intersection function adds a lot of unnecessary intermediate points, so the resulting drawing may have to be cleaned up by removing points in Point Select mode. It can be quite a mess!
DesignCAD user since 1987

JJG

Quote from: RKanarek on March 29, 2011, 04:09:03 AM
The problem was that an (apparently) 2D DXF file was being displayed incorrectly because, for whatever reason, bits of it were being drawn in 3D and this was affecting the displayed dimensions. The idea that was suggested was to set the Z scale to zero, so as to flatten the drawing. (I'm inclined to stick with using the "setup" option with File Import to "Use Generic Dimensions," but that's just me.)

I'm not sure what the effect of setting the Z scale to exactly zero is. Setting it to nearly zero did not leave the drawing "the same size" (at least not in the Z direction). I just went to try setting the Z scale to zero via the "Info Box," but I couldn't find the choice. Perhaps I had to many and/or the wrong drawn items selected, but I have neither the time or the particular need to discover where that little scale menu has gone off to at the moment.


for doing that :
Method 3:
use the Flatten Z macro we talk in the topic  http://forum.designcad.com/index.php?topic=3385.msg18285#msg18285
more simply, faster, work on selected entities only, or on all the drawing, etc etc ...