News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

Twisted drawing

Started by Dr PR, August 05, 2014, 11:07:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

V23.1 3/11/2014
Win 7 Pro 64

I just has a strange experience. I had been working on a drawing for several hours, and finally finished it - and saved it. Then I generated some images (File/Image/Save Image File). I was switching between "Perspective" and "Parallel" views, and the four standard windows and a single window. I used "Window/DesignCAD Tile" to restore the four windows and the drawing suddenly was skewed! I saved it with a different file name.

See the attached images. Looks like it was skewed along the +X and -Y axes in the -Z direction (the bottom of the "top view" and the left side of the "side view"). I don't think the Z values were changed, but Y values decreased in the negative Z direction and X values increased in the negative Z direction.

Note: For my work the "Front" view (XY plane) is actually the side, and the "Side" view (YZ plane) is actually the front. I always make the X axis the longitudinal (lengthwise) axis. The "Top" view is the XZ plane.

I was not using any drawing commands when this happened and nothing was selected. Weird!

I have opened the drawing in V22.1 and V23.1 and it is always skewed. Fortunately I saved the original drawing before I started changing views and saving images!

Has anyone else seen anything like this?

Phil

Note: It is just a 23.7 Mbyte file (1,578 solids, 66,185 entities and 514,765 points). I have worked with much larger files and have never seen this problem before.
DesignCAD user since 1987

samdavo

#1
Phil,
So xyz coordinates of points are unaffected,  but they display skewed?
Gotta be something to do with perspective vs parallel surely (?)
PS You and others have a lot more experience in 3D than I do :)

One thing to try - maybe  change to 2D,
and check front, side, top views there.  (?)

PS I realise you will lose shadows and shading in 2D.
In which case,  maybe try changing back to 3D.

One thing I have learnt to do... (no doubt a red herring) - but if I have a number of files open, maybe some 3D and some 2D - and I want to close a 3D file  -  then I find the quick way to do that is to change that drawing to 2D, and close one view instead of 4. 
cheers

prl

#2
Quote from: Dr PR on August 05, 2014, 11:07:52 PM
Has anyone else seen anything like this?

New to me.  If you select a single item,  one in the skewed drawing and same one in the normal drawing and cut and paste to a third drawing, are they indeed the same?  Trying to determine if this is just a visual distortion or if the model itself has been altered or damaged.

Edit: and all workplanes are in default for both 2d/3d mode, yes?  A while back, if one saved a 3d drawing while in a temporary workplane, DesignCAD would overwrite the entire original database model to new default XYZ coordinates the next time the user opened the model. In other words, your temporary UCS became your default UCS.  Very confusing.



Bob P

On the skewed drawing, I would draw a line between two points that should have equal y values.  Select the line, and open the Info box.  The delta-Y value should be zero.  If not, then you can (hopefully) un-skew the drawing back to "orthogonal".

DrollTroll

Try "Set View by Drawing Center" in each view, and click then release without moving the mouse, so the camera is pointing to the center of the drawing. Any help?
25 years with DesignCAD

Dr PR

#5
prl,

Good idea. See the attached image.

I cut and pasted the same structure from the original (right) and skewed (left) drawings into a blank drawing. Clearly, the skewed drawing is mangled - it isn't a display issue.

In the skewed drawing, as the Z value increased in a negative direction:

1. All X values were increased proportional to the change in the Z value. In the "top" view posted earlier you can see that the drawing was twisted in the XZ plane. The bottom of the drawing (more negative Z values) is shifted to the right (more positive X values).

2. All Y values were decreased proportional to the change in the Z value. In the "Side" view posted earlier, and in the image below, the left of the drawing (more negative Z values) is shifted down (more negative Y values).

Again, the amount of change in X and Y values for any point is proportional to the Z value. The maximum overall skew in the drawings is:

Delta X: +5.29
Delta Y -10.32
Delta Z: 0

For what it is worth, the drawing origin is in the middle of the drawing. In the original drawing and in the skewed drawing the minimum X, Y and Z values are:

               X min     X max    dX     |   Y min    Y max      dY    |   Z min   Z max    dZ
Original  -281.1  +253.3   534.4  |  -105.2  +253.3  358.5  | -101.3  +97.2  198.5
Skewed  -281.7  +229.5   511.2  |  -95.6    +254     349.6  |  -101.3  +97.2  198.5

Note: dX, dY and dZ are the total length of the drawing on the X, Y and Z axes. This shows that not only were the X and Y values changed, the overall size of the skewed drawing is smaller along the X and Y axes. The Z axis did not change.

****

Well, this is peculiar, and I have no explanation, so just keep a lookout for similar problems. And save your drawing OFTEN!

Phil
DesignCAD user since 1987

samdavo

I'd be considering patenting that boat - the torsional-flexing hull - or torsoflex maybe - ideal for choppy seas.

Would be interesting to see what it looks like in 2D side view, wire frame.

prl

Quote from: Dr PR on August 06, 2014, 12:18:49 PM
the overall size of the skewed drawing is smaller along the X and Y axes. The Z axis did not change.

Maybe a freak accident, say a series of keystrokes and actions where one of your tiled windows was in 2d mode and you thought you were window zooming but instead you were in point select mode and somehow window dragmoved some points around without realizing it.   

Of course it could be anything really.  Truly odd.

Dean

I've done that before several times due to Dcads inability at times to "let go" of a selection.
Sometimes what appears to be clicking in the drawing area away from an object Dcad decides to still select the entity.
Dcad really needs an "undo history" Phil could have looked in the undo history to see if he had inadvertently moved points.
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 don't believe this was cause by moving points manually because all points were not moved by the same amount. That's why I keep pointing out that the distance a point was moved is related to the Z value of the point. And it isn't the actual numerical value of the Z coordinate, but the differential between the highest positive and lowest negative Z values.

Look at the last image I posted. Points were moved a greater distance on the left side (-Z) than in the middle, and very little close to the right side (+Z) of the drawing. Moving a collection of points in Point Select mode moves all points the same distance.

The greater the difference between a point's Z value and the highest Z coordinate values, the greater the X and Y offsets. Only those points with the largest negative Z values were moved the most. Points with more positive Z values were moved less, and the offset is proportional to the difference in the point's Z value and the highest positive Z value in the drawing.

This is like Photoshop's "Perspective," "Scale" or "Warp" functions that stretch an image, except DesignCAD doesn't have a "Stretch" function.

I seem to recall something similar that I posted several years ago. In that case I saved a drawing while a user defined "Working Plane" was active. After that the coordinates of the entire drawing were rotated - but the drawing wasn't skewed or stretched and it was a simple matter to rotate everything back to where it should be. This is something new.

Like I said, it is peculiar, but this is the first time I have seen it in 25 years of using DesignCAD so I don't think it is something to worry about. But if someone else sees the same problem then we need to find out what is causing it.

I have been working with my original drawing that I saved before this problem occurred, and I have had no more problems.

Phil
DesignCAD user since 1987

magic

Hi Phil,
Quote from: Dr PR on August 06, 2014, 09:22:47 PMexcept DesignCAD doesn't have a "Stretch" function.
DesignCAD does have a "Stretch" function, it's called Enable/Disable Resizing Handles, but it doesn't do anything like your example.
It's a kind of magic!




samdavo

Quote from: Dr PR on August 06, 2014, 09:22:47 PM
Like I said, it is peculiar, but this is the first time I have seen it in 25 years of using DesignCAD so I don't think it is something to worry about.
Phil
Phil,
Hopefully it will 25 years before you see it again.
Cheers

Lar

Dr Pr,

Way back, during the Upperspace forum days I think, I experienced cases where, after setting the viewing angle and projection then saving an image, the geometry of the drawing would get distorted so as to match the view projection. It was as if dcad had to change the physical geometry rather than just change the view.

You would not realize this until a regen happened and it was undoable so if you happened to save the file right after saving the image (which I would normally do once I'm satisfied with the image) you were screwed. Luckily I usually had backed up files but it happened to me enough times for me to get in the habit of saving the drawing before saving the image... and not immediately saving-as to my backup file after I saved.

I remember this being reported and eventually being fixed but it did happen once or twice to me since then. I don't save-image in dcad as much as I did back then so if it still happens I can't say.

Around that time the bug where only the top left corner of the screen got saved also use to happen (recently mentioned here: reply #4, near the bottom... http://forum.designcad.com/index.php?topic=5558.msg38160#msg38160)

That bug got fixed and has now returned, so maybe this one also has.

Lar

Adrian 2.0

Hi Phil,
I did report a problem a while back (in V22 I think) which I just dug out.
<http://forum.designcad.com/index.php?topic=5068.msg33035#msg33035>
It's not exactly your problem but it involved the drawing distorting when I printed rendered images.
Somehow DCad seemed to take the current perspective view and convert it into a new parallel view drawing. If your view distance was great & the perspective view was 'similar' to the parallel  view that might cause that degree of distortion.
You were switching between parallel & perspective views?
Have you been able to recreate the problem?

Adrian

Dr PR

adrian,

Yes, I did switch between "Perspective" and "Parallel" view modes.

I normally work in Perspective view with a view distance 5X or greater than the drawing dimensions. But I wanted to generate an image (File/Image/Save Image File) that had no perspective distortion so I switches to Parallel view. I switched back to Perspective view after saving the imag and it was after this that I noticed the skewed drawing.

What you said is the same that Lar was talking about, so it looks like that bug is back with us again.

Phil
DesignCAD user since 1987