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.

MarkX

Quote from: Dr PR on January 05, 2013, 03:09:36 PM
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.
I've been assuming interpretation #1, but only for the block definition. The inserted blocks can go wherever you want.

Mark

MarkX

#31
Quote from: Dean on January 05, 2013, 08:49:21 AM
Mark,
By default what is your working plane of 2d mode? Most likely Minstrel created the drawing while in "xy" working plane of 2d mode. I get similar results to yours if I switch to "xz" and export from 2d mode view. When I exported the dwg 2000 file from Dcad with "xy" set as WP of 2d mode while in 2d mode view it imports into sku with all the nested blocks in place. I always draw with "xz" WP of 2d mode. Aside from "y" being up everything else translates well with other cad programs.
I may not be understanding. So far it appears that merely switching to XY before exporting doesn't make any difference. Maybe I need to make the drawing from scratch while XY is on in the background ... even though I'm not making use of the XY feature at all?

Mark

Edit:

Completely re-built piano and components using random leg of pentagon as base while working with XY plane set. Result was (1) Could not use handles provide by blocks to set other pianos on pentagon. Had to insert a block, and then apply handles, and then copy it using those applied handles onto each side. (2) After export/import into SU, the pianos were properly oriented in respect to the pentagon, but offset a significant distance.

So far only PRL's approach has gotten the export to where it needs to be.

Mark


Dean

#32
Quote from: MarkX on January 05, 2013, 05:53:51 PM
Quote from: Dean on January 05, 2013, 08:49:21 AM
Mark,
By default what is your working plane of 2d mode? Most likely Minstrel created the drawing while in "xy" working plane of 2d mode. I get similar results to yours if I switch to "xz" and export from 2d mode view. When I exported the dwg 2000 file from Dcad with "xy" set as WP of 2d mode while in 2d mode view it imports into sku with all the nested blocks in place. I always draw with "xz" WP of 2d mode. Aside from "y" being up everything else translates well with other cad programs.
I may not be understanding. So far it appears that merely switching to XY before exporting doesn't make any difference. Maybe I need to make the drawing from scratch while XY is on in the background ... even though I'm not making use of the XY feature at all?

Mark

Edit:

Completely re-built piano and components using random leg of pentagon as base while working with XY plane set. Result was (1) Could not use handles provide by blocks to set other pianos on pentagon. Had to insert a block, and then apply handles, and then copy it using those applied handles onto each side. (2) After export/import into SU, the pianos were properly oriented in respect to the pentagon, but offset a significant distance.

So far only PRL's approach has gotten the export to where it needs to be.

Mark

Mark,
If you do re-create the drawing ,Which I think you are right in doing so draw with "xz"set as the working plane of 2d mode  not "xy" create the main parts as planes in 2d mode then extrude them in 3d mode and then export the 3d objects as a dwg 2000 file while in  2d mode not 3d mode (there is a difference). This will open in other cad programs normally meaning you shouldn't have to rotate anything.Dcad's 3d primitives cones,cylinders etc.drawn in 3d mode maintain the same results.
Most other cad programs in general have their world coordinate system as "z"axis is up.(as you know).though the WCS is moveable  "z" is up. The method I explained above and use frequently is the simplest method I have found to be consistent in sharing 3d Dcad files exported as dwg files.  If I am sending a file to someone who has autocrud or sketch up or turbo cad the dwg imports to these programs as I intended them to. The other user doesn't have to fuss with or rotate anything in the drawing.
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

prl

#33
Dean,

Your approach of exporting a 3d model while in 2d mode with the xz plane as DesignCAD default 2d mode plane, is effective for eliminating the rotation requirement in AutoCAD, SU, etc., and it does fine with normal DesignCAD entities, but when I tried it with DC blocks, again the block positions are corrupted.

Have you tried it with blocks where the block handle definition point is at random locations z<>0?  I rebuilt the piano from scratch in a new empty drawing - drawing is attached.  No luck.

Reminder - to see the block define handle locations (which on block instances are their insertion points), under the point menu >Point>"Show Symbol/Block Handles".  The red dot is each block's 0,0,0 location.




minstrel

#34
Quote from: Dr PR on January 05, 2013, 03:09:36 PM
The ambiguities in these discussions are really confusing things.

Phil, go with #2 and if that doesn't work go with #1...or perhaps #3 can cut it.  Not that tragic, now is it?

It's only as confusing as you determine to make it!

The term "common" is far from ambiguous....it simply means the initial handle that you set for you main block [in the case of the piano, the body] is set first.  I choose the lower-left-rear as the 'Common' handle. 

Then each of the following blocks [legs, keyboard, etc.] are constructed and properly arranged/correctly positioned onto 'body'...then before they are 'block defined' [one at a time] they are selected and a handle is set to the 'common' location [ which is, in the case, the lower-left-rear of the piano body].

Remember, we are talking about 'nested' blocks here....'cause now all the above is selected and nested. 

I have been repeatedly saying this in video, posts and provided downloadable files. Have you been listening?

Phil, you dance with 'words' like I dance with 'visuals'.    Some will get it your way; some will get it mine - everybody's a winner! 

On another note:
For all those trying "tut_008 - "Play it [again], Sam" or trying to sort out this piano thing...Please, be sure you are doing it with the file I provided available at the opening post of this thread.  There are several other versions now on the forum which will screw up your testing.

Minstrel

prl

Quote from: minstrel on January 06, 2013, 01:35:33 AM
I choose the lower-left-rear as the 'Common' handle. 

Minstrel, and because you chose the lower-left-rear as the common location, your piano blocks export properly.  Had you chosen the lower-left-front, they would not.  And that is the issue, you just happened to chose correctly.

minstrel

Quote from: prl on January 06, 2013, 01:49:31 AM
And that is the issue, you just happened to chose correctly.

Regardless of whether is was by accident, luck [as you believe] or Divine Inspiration [as I know] is not the issues.  The issue here is what I've been saying all along [video,posts,blah, etc.] has not been followed.

Good Mornin', Prl,

Guess this should be 'Law' #1

Minstrel


prl

Quote from: minstrel on January 06, 2013, 02:42:23 AM
Good Mornin', Prl,

Almost lunch for you.

By the way, you're in a non sequitur do loop on this handle location issue.  You've been avoiding building your piano with handles at any other location in 3d space.

Someone who follows your approach will only have success IF and ONLY IF their 3d drawing space is set up just like yours and they happen to chose a handle location at z=0.  If they have their 3d drawing origin at different locations than you, all goes wrong. 

Not sure what else I can say.



minstrel

#38
Quote from: prl on January 06, 2013, 03:02:40 AM
Almost lunch for you.

...actually, 'Brunch Time',
Just made french toast for family/friends, now off to walk the dog. 

Quote from: prl on January 06, 2013, 03:02:40 AM
Not sure what else I can say.

This is why I'm still 'exploring' our initial 'showroom' [or was it showcase? - so confusin'] file.
I sense this is still the perfect approach...now, to just get them to copy/paste and align properly in a 'new file'.

In the worst case, this is all elementary since any geometry, block or nested block made in DesignCAD can be imported into SketchUp as a single entity and either made into a component [if necessary] or manipulated with great ease while there.

I'm just trying to 'elevate' the standards within DesignCAD, which will benefit all.

Minstrel

edit - just saw you posted the above 'macro' .... hope it survives the testings!

minstrel

#39
Quote from: prl on January 06, 2013, 01:49:31 AM
Minstrel, and because you chose the lower-left-rear as the common location, your piano blocks export properly.  Had you chosen the lower-left-front, they would not.  And that is the issue, you just happened to chose correctly.

Then explain this.   

How did I pulled off "tut_007 -...over the Cuckoo's Nest" ?
"Common" handle set: lower-left-front! 

...Nothing like a walk in the park to open ones eyes...

And what I would also like to point out is that I often layout my designs in 2D first then switch over to 3D.
Now if that has anything to due with my success rate I haven't been able to prove...but seems Dean has had success working both sides of the puzzle [2D-3D] as well ... just thinking aloud here.

Anyhow, I'm sure you will come up with a 'dandy' good reason why I was able to break the rules and have it work 8)

Minstrel

edit - added attachment

prl

#40
Quote from: minstrel on January 06, 2013, 08:23:24 AM
Then explain this.   

Minstrel, I'm suppose to know your z location by looking at a picture?  You'll need to supply a dcd file.


Edit: On second thought, seems we are beating this issue to death and I've explained things as thoroughly as I can and it's time to exit this loop.

Let's move on to something else.

minstrel

Fair enough, that's your decision...but you not indicating this tread it closed, are you?
Because it is NOT!

I haven't worked this hard at it to abandoned it at your request.

You said if the handles were done any other ways it would not work.
Here's two files that challenge that statement.

... and the attachment in my previous post used "point/show block handles....red dot should mean something?


Seriously,  anyone that would like to contribute to this threat, it is not closed.  Please try to do your best, decorate the pianos, add neat stuff....and I'll be here to help you the best I can!

Minstrel


prl

Quote from: minstrel on January 06, 2013, 09:13:56 AM
  but you not indicating this tread it closed, are you?

Of course not.  And by the way, both the files you just attached are indeed z=0 examples. 


MarkX

Quote from: prl on January 06, 2013, 09:22:18 AM
Quote from: minstrel on January 06, 2013, 09:13:56 AM
  but you not indicating this tread it closed, are you?

Of course not.  And by the way, both the files you just attached are indeed z=0 examples.
How do you tell when a block has been made with z=0 ? Once its made can you see this info?

Mark

MarkX

If you set the workplane so the handle anchors when you build the block are at 0,0,0, that will work. This might be a good workaround in some situations.

Mark