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.

More on Sketchup exports

Started by adriank, August 07, 2015, 07:51:41 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Adrian 2.0

I've been struggling to make sense of where the origin is located when a DCad model is exported. (Sketchup Make 15.1.105 & DCad 25/64 bit))
My experiments have proven that:
The original DCad origin is always the Sketchup origin in the import.
Changing the view centre has no effect.
Changing the origin to a new origin also has NO EFFECT! So, when you use DCad's Point/Origin command it does not change the actual origin, only sets a new point-relative reference.

I've also been trying to work out how to change the sun & shadow effect in Sketchp.
Resetting the origin is easy (tools/axes) but, that has NO EFFECT on how the shadows display. You need to select and move the whole model to Sketchup's default axes location to solve problems. (frequently the ground plane is half way up my building & the shadows are cast on the ground plane - either that or the whole thing is floating in the air)

The bottom line is - make sure your DCad model is in the right place and orientation before you export.
Select all, set a handle where you want the origin to be in Sketchup and then gravity snap to the DCad origin (without setting a new origin)

The Sun's location can also not be changed in Sketchup (the green axis points north, but changing that does not move the sun)
The orientation of north in DCad is the Z axis, (North going into the screen) assuming you are in the Northern hemisphere. (Coming out of the screen if you are hanging upside down like a bat!)

I believe you are supposed to be able to import a Google Earth reference into Sketchup to get the exact sun geometry & I haven't tried that yet, but can't see how that would solve which way the building faces - but it may solve the previous north-reversal comment for antipodeans!

samdavo

#1
Thanks Adrian
And how pray-tell do you know where the origin was before you changed it a couple of times lol.
Maybe
a) start your drawing by setting and "xyzhere" set of axes at the ORIGINAL Origin (but optional); 
b) failing that, I suppose you import into Sketchup, and then move the object there (?)   (and rotate things as necessary etc).

PS Attached is a picture of those keys - I am slowly getting there :)

(edit)  Adrian solves this next post - opening a new blank drawing, and cutting and pasting the entire drawing in question to that new blank drwg - with handle placed at the origin (2 cents)


Adrian 2.0

I'm finding that moving whole models around in Sketchup is clumsy (don't forget to turn on hidden layers) so if your original DCad origin is unknown, try to copy the file to the clipboard & paste it into a new drawing - then you can locate it at the origin at the same time.

So, what do your keys open? I would guess ....... 'Virtually' everything?

samdavo

Lol - actually I was doodling with a "key to bridge bearings" impression :)
Herewith
a) in DCAD, and
b) exported to Sketchup.
(please note that I am complete amateur with SKU) :)

samdavo

#4
Just experimenting with presentation option within Sketchup (i.e. after exporting from DCAD), herewith
a) Xray, shadows, plus edges "with extension";
b) Shaded (no edges), shadows, with various paint bucket textures (and axes turned off).

Still very amateur and easily improved.
Certainly seems to give a lot of new options for presentation purposes, whilst at the same time having the power of DCAD to do the geometry. (promising  :)  )

PS Personally I am really pleased that V25 adds this option to export to SKU.   I believe I am right - that I will still be able to do this with the dead simple (free) version of Sketchup  (Make)  - even when my trial period runs out.

samdavo

#5
In the unlikely event that anyone is interested in the detail,  I add the dcd file and also the sku file. (zipped).   (This technique is the same as has been discussed before - i.e. is similar to the old way of exporting to SKU by first rotating 90 deg in DCAD - but slightly more direct, now that you don;t have to use the intermediary of a dwg file).

Note that the bridge is rotated 90 degrees about the x axis BEFORE the export (and exported WITHOUT the XY and XZ changeover); 

and then the entire view including axes is rotated 90 degrees in Sketchup (just by holding down the wheel of the mouse, and moving it around) - so that the blue axis points up to the sky.
This seems to be the easiest way to get shadows on the floor (2 cents).
 
(edit) sorry that is wrong, V25 can indeed export to Sketchup without the first 90 degree rotation - see next post

samdavo

#6
OK - I owe DCAD an apology.   It is NOT necessary to rotate the bridge by 90 degrees in DCAD before exporting.  You can instead use the new V25 feature of swapping Y and Z axes.

This has the massive advantage of not requiring the "source dcd drawing" to be rotated, which means it remains unrotated / "unconfused", and easily amended and re-exported if large changes are required.

It still requires the skp file to be rotated 90 degrees (as a view, so that the blue axis points up). 

And you still get shadows on the floor (the plane formed by the green and red axes in Sketchup) - which is the final test that it has worked out ok.      Again apologies.


PS - Back to the point made elsewhere, it is not clear (yet) how you change the shadows in SKU.   The png's attached show
a) DCAD with (relatively long) shadows due to a light source (fully adjustable) at H=-10, V = 30 deg  ('move with eye' UNTICKED).
b) SKU (wireframe with "extension" to lines) and shadows st some default value (?  - not sure what this is - appears to be roughly what DCAD would give you with H= -20, V = 60 deg, again move with eye unticked).

PS i.e. to recap / reinforce that point - the shadows in SKU appear to have no relationship to the shadows in the DCD file from which it was exported - and it is not clear (to me at least) how to change the shadow angles in SKU (2 cents)

Note also that I have paid attention to adrian's comment that the "original origin" determines where the object ends up in SKU.  And one way to do this is to paste the object into a new dcd file with the desired handle at the origin.   Thanks m8.

samdavo

PS More research required. Feel free to present that object - or any others - in ways that further develop this topic of the new friendly interface between DCD and SKU.

samdavo

#8
Here's a diamond ring in a flip-top box, 2 cents

(edit - some amendments since first posted - sorry I'm still learning / improving as I go along)
Herewith a SKU version;

and also the DCAD version it was exported from/

Summary, DCAD is also potentially acceptable (but time consuming maybe) :)

samdavo

#9
ok - finally worked out how to adjust shadows in SKU.
http://help.sketchup.com/en/article/114937
Herewith a set of saddles for a two (three?) hump camel.

PS these are hyperbolic paraboloids - drawn with DCAD (which remains the easiest method for the drawing phase)

PS adrian, you can even type in your google-earth location, and (think I'm right) it will do the shadows for you.  But (on the other hand) even sliding those parameters manually, you get to see live update of shadows very easily (2 cents)

If you look at the png, you'll notice the sliders are based on month and time of day.

PS Alternatively there's a shadow calculator, reply #1 here (which can be used with DCAD) :-
http://forum.designcad.com/index.php?topic=6216.msg44365#msg44365
and typical result attached as png (shadows for southern latitudes).

samdavo

#10
Herewith the plan on those two saddles - or are they two martians?
PS "hyperbolic paraboloids" - spellcheck prefers "hyperbole paranoid".

samdavo

#11
Within SKU there is the ability to set your global location, (in particular, your latitude I imagine), and the shadows are calculated accordingly.  I couldn't set Sydney - because it kept telling me I had to be connected to the internet ??  - more study required (although maybe some here could advise (?) )

But moving on,  I found that SKP file of the Sydney Opera House (that prl once posted).  (Note that the large set of sails points almost due north - and the views attached are looking due north accordingly).

    And I find it has shadows which appear to be pretty accurate,  i.e. I enclose
a) the "satellite view" from Google Maps,  (note the shadow from the Playhouse Bar sails); and also
b) what happens to the shadows as the sun moves across the sky on 22Dec. (If you look really carefully, you will see the slider in the time scale moving to the right).

Based on these, I assume that the Google Maps photo was taken at about 12.30 hrs on about that day (certainly in mid summer) - although to be honest there appears to be an hour or so's error in the rising and setting of the sun. (2 cents).  PS In mid summer, sunrise is 4.45am and sunset 7.15pm (before +1:00 hr adjustment for daylight saving).

But (summary),  that sliding action is very convenient for illustrating movement of shadows.     

samdavo

#12
Quote from: samdavo on August 15, 2015, 05:27:24 PM
Within SKU there is the ability to set your global location, (in particular, your latitude I imagine), and the shadows are calculated accordingly.  I couldn't set Sydney - because it kept telling me I had to be connected to the internet ??  - more study required (although maybe some here could advise (?) )
Turns out that I had to use Internet Explorer for Sketchup to know that I was "connected to the internet".   And after that, you just change the time of day, plus the month, to change shadows - but fewer options than DCAD.    Shadows can be triggered (on / off) in View,  and adjusted under Windows \Shadows.   

The other thing I want to say is that I really like the ability to export to Sketchup Make (the free one), because rendering is so damned easy there, and a small screensnap from Sketchup can be added back into the DCAD 2D drawing.

I enclose an example of a couple of machined blocks of steel, viewed in DCAD (where I drew them in 3D), (and using qs2.d3m macro);  ...

and also in SketchUp (after export) , using the Xray option (which instantly makes all faces transparent), and shadows (which only seem to show on the ground (?) but  I still like the SketchUp version :) )  - 2 cents

PS  - and a single click in Sketchup gives you a Monochrome version. (third jpeg).

samdavo

Already mentioned elsewhere, but SU also quickly shows you any reversed faces (eg before 3D printing) - and also allows you to reverse them.

Incidentally, I find that all these faces of these blocks are correctly oriented (by the light grey colour in Monochrome).    But just to show you how to reverse a face in SU, I add two jpegs. 
a) right-click on a face , and
b) choose reverse face from the menu that appears (and it will toggle between dark grey - i.e. wrong - and light grey - i.e. correct)
(2 cents)

samdavo

And the crunch point here is that only V25 can export to Sketchup.  (Thank you IMSI !!)