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.

Dimension Problem in 17

Started by DCdosuser, September 19, 2016, 05:48:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DCdosuser

Until I purchased the most recent version of DesignCAD (2016 64 bit), I had a serious problem with dimensions.  I limped along and managed, but the problem is really intolerable.  The problem occurs with version 17.  Often I would place a dimension or measure a distance and the result would be way off.  I have two suspicions as to what the problem is, but really have no idea.  The first is that the sheet template that I have been using was originally brought in from DesignCAD DOS.  The other is that somehow I have invoked a 3D command even though I never use 3D, somehow putting some portions of the drawing at an angle to the 2D screen.  I drew a brand new template in DCAD 2016 which seems to be OK.  However, I have a lot of drawings already in 17 that I would like to reuse in 2016, and I need them to measure correctly.  Attached is a modified version of one of my templates.  I deleted all the important stuff.  As you can see, you will get different results depending upon whether you measure between 2 points, 2 lines, dimension between 2 lines, look in the Info Box for the length of a line, or draw a new line a given distance from another line.  The weird thing is that this seems to occur randomly.  I will be drawing away, then place a dimension or measure something in a drawing that was fine up to that point, and and the dimension will be obviously wrong.  FYI, I have Alt+L assigned to measure between 2 lines and Alt+P assigned to measure between 2 points.  Can anyone tell me what is wrong?

Rob S

#1
It seems your dimensions are all consistent except what you get using alt+L.

I do also get a discrepancy using the "line distance" command, so further checking is required.

I do not see any Z-values (3D issues) which could be causing it
User since forever

DrollTroll

The DOS versions used single-precision mathematics, whereas newer versions use double-precision, So it's  no surprise that your measurements start getting wonky somewhere in the 3rd or 4th decimal place. When loaded into a current version, the coordinates of those older drawings are taken 'as-is', warts and all.

For example, if I increase the precision settings to 6 decimal places, your nominal 92 foot vertical line is actually 91.999664 feet according to the Info Box; it's short by about 4/1000 of an inch. Certainly within a reasonable tolerance for most real-world projects of such a size.

FYI, the "Line Distance" command doesn't mean much if the lines aren't exactly parallel. In such a case, where is DesignCAD supposed to make that measurement? It will vary all along the length of the two lines. What DesignCAD does in this case is measure the distance between the endpoints. The lines where you're seeing this discrepancy aren't quite 'true' -- one of the two lines is not quite horizontal, or not quite vertical. So, in effect, the "Distance between two lines" is of little use for many cases. Rather than use it, I'd suggest Angle and Distance Between Points while Ortho Mode is on, and line snap to each of the two lines. You'll get slightly different measurements along the lengths of the not-quite-parallel lines, but they'll only be off by a small amount in these cases.

Another alternative is to select all your nominally horizontal/vertical lines, and run the Edit/Selection Edit/Ortho command to force them into 'true'. Then Line Distance will give you meainingful values. Note that you may need to trim the corners afterwards so they meet correctly.

25 years with DesignCAD

Adrian 2.0

It seems the Line-Distance command - which I've never used - is measuring the distance between the endpoints of the 2 lines, as on the attached image.
I note too  that the radius corners do not match up with the ends of the bold broken lines (they overlap by 1/8") which may not be helping...

Rob S

#4
DT, thanks for helping with this, I was a bit puzzled.

However, the line-distance command is definitely not operating as I would expect from its description here.

QuoteIn such a case, where is DesignCAD supposed to make that measurement? It will vary all along the length of the two lines.

First of all, it does not say it is limited to parallel lines, and it should according to the documentation in fact find the distance at the point where the two lines are closest together, which may not be at either set of endpoints.

QuoteLine Distance

Menu: Dimension / Info / Line Distance

Measures the shortest distance between two lines.


I think there is an issue with this command that should be corrected, note I did not use the red highlighted word that you don't like.....

for DCDosuser, can you confirm if all your errors or discrepancies  involve the use of the line-distance command??
User since forever

DrollTroll

Rob,

No, I agree this needs to either be changed, or at least documented better. It's one of those obscure commands that I haven't used in a good long while.
25 years with DesignCAD

Dr PR

For what it is worth I didn't know there was a "line distance" command or a command to measure distance between two points.

I just start the "Line" (V) command, gravity snap (right click or ".") to set a point and then use the comma (,) gravity snap to move the cursor to another point without setting a second point for the line. Then I read ythe distance in the Coordinate Toolbar. If drawing data is displayed you can see the distance in the box near the cursor.

This way I don't have to remember a bunch of commands - the Line function does them all.

Phil
DesignCAD user since 1987

DrollTroll

#7
Here's an illustration of why Line Distance isn't all that helpful for non-parallel lines.
Assume for the moment you have two almost-parallel lines. They intersect at some point. But the two lines neither begin nor end at the same distances from that imaginary intersection.

You could say "the closest distance between these lines is the distance between the nearest endpoint of either and the imaginary same-radius endpoint of the other, making an imaginary extension of the second line if necessary".

Or you could say "the closest distance between these lines is the distance between the second-nearest endpoint and the same-radius location on the other (assuming that lies between the endpoints of the second line)".

See attached image and matching drawing file (v26 format).

The issue is compounded if the radii of the start and end points of both lines don't lie in the same range (i.e. one starts at 100 units and ends at 150 units from the intersection, and the other starts at 155 units and ends at 175 units from the intersection). What then do we mean by "shortest distance"? Again, it all depends on where you want to measure it -- at 100 units from the intersection (nowhere near the closest actual end of the second line)? At 150 units? 155?

And, what if they're not coplanar? The meaning of "closest" gets muddy.

It seems *to me* that the most mathematically-consistent possible result, at least for the coplanar case, is to extend both lines to the same nearest-to-intersection radius and measure their separation there. This distance is basically the length of the chord from the intersection point to a chosen radius along the two lines. Mathematically, assuming angle theta between the two lines, and distance R as the distance from the intersection to the nearest endpoint, the distance is 2R*sin(0.5*theta).

For non-coplanar lines, the only consistent meaning would be to find the closest two points along the lines' equations, and measure that distance -- even if those two points are nowhere near the actual drawing's boundaries. This could no doubt be calculated from the two line equations, but I haven't taken the time to derive it yet.
    rubbish... doesn't make sense even to me now... more caffeine.

The simplest 'fix' would be to simply post a message "lines not parallel" and be done.
25 years with DesignCAD

Rob S

To fulfill the expectations of the documentation containing the word "closest" in a relatively simple way, I would expect it to provide the closest distance between the actually drawn portions of the lines and not to include any imaginary extension beyond its endpoints, regardless of whether the endpoints are on the screen or not.

Even non-coplanar lines in 3D do have a point at which they are closest.

If you were to fix/invent the programming to do this, of course it would be nice to have a snap or some other way to display the location and/or draw a line between those two "closest" points. 

If that is too hard, then just change the documentation to say "distance between parallel lines"  instead of "closest" and provide the message as you suggest above.

User since forever

DrollTroll

#9
Perhaps what we actually need is a separate "shortest distance from point to line" command. Set a point from which to measure, and the line to measure to. We're already almost there with Perpendicular To A Line (set a point on the endpoint of interest, then on the line from which the perpendicular extends. Measure the length of the resulting line.) Then limit "Line Distance" to only parallel lines.
25 years with DesignCAD

DCdosuser


While you were digging into the drawing that I posted with the dimensioning problems I just happened to notice that the cut line (outer border) on my template sheet didn't quite meet at the lower right.  It was very subtle.  I kept zooming in on the intersection of the two lines and finally confirmed that they did not meet.  I don't remember why but I kept zooming in and found that there were actually 2 lines at the bottom of the sheet instead of 1.  This situation very much surprised me because I am pretty careful while drawing.  It is very unlike me to have lines that don't meet.  Then I read your responses and found that I actually had lines that weren't parallel.  That really hurt.  Even though I haven't taken the time to verify my lines are not parallel, I now believe that this is the root of my problem, based on the attached test.  The test reveals that Alt+L is worthless if the lines are not parallel.  It yields a value very close to the distance between the closest 2 endpoints instead of the "shortest distance."  The test shows that for parallel lines Alt+L works fine even when the two lines are of differing lengths. 

I just need to make sure I don't work off of lines that are not parallel, and that I don't have extraneous lines that can easily throw the drawing off when gravity clicking on what I think is the endpoint.  My best guess is that this all started when the extra line got placed, and sometimes I was gravity clicking to one line and sometimes gravity clicking to the other.  This would also explain the 1/8" discrepancy that Adriank found.  I think the above confirms to Rob S that the Alt+L command seems to be the issue.

Regarding using ortho mode:  I don't usually use this.  When I want an ortho line I click my ortho line icon.  I am surprised that so many of you don't use the two commands Line Distance and Angle and Distance Between 2 Points.  I use them all the time (Alt+L and Alt+P) and are second nature to me, just like using F3. Regarding Rob S's suggestion to change the nomenclature, I would add that it would really be nice if all dimension formats could be made to be the same.  I work in Architectural units (feet, inches, and fractions).  In Settings I ask for everything to be in this format, but the dialog boxes often give decimal feet.  Without doing a calculation I don't know if 18.4479' is 18' - 5 3/8" or not.  But that is probably another discussion.

Thanks guys

DCdosuser


Rob S

It never ceases to amaze me how different users get by with a certain sub-set of Designcad commands and methods that works for them, and thus never discover or use a good part of what there is available.

After all these years, we finally find out that this "line distance" command was not working as documented, and better yet, it will probably actually get corrected very soon.

Try and find THAT most anyplace else.
User since forever

DrollTroll

I assume you have noticed that the Distance and Angle between 2 Points command does offer the choice of distance format and you can select your precision also.
25 years with DesignCAD

Rob S

Agreed, this however requires us to pick the points.

The alternative we'd be looking for is in fact to find the point of least separation between two lines, which might not be perpendicular to either line, and find the points on the lines where that occurs.

In the case of converging lines in a single plane, it would be most likely be from the endpoint of the shorter one, perpendicular to the other one.  This we could probably find using the perpendicluar from a line, and offset to the endpoint, and trim to the endpoint.  A command that combines those steps would be useful.

However, for two non-coplanar lines which cross each other, where this would be most useful, it would be like a twisted tangent point.  No idea right now how to find that in 3D space...
User since forever