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 - "One Flew Over the Cuckoo' Nest"

Started by minstrel, December 29, 2012, 11:18:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

#30
Garry,

I tried version 16.3 on the test drawings that I included here: http://forum.designcad.com/index.php?topic=4736.msg29606#msg29606

Version 16.3 fails on both.  Go figure.

In your test drawing, turn your cabinet set 90 degrees about the Y axis and try 16.3 for exporting. Let me know if it works. 

Garry K

Here are the settings that I was using.

When I nest the drawer box pieces and then put into 1 container they behave quite strange.

When I turn off my work layer the draw box parts disappear. When I turn off all the layers then turn on the drawer box layer the drawer parts reappear.

However they are positioned correctly

I can rotate the drawing in DC or in SU - and the parts are placed correctly.

Rob S

QuoteI tried version 16.3 on the test drawings that I included here

V16 failed at just about everything, so it should be excluded from all testing for anything except further embarrassment  :)

Isn't that a bit like running reliability tests using an Edsel??
User since forever

Garry K

Well, for the automated stuff I've been doing 16.3 seems to be working quite well. It is version 22.1 where it is having problems.

minstrel

#34
It's a New Day, a New Year and a New Revelation!

It's becoming quite clear that 'blocks' and 'nested blocks' are not so much the issue as are the way's in which they are implemented.

One user striving for 'automated' performance which sounds encouraging [though the test run for me populates the layers with nothing visible].
Another user applying incredible 'macros/coding' into the mix [which unfortunately, are and will be beyond the 'normal' users experience].
Then, on top of this, we have an abundance of export/import issues dependent upon which version of DesignCAD is being used.

This is great!  We're coming at this from all angles. Just hope we don't lose anyone along the way.  So, to all,  stick with it!

Fortunately, for me, I have developed a strategy [simplistic] which involves neither of the about approaches and have hopefully demonstrated [via posts and ScreenCasts] a consistent success rate with 3D Blocks and the DesignCAD - 2 - SketchUP  'Great Exchange'

***

prl - regarding post: http://forum.designcad.com/index.php?topic=4736.msg29606#msg29606

Tried to correct your drawing #2...no success. 

What I did notice was a 'stray' line in the mix [see pic].  Whether or not the 'little bugger' was enough to destroy all hopes of 'perfect' positioning/placement in SketchUp...well, I removed it and tried again...still produced a mess. 
And, when using the 'selection filter' to focus on that stray line, if it's selected the entire drawing is selected; something wrong there!

Plus your foundation [the floor plan] is a collection of lines, none of which are joined...is that intentional?  That also might contribute to false placement of the bookcases. 

Remember, in my approach, all the drawing 'components' were made into blocks!  This gives much better control when within SketchUP and might contribute to overall accuracy.

I know both you and Garry are throwing curve balls at us, as you both are experimenting with our topic '3D Blocks' with approaches that can and will be 'topics' on their own...namely: automation, macros, scripts, etc.   Don't get me wrong I enjoy the 'debug' process...I'm learning from that as well.  But it stands to reason you both will encounter more issues than my simplistic approach.

That being said and not knowing exactly what sort of 'nuts and bolts' you have thrown into the file(s) or how they were produced ...I once again went my own way.

Took a copy of my original 'bookcase' and pasted into a new file.  Made three versions of the bookcase 1. blocks 2. grouped blocks 3. 'nested' block. Pitched them off into different directions, exported [with no rotation], imported into SketchUp...no probems.  Outside of a 'reverse faces' cleanup, each version of bookcases were placed properly...

...and I'll make a compromise.  Since 1st generation 'nested blocks' are rock solid for me, I'll stick with them [1 generation only].  "No two steps backwards" for me ;)


Quote from: Garry K on December 31, 2012, 07:35:38 AM
The txt file is a CSV that contains data.
The d3m file is the macro. The macro opens the txt file - place both in c:\src\jobs

Now, Garry, this sounds way too slick!

Set it all up as you advised, the layers load yet nothing is visible no matter what I do.
Look forward to seeing this in action as this is definetly new turf for me! 

Minstrel

ps - I still sense export issues are related to 'rotate/mirror' functions either within DesignCAD or within the 'dwg/dxf exporters; or both.

edit - added attachment


prl

#35
Quote from: minstrel on January 01, 2013, 12:23:55 AM
Took a copy of my original 'bookcase' and pasted into a new file.

Minstrel,  the floor plan is just a visual reference for verify that the blocks are being placed and exported in their proper positions.  Yes I noticed the stray line.  That shouldn't matter either since a block can contain anything, not just solids.  Also for SketchUp, you can export the floor plan first if you want, and then secondly export the bookcases.  That separates the two and they will align properly in SketchUP. Though the bookcase is still messed up.

A suggestion. Don't take your original bookcase drawing, I know that worked, make something new and populate it on the floor plan however you want.  The blocks need to be at different angles about the Y axis  (0, 45, 90, 135, 180, 225, 270).  If this can be done repeatedly with different blocks then we will have this handle situation solved. The fact that my test drawing (1) and (2) are identical with the exception you made the blocked assembly in version 1, and I made the blocked assembly in version 2 (manually per your method) and (1) works, and (2) fails doesn't give me confidence. 

Repeatability.


Also as a final request.  When you have successes using your method, please let me know where your absolute zero is in relation to your block insertion point when you first define.


prl

#36
Garry,

Version 16.3 export isn't going to work for me either.  Using your approach of not placing handles only correctly creates the cabinet for export in its original orientation.  After building your cabinets with the cabinet.d3m, I created blocks letting DesignCAD use the default locations for the block insertion points. My results are in jpgs when I rotate the total assembly by 45 degrees around the Y axis (in DC, then normal export).  Since I can't attach more then 4 pics at a time, the cabinets at 180 degrees are OK again.

prl

Quote from: minstrel on January 01, 2013, 12:23:55 AM
ps - I still sense export issues are related to 'rotate/mirror' functions either within DesignCAD or within the 'dwg/dxf exporters; or both.

For now, how about nobody pre-rotates for export.  Just plain straight export.  Or if you have success doing that, you specifically mention it.

It is clear to me that the dwg/dxf export routine is having problems with block origins relative to the model origin and possibly the Z and Y axis swaps.  Maybe a TurboCAD routine is being used (they have the Z axis as vertical).

Garry K

I am having at least some success with creating parts in my "work layer" and then moving them.

version 22.1 is still giving me the same type of results that prl demonstrated.
version 16.3 is working - at least for me.

Minstrel - I have associated .d3m files with Windows 7 to run DC. If I already have a copy of DC open - then I get an empty window - otherwise I get a complete drawing. Also if you recall you asked me to move into this thread. I was originally writing in the dxf export thread.

SU is placing the cabinets correctly - what is interesting is visibility. If I turn off my "work layer" then everything disappears. If I keep the work layer on then everything works as expected.

It appears that various configurations, setups and options may produce side effects that I have not anticipated. I will look into that possibility separately. As of now - I am modifying my macro code generator to work with simple blocks.

prl

#39
Quote from: Garry K on January 01, 2013, 07:56:29 AM
I am having at least some success with creating parts in my "work layer" and then moving them.

Garry, the topic of on which layer your solids are on, on which layer you create the blocks for those solids, and on which layer you create a nested block, is something I was trying to explain earlier.  Minstrel hasn't tackled this one yet.  It can get pretty hairy though there is a logic to it.

My advice so far.  Put your first level blocks on the same layer as your solids.  If you are then blocking your blocks, put that on a separate layer, say call it "total assembly". 

Within DesignCAD, visibility will behave differently depending on whether you have "Symbol host layer control visibility" ON/OFF.   With the setting OFF, it behaves much like SketchUP.

In SketchUP, the original layers where the solids were created will be listed in the layer dialog.  It will let you turn off portions of the total assembly.  Or you can toggle off the "total assembly" layer, and the entire unit is turned OFF.

Garry K

Where do you find that setting "Symbol host layer control visibility"

While looking for it I ran into "merge layer zero entities to the current layer" - which is checked.
What does this mean?

prl

Quote from: Garry K on January 01, 2013, 08:44:12 AM
Where do you find that setting "Symbol host layer control visibility"
While looking for it I ran into "merge layer zero entities to the current layer" - which is checked.
What does this mean?

Options Menu under Options>View Tab

For other item, see sys(111) write-up in macros17.hlp


Can you attach your already blocked cabinet drawing (DesignCAD file) where you are having success at all rotation angles from 16.3 ?


prl

#42
PROGRESS!

For version 22 I believe I have isolated the problem.  Also probably explains why Minstrel has been lucky!  ;D

In version 22, if you define a block with the primary handle at anything but Z=0, the block will not export correctly.  Having the primary handle at non zero X and Y locations doesn't matter, but if Z isn't at the model Z=0, something in the block is corrupted for export.

With the attached sample drawing, you can experiment with inserting the blue solid block and the red solid block along the inclined line in 3d.  Both will look okay in DC, but exporting to SU will show you the impact of defining them at Z=0 and Z<>0.  (The blue is defined at z=0 and the red z=5  . . . x y values don't matter).


minstrel

#43
Quote from: prl on January 01, 2013, 06:37:44 AM
please let me know where your absolute zero is in relation to your block insertion point when you first define.

Golly gee, prl...I have no clue!  I do nothing special to get these results.  If you're asking where I set the 'handles'...well that will depend on the components design.  Tend to gravitate towards the lower-left-back, if that's any help.

What you see now is a 'sneak' glimpse of Minstrel's3Dspace tut_008 - "Play it [again], Sam".
It will, once again, outline my method, which will....well, you just have to wait.

Quote from: prl on January 01, 2013, 08:19:59 AM
Minstrel hasn't tackled this one yet.  It can get pretty hairy though there is a logic to it.

Huh? Is that what you really think?  I'm gonna call the 'Nurse' on you if you if keep that up!

Seriously,  thanks to your 'nudgings', I think I have ventured well into the multiple layered nested block thing.
All went well [except when I tried to use your example drawing] the feet to cm conversion just would not cooperate....so I again made my own little 'ditty'.

Look the .dcd over for me and see if you can spot any problems...one of the pianos was left as 'blocks' on specific layers...the other are 'nested' on one layer.   Rotated and 'faces' reversed while in SketchUP.  Modifications to the components worked excellently, which I highlight in the upcoming ScreenCast.

Quote from: Garry K on January 01, 2013, 07:56:29 AM
Minstrel - I have associated .d3m files with Windows 7 to run DC. If I already have a copy of DC open - then I get an empty window - otherwise I get a complete drawing. Also if you recall you asked me to move into this thread. I was originally writing in the dxf export thread.

Thanks Garry, I'll try it again asap....busy,busy.  And I do recall, if it has anything to do with 'blocks' dump it into this thread....and you are dealing with blocks, so please keep us updated with all progress!

Minstrel

edit - Hey prl, you just posted over me again...and like I said, there's no word 'luck' in my vocabulary! ;D
Get that 'Cuckoo Bird' back in the cage!

Dr PR

prl,

Excuse me for saying the obvious, but in your pictures of the rotated cabinet it is clear that each object (or group) is rotating about its own handle, and the whole collection of objects is also rotating about a common handle. For this to work correctly (and it is not) all of these rotations have to be in the same direction around the vertical axis.

The whole collection of cabinet parts is being selected and is then being rotated around a common rotation point (handle) at the intersection of the red and green lines. However, each object also rotates independently around its own handle - this is apparent from your pictures.

The entire collection of objects is rotating counterclockwise (as seen from above) around the common rotation point. However, some objects are rotating clockwise around their own handles. I can't be sure if all objects are rotating clockwise, or if some are rotating counterclockwise around their individual handles.

Look at the left side panel of the lower cabinet (first picture). It is rotating clockwise about the red/green intersection point - its rotation handle is coincident with the entire assembly rotation point. However, the right side panel seems to be rotating counterclockwise around its own handle.

The counter top surface and the right and rear vertical parts are rotating clockwise about a handle at the right rear corner (first picture).

To me this suggests that each object has its own independent rotation axis polarity ("up" is not the same for all objects). For some the positive vertical direction is up, and for others it is down.

So some objects are rotating clockwise relative to the whole drawing, and some counterclockwise, but all are rotating the same relative to their own individual sense of up/down.

The attached image illustrates what happens when all objects do not rotate the same direction around their own axes (right side example).

****

One possible cause of this behavior is the way objects are being created in DesignCAD, possibly because some objects may have been created by mirroring.

Note: Handle location does not matter.

Each individual object is importing into Sketchup right side up, so the basic drawing element points are importing correctly. Or at least mostly correctly - it seems from this discussion that some surface normals are reversed. The fact that some normals are reversed indicates that these objects are importing incorrectly - somehow "backwards." When subjected rotation the "backwards" things rotate in the opposite direction from "normal" things.

I guess it is a question of whether it is the objects themselves, or the group/block/components (whatever Sketchup calls them) that are causing the odd rotations.

So the problem in Sketchup is that different objects have different senses of "up." It is almost certain that this is caused by the way DesignCAD created the objects. Why?

****

Here are some questions:

1. Are objects that are created by mirroring in DesignCAD imported into Sketchup with reversed normals?

2. Do objects that have reveresed normals in Sketchup rotate the opposite direction (around their own handles) from objects that have correct normals?

3. If the point order of mirrored objects is reversed in DesignCAD before they are exported to Sketchup, do the normals import correctly?

****

One VERY confusing part of this discussion is that you are all using two different programs, but you don't always say which program is producing what results, or what you did to get the results. The rest of us cannot read your minds.

Phil
DesignCAD user since 1987