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.

3D Blocks - "Play it [again], Sam"

Started by minstrel, January 03, 2013, 07:52:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

#15
Quote from: minstrel on January 05, 2013, 11:59:02 AM
...no prl, you got to get 'simpler' than that!

?? Draw a line from absolute 0,0,0, to (100,0,100).  Select your piano at your current handles location and move it to the end of the line (the end at 100,0,100).  Rebuild (re-define) your piano blocks at this new location.   

Hopefully you're not just having fun with me about this.

prl

Quote from: Dean on January 05, 2013, 12:01:44 PM
Yea! It will make a difference. I always draw with "xz".and never change it in a drawing once it is set. When I opened Minstrel's drawing this setting changed to "xy".I have

Dean, very interesting what you are doing.  Exporting a 3d model from a 2d mode.  I'll add this to my list of things to explore and try to understand why this works.

minstrel

Quote from: prl on January 05, 2013, 12:09:42 PM
Hopefully you're not just having fun with me about this.

::)

Quote from: Dean on January 05, 2013, 08:49:21 AM
What I'm talking about are all the finer details. Did you explain all of your current Dcad settings prior to creating the drawing.

Give me a little credit, Dean.  I'm offering these 'ScreenCasts' to everyone, everywhere.   Look at it the other way.  If important drawing settings were necessary to proceed with the tutorials, wouldn't I have mentioned it.

No, all 'Default' DesignCAD settings are used and will always be used unless otherwise noted.  Exceptions:my custom tools boxes....and you can make your own! >:(

MarkX

Quote from: Dr PR on January 05, 2013, 11:26:19 AM
For example, Mark says that nested groups and blocks are getting scrambled and that things are being added to solids. But he doesn't say in which program! He just says "somewhere along the way."
In DesignCad. SU doesn't use the term solids, so I guess it seemed obvious to me.

There's a great deal of interest in how to export DC drawings to a variety of platforms. SU is one of the most common CAD-like programs out there, so it makes sense to take an interest in how to export/import to that platform. Its a shame that DC doesn't have the capability built-in like TurboCad does.

Mark



Dean

Quote from: prl on January 05, 2013, 12:13:03 PM
Quote from: Dean on January 05, 2013, 12:01:44 PM
Yea! It will make a difference. I always draw with "xz".and never change it in a drawing once it is set. When I opened Minstrel's drawing this setting changed to "xy".I have

Dean, very interesting what you are doing.  Exporting a 3d model from a 2d mode.  I'll add this to my list of things to explore and try to understand why this works.

PRL,
Yup!
When I opened Minstrel's drawing in Dcad the "working plane of 2d mode" was set at "xy". I changed it to (my default) "xz" then exported from "2d view" a dwg 2000 file and the result is displayed in the attached picture. I am accustomed to drawing with "xz" in Dcad  because when you go to 3d perspective view it's a top view not a front view.

Minstrel,
You did a wonderful job on the tutorial :) Thank you for sharing
I was just trying to help beacause I thought that this discussion is about Dcad's capabilities, bugs what not to do, etc... with 3d nested blocks.So..The more information shared the better.
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

MarkX

Quote from: minstrel on January 05, 2013, 11:59:02 AM
Quote from: prl on January 05, 2013, 11:34:20 AM
So now you're going to say . . . hum

...no prl, you got to get 'simpler' than that!

Define 'Z=0' and how you are setting that and the picture just might come in focus...

All I do it 'snap' a handle where I choose....is that this 'Z=0'?
Or are you re-setting Z as 0 in the info box?
Design or assemble your blocks so that the anchor point is on the Z coordinate. It seems amazing to me that you would do this by accident every time. I had to deliberately set up a line to build on. Need to investigate if it relates to the 2D XY thing like Dean is suggesting.

The problem with the "pentagon" layout is that I have no idea which, if any of the pianos was likely to be your starter. To get it to work right for me I had to draw a line along the z axis with an orientation that didn't match any of the pianos.

Mark

minstrel

#21
Quote from: prl on January 05, 2013, 10:55:03 AM
Use the rot90x.rb ruby script for SU.  Put it in the plugins folder

Thanks, prl

This put a smile on my face!

Minstrel

Amended Note: to all setting this up...and using Vista/Sketchup7Pro - rot90x.rb goes into the 'Tools' folder; not the 'Plugins' folder.  This is the only way I got it to work.  It might be different with the free versions...thanks prl, for the heads up!

minstrel

#22
Quote from: MarkX on January 05, 2013, 12:53:35 PM
It seems amazing to me that you would do this by accident every time. I had to deliberately set up a line to build on.
To be honest, Mark, I don't go thru the procedures both you and prl do.

What you both seem to be doing is setting a 'template' to work off of; namely this Z=0.

What I'm doing is creating the 'blocks' with a common control handle.
Then, during the 'nesting' process I once again set the handle(s) the define the nest.
Now I perform  a 'block' insert.  Once inserted and if necessary I re-set the handles to assure proper placement, which in this case, is the polygon.  It really very simple and it's very faithful.

Perhaps Dean is right, the next 'ScreenCast' should be a step-by-step of this 'silly' piano!...I'll do the 'Key's' afterwards.
edit-  Uploaded tut_009 - "Baby Steps" instead  http://youtu.be/Q--r7gg-NZM.  Easier to construct a new 'nested block' and place that into the piano scene...this way you can see it in action!

Note: one thing I have tried [provoked to try] was setting 'drawing origin' point - disastrous to SketchUp imports!

Minstrel


Dr PR

This discussion cetainly has brought up a lot of interesting points.

In a perfect virtual world if you exported a collection of objects from program A and imported them into program B the objects would retain their original relative scales and orientations, regardless of their "absolute" positions (relative to the program's grid origins). So if you worked in program A with the Z axis up, and imported the objects into program B where the Y axis is up, the objects would come in laying on their sides, but they would still have their relative positions. All you would need to do is select them, rotate them vertical again, and move them to where you want them.

Obviously this isn't happening in the DC to SU translation. The object's absolute position in DC seems to effect the results of the SU import. It also appears that when you rotate the imported objects in SU each object may have its own definition of "up." Weird!

****

On the home front it appears that nested groups and nested blocks may corrupt each other, and even solids in nested group/blocks may be corrupted. Ug!

I suppose to be diligent we should create drawings with nested groups of solids within nested blocks and then use the drawings as symbols to import into new drawings. No thanks, not today! I'll leave that to the more masochistic members of this Forum.

Phil
DesignCAD user since 1987

prl

Quote from: Dr PR on January 05, 2013, 01:30:04 PM
Obviously this isn't happening in the DC to SU translation. The object's absolute position in DC seems to effect the results of the SU import.

Incorrect.  I have for years had a 1:1 relationship between DesignCAD and SketchUP.  Where it exists in the DesignCAD xz plane, it exists in the SketchUP xy plane.

Dr PR

prl,

So why do you want/have to place things at Z=0 before exporting to SU?

Phil
DesignCAD user since 1987

prl

Quote from: Dr PR on January 05, 2013, 01:42:13 PM
So why do you want/have to place things at Z=0 before exporting to SU?

Because the DesignCAD "Block Define" is creating a corruption in the Z axis direction.  X, Y direction have been properly zeroed.  See my little discussion in the other topic.

MarkX

Quote from: minstrel on January 05, 2013, 01:27:19 PM
Quote from: MarkX on January 05, 2013, 12:53:35 PM
It seems amazing to me that you would do this by accident every time. I had to deliberately set up a line to build on.
What I'm doing is creating the 'blocks' with a common control handle.
Then, during the 'nesting' process I once again set the handle(s) the define the nest.
This is exactly what I'm doing -- and probably PRL as well.

BUT, when that initial block is built with a control handle with Z!=0, the placement gets messed up.

So, why don't you try to set up your block with a Z=2 or some other non-zero value and see if it doesn't mess up for you as well when exporting?

Mark

prl

Quote from: minstrel on January 05, 2013, 01:08:20 PM
Thanks, prl
This put a smile on my face!
Note: to all setting this up...rot90x.rb goes into the 'Tools' folder; not the 'Plugins' folder

Glad to help Minstrel.  Thankfully you and I can butt heads a little without permanent  damage. . . . by the way, on my Windows XP machine, all my ruby scripts are in C:\Program Files\Google\Google SketchUp 8\Plugins , this was default before.  So folks, if one subdirectory doesn't exist, try the other one. 8)

Dr PR

minstrel,

When you say "common handle" what are you talking about?

I can envision two options:

1. Each block has a handle at the same relative position to the block. This "common" handle might be at the lower left front corner of each block, wherever that might be relative to the drawing origin.

2. You could be selecting objects for the block and then setting the handle at some specific drawing XYZ coordinates, regardless of where the objects in the block are located. This "common" handle location would be used for all blocks.

Who knows, maybe someone else can think of another definition for "common."

The ambiguities in these discussions are really confusing things.

Phil
DesignCAD user since 1987