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.

Model is flipped after switching from 2D to 3D

Started by Dempsey, February 11, 2014, 07:34:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dempsey

Simple drawing for a template of a piece of wood for a Dutch Windmill in millimeters. I drew it in the XZ plane (top view) which you will see when you open the drawing.

Switch to 3D view and notice that my XZ drawing is shown in the side view (ZY view). Switching back to 2D view does not get me back my original entered XZ drawing.

I have seen this behaviour occasionally in the past, but this it is reproducible!!!

Any insights? 
Dempsey

Dempsey

#1
Sorry folks. It was reproducible as long as I did not stop and started DesignCAD.

Definitely something got destroyed internally that was corrected with a program restart.

Here is also the drawing that I saved after the flip happens.
Dempsey

Dempsey

There is definitely a problem in V23.0.

Do these steps:

  • Open new drawing in 3D mode.
  • Go to Options --> Grid -->  check Display CS --> Apply --> OK
  • Go to Options --> General --> check XY of the Working Plane of 2D mode --> Apply --> OK
  • Main window shows the coordinates YX front plane and Z towards the back

Now check YZ or ZX as the 2d Working Plane and the main window coordinate system shows the YZ or the ZX as the front plane coordinates. BUG The 3D main window should always show the XY as the front plane.

This is also why I still see occasionally unexpected flipping of the drawing too.
Dempsey

Dr PR

Dempsey,

What do you mean by "front plane?" Do you mean the small window labeled "Front" or are you talking about the large window labeled "Main?"

Personally, I have always thought the "Front" and "Side" windows are mislabeled. To me the YZ plane is always "front" because I draw with the X axis along the longitudinal of things like ships, airplanes and cars. I draw the side view in the XY plane.

But that is just my personal way of doing things. Someone else may draw the long axis along the Y axis and the top view in the XY plane. So the terms "front," "side" and "top" are entirely arbitrary.

Phil
DesignCAD user since 1987

JJG

Dempsey and Phil : it's not new !
Whatever you call "front" or "side", or "top", it is nevertheless right that CS is not updated when changing of working plan, and I already indicated this fact for version 19 ...

Please see topics below :

http://forum.designcad.com/index.php?topic=3451.msg18786#msg18786

http://forum.designcad.com/index.php?action=search2

That's why I prefer to use a specific CS of mine, i. e. a solid showing XYZ, inside the drawing.

Dempsey (and other) : note too that the display CS is useless when working in "Perpective wiew" ; only usefull for "2D" and "Isometric" or "Parallel", or "Front", "Side", and "Top" wiews.

samdavo

#5
Quote from: JJG on February 15, 2014, 01:44:07 AM
That's why I prefer to use a specific CS of mine, i. e. a solid showing XYZ, inside the drawing.
You and others JJG.
Sounds like a bludy good idea.
I've never much liked the CS axes either - difficult to see on many occasions / colour backgrounds etc.
Here's an attempt at a better version. 

PS XYZ = Red-Green-Blue   (compare default red-green-black  oops black-red-green)
OX is larger than OY or OZ.
and on the front (XY) plane  - as used with 2D - I have converted the text to coloured planes.  (with vc, and mp).
cheers

prl

Quote from: samdavo on March 01, 2014, 02:22:41 AM
I've never much liked the CS axes either - difficult to see on many occasions / colour backgrounds etc.

Sam, 

The CS is new and not useful to me either.   Because I'm often deep in 3d space turned around every which way, long ago I created an on-demand xyz routine.  I make (and delete) these little xyz reference guides as I am working on 3d things.  Still use it today when I'm wondering "where am I?".

xyzhere.d3m    http://forum.designcad.com/index.php?topic=1266.msg6360#msg6360


samdavo

#7
Very nice prl.
You have some great macros in that locker of yours :)

One of the features I like about your macro is that it uses the colours assigned to the "3D Cursor" ( in Q\Colours) in that drawing - at that point of time.

(and as an aside, and as I believe we have already discussed, you can get a cheap version of your axes by simply typing "U" for units - where you get the colours if not the directions of the axes.)

Just for fun I have done three versions of these colours, and run your macro after each change.

1. one using the default black-red-green
2. one using my own preference red-yellow-blue
3. one using the red-green-blue that I used above.

I enclose a jpeg with
a) those three different "xyzhere" axes on a white background, and
b) ditto on black background.

PS it is of course easy to have one view with black background, and one with white - but, lol, it's only a temporary thing because the next screen regen will make them both white ( or both black) - another 2 cents.

'Program: xyzhere.d3m

sf = .25 'scale factor for arrow and text size. Fiddle with this to your liking

'save various settings
cl = sys(3) 'current layer
ts = sys(12) ' current text size
cred = sys(300) 'current red value
cgrn = sys(301) 'current green value
cbl = sys(302) 'current blue
cctf = sys(254) 'current color text flag
ccfl = sys(255) 'current color layer flag
pspm = sys(1116) 'preset point mode'

sys(1116)=0 'preset point mode off for sphere rubberband
sys(41) = 18 'sphere rubberband
sys(36)=0

SetPoint "Set 1st point xyz symbol center,  2nd point for xyz symbol size", 2
pointval x,y,z, 1 'store first point only

sys(36)=2 'hide the dialogs
>sphere
{
  <Latitude 5
  <Longitude 5
  <Orientation 0
  <UsePresetPoints
}

entity sys(9) 'get coordinates of sphere just drawn
pointval cx,cy,cz, 1
pointval ex2,ey2,ez2, 3
sys(1)=0

dx = ex2 - cx
dy = ey2 - cy
dz = ez2 - cz
d = dx * dx + dy * dy + dz * dz

if d = 0 then goto restore
d = sqrt(d)
sys(12) = sf*d

as = sys(12)

>eraselast
{
}

sys(3)=999 'switch to empty/junk layer, say 999'
sys(254) = 1 'turn on
sys(255) = 1 'turn on

sp1 = sys(9)+1
>arrow
{
  <Color [sys(334), sys(335), sys(336)]
  <Type 4
  <Size [as]
  <pointxyz [x,y,z]
  <pointxyz [x+d,y,z]
  <Doublesided 0
}

>Text2d
{
  <Color [sys(334), sys(335), sys(336)]
  <pointxyz [x+d,y,z]
  <Style 0
  <Justification 0
  <Angle 0
  <Text "x"
}

>arrow
{
  <Color [sys(337), sys(338), sys(339)]
  <Type 4
  <Size [as]
  <pointxyz [x,y,z]
  <pointxyz [x,y+d,z]
  <Doublesided 0
}

>Text2d
{
  <Color [sys(337), sys(338), sys(339)]
  <pointxyz [x,y+d,z]
  <Style 0
  <Justification 0
  <Angle 0
  <Text "y"
}

>arrow
{
  <Color [sys(340), sys(341), sys(342)]
  <Type 4
  <Size [as]
  <pointxyz [x,y,z]
  <pointxyz [x,y,z+d]
  <Doublesided 0
}

>Text2d
{
  <Color [sys(340), sys(341), sys(342)]
  <pointxyz [x,y,z+d]
  <Style 0
  <Justification 0
  <Angle 0
  <Text "z"
}

for j = sp1 to sys(9) 
  getattr j, type, select
  putattr j, type, 1
next j
>groupdefine
{
}

gosub restore



regen
end

'subroutines follow

restore: 'restore settings
sys(36)=0
sys(80) = 0
sys(3)= cl
sys(12) = ts
sys(41)=0
sys(1116)=pspm
sys(300)=cred
sys(301)=cgrn
sys(302)=cbl
sys(254)=cctf
sys(255)=cclf
return

samdavo

Further to the previous jpeg
Herewith the same set of axes with black and white reversed.

But what I want to point out is that there is a small set of CS axes visible in each of the white background views - but it disappears when you make the background black.  i.e. it has limitations. 

prl

Quote from: samdavo on March 01, 2014, 02:09:15 PM
3. one using the red-green-blue that I used above.

On my machine, I have the colors hard coded for red-green-blue.  Did this to match up with the SketchUP.

samdavo

question prl...
is vertical Y or Z in Sketchup?

prl

Quote from: samdavo on March 01, 2014, 04:14:16 PM
question prl...
is vertical Y or Z in Sketchup?

Z is vertical , same as AutoCAD.  The ground plane is their xy plane.  DesignCAD was apparently written back in the days of mathematical text books.

So in DesignCAD  Red, Blue, Green is physically the same as Red, Green, Blue in the other systems.  I use a rotation routine to export DesignCAD models so they are positioned in the same physical 3d location regardless.

samdavo

#12
thanks prl - I recall a youtube tutorial (by Minstrel) that says something similar - i.e. that you need a 90 degree rotation either when you export from DCAD, or when you import into SU - , and I wondered if it affected your choice of axis colours - no biggie on that score, but the entire axis thing is something to be aware of if I ever bite the Sketchup Bullet. cheers sam

PS SU is a Right Hand axis system (thumb pointing X) , DCAD is by default a Left Hand System.   

Long ago I considered ticking the General Options / LH RH System box  - and forcing myself to get used to the implications - not sure if any problems would arise as a result -  but in any case, I also see a logic in DCAD using x and y ( as horiz and vert , normal 2D option) ...

and then adding the third dimension "into the page".   Hence I (now) happily accept the default LHS - and if I want to use  right hand effects, I simply use negative "z" numbers  :)  cheers 

prl

#13
Quote from: samdavo on March 01, 2014, 11:11:54 PM
but the entire axis thing is something to be aware of if I ever bite the Sketchup

Forgot to mention TurboCAD.  It follows the AutoCAD, SU axis convention too.

A trick so that both systems are mentally the same is to think in colored axis terminology.  And this implies you pick colors that are the same across programs and conventions.  The SU color arrangement seems easy to remember.

green - grass (ground)

blue - sky  (above, vertical)

red - right (same, plus X)

Example, a point in DesignCAD 3d space using my setup, say (5.5, 10.375, 20.8 )  is

5.5r  10.375b 20.8g  in both systems.   The strict order of points isn't necessary in  rgb or rbg axis notation. The below are the same.

5.5r  20.8g 10.375b

20.8g 10.375b 5.5r



edit:  in the graphics below, specifically the two DesignCAD program images, the big magenta arrow is pointing to the DC origin. 

prl

And as a final note, I always draw and position my 3d models in the 1st octant (+,+,+) regardless of the xyz system.