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.

switch 2D and 3D views

Started by js, September 28, 2014, 09:22:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

js

A long question that i'm sure has a short answer.

I' trying to draw a 2x6 stud. in a 3D window  (0 deg horz, -90 vert 0 rotation) x is + right and z is +up the top of the stud is z=+9.2.
If I set the working plane of 2D to XZ and switch to 2D the top of the stud is -9.2. x is still +right and z is +up
I'm pretty sure i don't get the projections... what am i missing?
thanks all for continuing to contribute to this forum
js

samdavo

#1
js,
The default 3D axes are x to right, y vertically up, and z axis is into the page (if you have the default left hand system) -  (or out of the page if you have right-hand system).

Below you will find a macro called xyzhere.d3m (one of prl's), it will clarify the positive directions of each axis if you are in 3D.
Put the macro into your macro directory (as identified by Q:\file locations).
You can run it by hitting spacebar + type xyzhere + enter.
Then select 2 points which determine the size of the axes that appear.
Cheers
sam 

Dr PR

js,

Your view orientation (0, -90, 0) would have the +Y direction into the screen, +X to the right, and +Z down. This is essentially a "bottom" view (viewing in the opposite direction of the default "top" view). You can verify this by setting a point anywhere (left click) and then using the cursor keys to move the cursor up/down and left/right. Watch the changes in the DX, DY and DZ values in the Coordinate Bar as the cursor moves.

If you are drawing your stud vertical the top of it will be in the -Z direction.

In 2D with the XZ working plane +X is to the right and +Z is up. So when you switch between you 3D view and the 2D view the vertical orientation will be reversed.

****

It is extremely easy to get turned around and upside down when working in 3D wireframe view. Many years ago while working on a drawing after several hours I accidentally rotated the view and left the +Z axis rotated so +Z pointed out of the screen. I continued drawing for quite a while thinking that +Z was into the screen. As a consequence the drawing was ruined beyond repair and I had to start over - losing a days work.

Every now and then I use a shaded view to double check which way is up and see just how the drawing is oriented.

I strongly recommend that if you are drawing in 3D you never use the 2D view. Work in 3D in the main window and use the other three view windows to keep your orientation. Never change the view in these three windows!

Many people on this Forum use the XZ plane as horizontal - this is common with mechanical drawings where Y is up. Others use the XY plane as horizontal - this is common in architectural drawings where a floor plan is first developed in 2D on an XY plane and then transferred to 3D. In this case +Z is up. The coordinates you give will result in an upside down house using this convention.

****

If you want to work with the Y axis in/out of the screen and +Z up you can set these rotations and use "Window/DesignCAD Tile Settings/Set As DesignCAD Tile" to make your view orientation the default view when the program starts up.

Phil
DesignCAD user since 1987

samdavo

#3
Phil
Good points.

ps  I meant "js" , 
- Even if XZ is the working plane in 2D, that will not be relevant when you change to 3D.
Also, even if you change the standard DCAD tiles (3D) to have z oriented up, it will all become unravelled if you use standard "front" or "isometric" etc views in the View Toolbox (unless you rotate by 90 degrees etc). 

I suspect there are contorted options like setting temporary working planes in 3D, but I also suspect it is easiest to accept the default(s). (2 cents).

PS I believe/hope I am quoting minstrel correctly - if you want to export from DCAD to Sketchup (where z is up) -  then the easiest way is to  use the default "Y is up", and then select all, and rotate 90 degrees about the X axis before exporting.

I also believe/hope I am quoting prl correctly, but he even uses Y axis as blue in DCAD,  and Z axis is blue in Sketchup, just to identify the direction of the sky :)
cheers 

Dr PR

The names of the "top," "front" and "side" views are appropriate only if "front" means looking down the X axis. I have never worked that way, and it seems weird to me.

Since I am drawing ships and other things that are longer than wide I tend to think of the X axis as the longitudinal or long axis. I think this carries over from 2D drafting where the profile views were always drawn with the lengthwise dimension of the ship from left to right (+X direction) and the vertical from bottom to top (+Y direction). Therefore, in 3D the transverse direction is on the Z axis. So the "front" view is actually the side view, and the "side" view is actually the front view.

In architecture, however, the vertical dimension often is drawn on the Z axis. So the "top" view is actually the side or front view, depending upon which orientation the draftsman turns the house. I don't know if there is an industry-wide standard for these views.

Personally, I just ignore the view names. It is possible to change them, but that doesn't change anything about how I create the drawings. And it is necessary to reestablish your view names every time you install a new version. Since I am a beta tester that can be more than once a week, and it certainly isn't worth the trouble.

****

If you stop to think about it you will realize that the axis orientations don't matter at all for drawing. Neither does the position of the origin. I just open a new file and start drawing. I don't even bother setting the drawing units because that is irrelevant. Everything else is relative to the first thing drawn.

The only time any of this is important is when you want to export the drawing into some framework where position and orientation are predefined. One such situation is export and translation to STL. STL files MUST have all positive X, Y and Z values - negative values are not allowed. So I position the origin appropriately after the drawing is finished to meet the requirements for STL files.

As Sam said, for export into Sketchup you need to rotate the entore crawing contents to match that definition of "up." For export to AutoCRUD you don't need any rotations of repositioning of origins. For some of my PC board layout programs I have to do other massaging of coordinate systems and origin positions.

So until I have to export the drawing I just ignore scale, orientation, units and all of that other BS and just create a drawing that is internally consistent.

Phil
DesignCAD user since 1987

js

Wow. Thanks for the advice and study. Sam and Phil probably put more effort into this quandary than I did.

I have the situation  DR PR describes: a plan view in the xy plane +x,east, right and +y,north, up and a right-hand system so +z, the building elevation, is out of the paper.

As DR PR suggests, I will have to check my south elevation (0,-90,0)
"...Your view orientation (0, -90, 0) would have the +Y direction into the screen, +X to the right, and +Z down."
I think moving the cursor up on the view increases Z.

The advice to avoid switching between 2d and 3d views seems to be sound - based on the fact that I end up with an upside-down stud.

I will have to reread the posts and experiment with printing 3d views in paperspace (I had assumed -and read in some posts- that printing 3d views in paperspace results in bad text and dimensions, so I tried to switch to a 2d view for printing.)

Until I can experiment, I think I will have to draw elevations on the plan xy view - just seems wrong....

Again, thanks for the thoughtful replies
js

prl

#6
Quote from: Dr PR on September 29, 2014, 02:49:40 PM
The names of the "top," "front" and "side" views are appropriate only if "front" means looking down the X axis. I have never worked that way, and it seems weird to me.

I think Phil switched his thinking and writing.  The default in DesignCAD is Front view is looking down the z axis (left hand, z into the screen), Top is looking down the y axis, and side is a right view looking down the X axis.

In Phil's models (long items like a ship with the bow to the right), his front view is looking down the X axis, what DesignCAD calls a (right) side view.

It has been mentioned before, the view names for the windows don't necessarily read true.  They represent initial views but the user often changes viewing angles within the window and hence the name of the window is meaningless.  Always felt that DesignCAD should put a asterisks or something next to the name to indicate the view has been altered from the original, kind of like it does with the file name when you add  more drawing  entities.

Dr PR

prl,

You are right - mea culpa! The "front" view is looking down the Z axis. That's the side view in my drawings. And the "side" view looks down the X axis, which is the front view in my drawings.

All through school we used to create XY graphs where the horizontal is the X axis and the vertical is the Y axis. In math texts that show "3D" graphs the Z axis extends into the page. This is what I grew up with and seems quite rational to me. So when I started using the original 2D Prodesign/DesignCAD it was the way the program worked and I was happy with that. When 3D was added to DesignCAD it was the typical mathematical implementation.

I guess the notion that the "front" view is looking down the Z axis comes from the orthographic or "three view" drawings of small machined objects. For objects that are roughly the same dimensions along all axes it really doesn't matter which is the "front" so the XY plane view is as good as any. I guess the first view drawing that you create becomes the "front" of the object.

But many long slender objects have "front" and "rear" ends - automobiles, ships, airplanes, etc. So the view from the "front" would be looking down the long dimension of the object. The most common drawings of such objects are side view or "profile" drawings where the long dimension is the horizontal axis. This is often drawn on the XY plane because in the original 2D drawings there was no Z dimension. Additional view drawings were created based upon the original profile view and top or "plan" views (looking down the Y axis).

Architectural drawings originally were floor plans drawn on the XY plane. Before 3D CAD all "3D" views were artists renditions based upon the 2D floor plan. When 3D CAD came along the floor plan remained on the XY plane and the Z axis became vertical.

So there really is no "standard" view orientation - it all depends upon the type of drawing and the viewpoint of the person making the drawing. For this reason we should think in terms relative to the drawing and not relative to some preconceived "standard." If everything in the 3D model is internally consistent relative to all other parts of the model, the entire drawing can be reoriented to any coordinate system and scaled to any dimensions.

****

Proof of this idea comes when we use "View\Working Plane\Set Working Plane" function to change the orientation of the axes in a drawing. We can make any direction "up" and change the polarity (+/-) of any/all axes, and continue working normally. Then if we change the axes again, to a new orientation or back to the original orientation, the model doesn't change. So the notion of which way is "up" is irrelevant.

Our concept of up/down, front/back and left/right is a consequence of our ape ancestors having evolved on an apparently flat land surface in a varying gravitational field. We think of things being oriented relative to the Earth. Creatures that evolved in a weightless interstellar space environment wouldn't understand these notions. For them orientations would be relative to the individual or to the object. That is more like how things work in our virtual 3D universe.

Phil
DesignCAD user since 1987

prl

Quote from: Dr PR on September 30, 2014, 10:39:44 AM
Our concept of up/down, front/back and left/right

For Phil's heavy cruiser, a DesignCAD hard to starboard rotation would bring her to a DesignCAD front view.  But if Phil were modeling the Titanic, and issued the same order, the DesignCAD front view would be her stern view.

You guys know this story?  Kind of goes with my "rudder" control toggle prank (but you also need to reset your computer clock.)

samdavo

#9
Not keepin up with you there prl.
i.e. I realise that one difference between the Cruiser and the Titanic is that the latter went ass-up yes?   

I suppose if a ship was going forward and went hard starboard, you would end up with a bow in your face.
And if it was going backwards and went hard starboard, I guess you would end up with a stern in your face (?)

Back to the thread topic :-
Quote from: Dr PR on September 29, 2014, 09:10:41 AM
Many people on this Forum use the XZ plane as horizontal - this is common with mechanical drawings where Y is up. Others use the XY plane as horizontal - this is common in architectural drawings where a floor plan is first developed in 2D on an XY plane and then transferred to 3D. In this case +Z is up. The coordinates you give will result in an upside down house using this convention.

****
If you want to work with the Y axis in/out of the screen and +Z up you can set these rotations and use "Window/DesignCAD Tile Settings/Set As DesignCAD Tile" to make your view orientation the default view when the program starts up.
Phil

I'd be interested to know
a) how many here use XY as the horizontal plane?   (Personally I'm one that has learnt to use the default XZ as horizontal, using Phil's 3D graph logic); and
b) how do you do that?

Even if you add new views called eg "top XY" - and "front XZ" and "right side YZ",
the View Toolbox will remain confused;

i.e. "Move Viewer Left (or Right)" is the same as asking for a rotation about the Y axis.
If Y has been oriented in your view as horizontal, then "Move Viewer Left" will move the Viewer Up or Down. (!)

The only way to make the View Toolbox work (as I see it) is if you set Temporary Work Planes , i.e. set XZ plane  as temp-XY plane. 

But STILL, when you use eg point relative to draw a line from eg (0,0,0) to (0,0,+9.2), the line goes into the page (with Left Hand System), or comes out of the page (with RHS).   DCAD still calls +Z horizontal ! 

In summary, (as I see it), EITHER the View Toolbox works logically (including move viewer up/down/left/right),  or
+Z (for new lines etc) can be oriented to be up. 

Or has someone resolved this dilemna?
Or should that be dilemma?

Dr PR

SAm,

The Brits lost several ships because of left/right rudder command confusion.

Long ago, when ships were steered by tillers (levers attached to the rudder) the command "right rudder" meant move the end of the tiller to the left. That caused the rudder to swing to the right, turning the ship to the right.

But with the advent of the steering wheel the mechanism could be rigged so that turning the wheel one way could move the rudder the same or opposite direction.

The Brits rigged their wheels so that right rudder meant turning the top of the wheel to the left, just as was done with the tiller. This was to reduce confusion for the helmsmen.

However, most other nations eventually adopted the standard of turning the wheel right to turn the rudder right by the early 1900s. Most British merchant shipping lines also adopted this standard so they could hire helmsmen from any nation. The British Navy didn't change until the 1930s.

In one case a British warship rammed another warship because of this confusion. I think the ship was being piloted by a harbor pilot who used the new rules but the Brit Navy helmsman followed the old rules.

There has been speculation that the Titanic helmsman might have followed one rule and the deck officer the opposite rule, causing the ship to turn into the iceberg. This is pure speculation, with no evidence to support it.

Phil
DesignCAD user since 1987

samdavo

Thanks Phil - first I'd heard of that dilem...  two-sided problem. 
cheers.

PS And I'm guessing the same rules if you are going in reverse.   

SciGraphics

Since everything (well, almost everything) I draw is in 2D, on the X - Y plane, X is firmly stuck on the horizontal axis and Y glued to the vertical axis. One of those is the "mantissa" but I forget which.
Jim A., Tucson, AZ

samdavo

#13
Hi Jim
According to wikipedia
"(In 2D) An ordered pair (of coordinates) consists of two terms—the abscissa (horizontal, usually x) and the ordinate (vertical, usually y)—which define the location of a point in two-dimensional rectangular space."

Presumably, in 3D, you have an abscissa amount (X axis)
an up-ordinate amount (Y axis), and
an in-ordinate amount (Z axis).  :)
cheers

PS As for mantissa, it seems to have a couple of alternative meanings, all to do with significands, and/or the fractional parts of logarithms (or simple numbers?), and when the experts differ, I bow out.

http://en.wikipedia.org/wiki/Significand

prl

#14
Quote from: samdavo on September 30, 2014, 04:22:33 PM
Thanks Phil - first I'd heard of that

Phil nailed it.  In modern days hard-to-starboard means bring the bow around to starboard (turn right).  Back in the rudder/tiller days, the same order would have meant push the tiller to starboard (left rudder) thereby bringing the stern to starboard (since ships are steered from the stern).  This of course would swing the bow to port (turn left).  And to keep it relevant to DesignCAD, DesignCAD's front view of the Titanic would be a rear view. Of course this assumes the ship's position is in the +X direction to start with in DesignCAD. So getting turned around isn't unusual,  just look out for those new solid surface solids (bit of escaped beta humor regarding IMSI's TurboDesign terminology).