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.

X and Y dimension problems in 3D

Started by Dempsey, April 03, 2010, 03:03:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dempsey

I know that the Z-dimensions have problems in 3D, however now I am having problems with X and Y dimensions in 3D too.

Dimension settings: horz. pos center, vert. pos center, orientation normal, Dim line with text. Drawing in alignment mode Automatic. The object is created by extruding the front plane. In the drawing you see that I can draw the dimension on the back plane correctly. However when I do the X and Y dimensions on the front plane the dimensions are no in the XY plane as it should be, but in some weird angled plane in the Z direction. I have several other 3D drawings where I encountered similar problems.

I appreciate when some of you can try to draw X and Y dimensions on the front plane and confirm my findings, because if you do then we have a very serious problem on our hands.
Dempsey

Lar

I'm getting z dimensions ok but for x dimensions the 3rd point angles to the upward any y dimensions angles to the right. I copied your solid to a new file and the same thing happens.

Lar

Dr PR

Dempsey,

I see the same thing. The resulting dimensions are not in the XY plane. I tried two experiments:

1. I noticed that the upper left corner (as in your original orientation) was at X=0, Y=0. I reset the origin to below and in front of the solid. I say no difference in the behavior of the dimensions (It isn't an X-0 or Y=0 problem).

2. I used the "Draw/Line/Contour Line" function to draw a contour line around the solid in the XY plane, slightly behind the front surface. Dimensions to points on this line behaved correctly. Then I moved the contour line to a position slightly in front of the front surface of the solid. Again, dimensions behaved correctly. So it is not some magic combination of coordinates that are causing the problem.

3. I noticed that the delta Z dimension was -0 from the upper left corner of the front surface to other points on the front surface. However, with 10 digits of precision the delta Z still registers -0. So, if the front surface is not truly planar and parallel to the rear surface the difference is very small. Still, I was suspicious that the front and rear surfaces were not actually perfectly parallel.

4. I reworked your solid as follows:

a. I drew a distance reference line from the upper rear left corner to the upper front left corner - this was the depth of the original solid.

b. I moved this line aside for a moment.

c. I used "Draw/Line/Contour line" to create a cross section line around the solid. I then moved this line out of the way temporarily.

d. I used the "Edit/Section Edit/Stretch" function to move the front face of the solid back a bit.

e. I positioned the distance reference line with the more distant end point at the upper left rear corner of the solid (the original position of this point).

f. I moved the cross-section line so the upper left corner was at the closest end of the distance line - where the corner of the original solid was originally.

g. Working in Point Select mode I moved each point on the face of the solid to the corresponding point on the cross section line. Now all points in the face of the solid were definitely in the same plane.

h. Now dimensions work correctly (see attached file). Note: the solid has been moved from the position in your original drawing.

****

My guess is that somehow the front surface of the original solid was not planar, or at least not parallel to the XY plane, and the slight differences were causing the dimensions to be drawn at angles.
DesignCAD user since 1987

Dean

Hi, I created a new similar design to yours and did not have any problems with dimensions. I will take a closer look at your file.



Quote from: Dempsey on April 03, 2010, 03:03:31 PM
I know that the Z-dimensions have problems in 3D, however now I am having problems with X and Y dimensions in 3D too.

Dimension settings: horz. pos center, vert. pos center, orientation normal, Dim line with text. Drawing in alignment mode Automatic. The object is created by extruding the front plane. In the drawing you see that I can draw the dimension on the back plane correctly. However when I do the X and Y dimensions on the front plane the dimensions are no in the XY plane as it should be, but in some weird angled plane in the Z direction. I have several other 3D drawings where I encountered similar problems.

I appreciate when some of you can try to draw X and Y dimensions on the front plane and confirm my findings, because if you do then we have a very serious problem on our hands.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Dempsey

Thanks folks for testing.

Dr PR, That was my suspicion too that the front plane was not perfect in the XY plane. I just tested the angle in test1 and the X, Y and Z lines are exactly 90 degrees up to and including +10 precision, after that there is a 1 in the 11th digit or higher.

I then draw a new box and all angles are exactly 90 degrees all the way up to +15 precision.

Now I have to figure where this inaccuracy is coming from as I have the same problem in at least one other 3D drawing.

V19 has the same difficulties with the front X and Y dimensions.

V17 show the same inaccuracy in the angles, but has no trouble doing the dimensions properly.
Dempsey

Lar

#5
Quote from: Dempsey on April 03, 2010, 06:39:13 PM
Now I have to figure where this inaccuracy is coming from as I have the same problem in at least one other 3D drawing.

<**I never had time to fully test and confirm the following but I have a strong suspicion...**>
Sometimes I would be zoomed in as much as possible and notice that a line that I snapped to already existing point would not be exactly on the other point so I would put it there. Then I would notice many other points like that and fix them. Sometime later I would notice that some of the same points I fixed are out of place again, as if some'a dem gremlins was messin' wit' my drawing. Anybody else notice this?

I know for sure that many points that I used relative to create would not be accurately reported in the info box (24" would be 23.99999321 or something like that). Most times I can use relative to fix them but sometimes it just can't be fixed. This first started back in 17, I think.

Lar

Dean

Hi, I looked at your file and all points seem to be in place,. My findings were that I was able to apply dimensions without any problems if I used "." gravity snap then draged the dimension to place . If I used the mouse to click on the points I noticed the issue as you described.




Quote from: Dempsey on April 03, 2010, 06:39:13 PM
Thanks folks for testing.

Dr PR, That was my suspicion too that the front plane was not perfect in the XY plane. I just tested the angle in test1 and the X, Y and Z lines are exactly 90 degrees up to and including +10 precision, after that there is a 1 in the 11th digit or higher.

I then draw a new box and all angles are exactly 90 degrees all the way up to +15 precision.

Now I have to figure where this inaccuracy is coming from as I have the same problem in at least one other 3D drawing.

V19 has the same difficulties with the front X and Y dimensions.

V17 show the same inaccuracy in the angles, but has no trouble doing the dimensions properly.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Dr PR

I have  seen the problem Lar mentioned. It is especially common with points on curves or the curved surfaces that result from solid or plane subtraction. It also is a problem for any intersect or snap to a surface, curve, arc or circle.

It is always a good idea to zoom in greatly to verify that a point is set correctly, especially for critical points in a drawing.

I tested Dempsey's drawing in V15 and had no problems.

I also tested it in V20.0 using the mouse right click gravity snap and the period (.) key gravity snap. There was no difference - in both cases the dimensions were produced at odd angles.

There may be more to this. With Dempsey's original solid, in V20.0 I was able to get a dimension placed correctly across the top front edge. I rotated the view so I was almost looking straight down the top front edge, and the dimension was placed correctly! Note: This happened only once, and I cannot repeat it now. Maybe I got lucky and the mouse "drifted" slightly and put a dimension point in the "right" place.
DesignCAD user since 1987

Dempsey

Same as Dr PR, gravity snap with the mouse and "." give the same bad results. On my solid I have never been able to get the front top edge to have a good dimension.

In the same drawing I drew lines at the very small angle of 10^-14 to the X, to the Y and to the Z normals. Dimensions along those three lines are all working fine!!!

Then I took my test1.dcd, did solid explode, moved the front pane away, did a vector convert, broke the lines and moved the top front line away from it all. The X-dimension along that line did not work!!! Then I copied the line several times and randomly extended the lines. Then I drew the X-dimension along each of those lines; some failed some were okay.

Results are attached.

Dempsey

Rob S


This is beginning to sound like one of the great mysteries of software, to which Designcad has contributed its fair share  ;D
User since forever

Dempsey

#10
Okay, I went one step further. I isolated the top front line of my solid in test1.dcd.

Then I copied the line several times and randomly extended the lines. Then I drew the X-dimension along each of those lines; four failed (red) rest were okay.

Then I rotated the X lines 90 degrees to get them to point in the Z direction. Then I drew the Z-dimension along each of those lines; three failed (red) rest were okay.

Then I rotated the X lines 90 degrees to get them to point in the Y direction. Then I drew the Y-dimension along each of those lines; two failed (red) rest were okay.

I obviously spoke too early. V20.0 has still serious dimension problems and as such is useless for me. Once again I have to go back to my old friend V17.2 to do my 3D dimensions. What a damn shame.

NOTE: The Z-dimensions have separate Add Leader and No Leader problems. The Z-dimensions with Dim Line with Text that did work can be randomly positioned, which is very time consuming; the dimension should be in the ZY plane or the ZX plane depending on the cursor position. Only when <SHIFT>, <CTRL> or <SHIFT-CTRL> is used should random positioning be allowed.
Dempsey

Dean

hi, could you explain what steps you took in creating the original drawing.though I can apply dimensions to your original drawing with no mouse clicks I feel as though something has been created in that drawing causing the conflict. Whenever I draw a 2d profile then extrude that profile I have no problems applying dimensions with or without the mouse. Did you try applying dimensions to the drawing I created in my first post?

Quote from: Dempsey on April 05, 2010, 05:24:51 PM
Okay, I went one step further. I isolated the top front line of my solid in test1.dcd.

Then I copied the line several times and randomly extended the lines. Then I drew the X-dimension along each of those lines; four failed (red) rest were okay.

Then I rotated the X lines 90 degrees to get them to point in the Z direction. Then I drew the Z-dimension along each of those lines; three failed (red) rest were okay.

Then I rotated the X lines 90 degrees to get them to point in the Y direction. Then I drew the Y-dimension along each of those lines; two failed (red) rest were okay.

I obviously spoke too early. V20.0 has still serious dimension problems and as such is useless for me. Once again I have to go back to my old friend V17.2 to do my 3D dimensions. What a damn shame.

NOTE: The Z-dimensions have separate Add Leader and No Leader problems. The Z-dimensions with Dim Line with Text that did work can be randomly positioned, which is very time consuming; the dimension should be in the ZY plane or the ZX plane depending on the cursor position. Only when <SHIFT>, <CTRL> or <SHIFT-CTRL> is used should random positioning be allowed.
DesignCad 3D max 2021
Lenovo 17.3"Laptop Intel(R) Core(TM) i7-9750H CPU @ 2.6GHz/Turbo boost 6 cores 12 threads.16GB memory.SSD 256GB/HDD 1TB 7200 Rpm.Nvidia Graphics GeForce GTX 1660 Ti 6GB
Windows 10 Home 64 bit

Dempsey

Dean,

I forgot to reply to your earlier message as Dr PR already stated that the problem was still there, and I could confirm that.

When I make a new plane and extrude that to a solid I can do dimensioning without a problem. My solid was created in exactly that way some time back, yet the back is in the XY plane while the front is not. This is one problem to figure how what could have happened to cause that. I have larger drawing where I have the same problem.

The second problem is why the dimensions get screwed up simply because a line is 10^-14 off a normal. When you use Dimension/Info/Angle & Distance Between Points (shortcut "<") then with the angle precision at +15 you see that the angle with the normals (X, Y, Z) is a very small angle, and that causes the dimensions to go bad.

The dimension problem can easily be reproduced as follows:

Draw a 1st line: set begin point, do point relative from last point: X=20, Y=10^-14, Z=10^-14. Draw X dimension and the dimension is in the XY plane how it should be.

Draw a 2nd line: set begin point, do point relative from last point: X=20, Y=10^-14, Z=-(10^-14). Draw X dimension and the dimension is in an angled plane.
Dempsey

Dempsey

I think I found one of the problems. I remember that at one point in time I sliced the solid along the XY plane, and sure enough I can reproduce (part of) the problem.

Draw a box in 3D space, say 20 x 20 x 20.

Slice with XY plane at Z=0.5 from the front.

Use Dimension/Info/Angle & Distance Between Points (shortcut "<") with the angle precision at +15 and it shows that for the front left and right edges two of the angles and not a perfect 90 degrees.

This is the fundamental error. The side effect is that drawing dimensions along those lines causes the dimensions to misbehave.
Dempsey

Lar

#14
Here's the workaround for the x and y of this particular file: if you move the upper left front corner point no less than 0.00000001 (7 zeros and a 1) in the z direction then the x and y dimensions behave properly. You can't see the difference if you zoom in as much as possible (although the units command will report the difference... set the dimension precision lower if they show the undesired amount). You may have to turn on ortho mode so the dims don't rotate around the first 2 points (depends on your view angle).

Other situations may call for other points to be moved out of place. For example, in this file the z dimension from that same point is now skewed. Maybe you can explode the solid, move the point of only one of the surfaces then re-solidify. That way if a dimension acts up , escape to the setpoint at that corner, move the mouse around and gravity snap to the find the other point.

Sometimes being in ortho mode makes it seem like the dimension is not functioning properly, depending on your viewing angle.

Lar