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

#60
Quote from: Garry K on January 02, 2013, 06:54:44 AM
Here's the rub - After all this moving there are weird artifacts showing up on Layer 1 - my work layer. In version 22.1 if I turn on "Symbol layers visibility controlled by Symbol Host Layer" and then turn off the work layer then the artifacts disappear.

Garry, I suspect the artifacts are pieces of the solid (the grid) that you are failing to move.  The getselect statement doesn't really "get" everything.  Search this forum for getselect.  I've posted this solution to getting everything in a few places.


Edit:  Re-read your post.  Here is another strategy I use.  Before you create the solid, record the sys(9) value, say start = sys(9)+1.  After your done creating it, to ensure you select everything, for i = start to sys(9) using getatt, putattr.

And upon reading your post again, there is something you need to be aware of.  Blocks encapsulate the original layers entities where created on.  So if you are making your solids on your working layer 1 and you define the solid as a block on the working layer 1, you've encapsulated the working layer 1 as the source layer for your solid.  Subsequently moving the blocks to different layers is only moving the block container around. Everything within the block is still on layer 1.  SU should let you see this.

I would suggest putting your solids on the appropriate layers, then block defining them.

prl

Quote from: MarkX on January 02, 2013, 06:24:21 AM
Quote
If you really want the photo-realistic path, throwing an extra $100 at DesignCAD you will get you . . . .
A slightly older version of TurboCad Deluxe with the lightwork render engine. Probably not as easy to use as the 3rd party attachments for SU. But it is an option.

And so you answered your own question.  At the moment SU has dozens of rendering options, TurboCAD has (1) and DesignCAD has (0).

Dean

I am not sure if this helps at all but here is another example displaying the hierarchy. They do speak the same language and communicate well with each other, I think because they are both polygonal/surface modelers. What you see in the pictures below are an export from Dcad into Sku. Most of the time I export a dwg from design cad while in 2d mode (better results) and draw with "xz" as the working plane for 2d mode this way I get a true top view. Also, for the most part I always un-check "preserve drawing origins" in sku when importing the dwg file. For me, I don't think of it as I am taking the drawing from Dcad and putting into sku, but rather using the powerful cad environment in Dcad to create objects that can be used and blend in with the power of Sku along with sku's rendering compatibilities with other programs. Both programs are or must be intuitive, well because half the time I have no idea what I am doing. Also, can someone explain to me how to use Garry's macro and what files are needed to download and  where to save them so I can test it. Thanks.
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

Garry K

Dean,

Here is the current version of the macro and data file.

Simply create a folder c:\src\jobs and stick these 2 files there. If you do not want to use that folder then edit line 12
Open "i", 2, "c:\src\jobs\Cabinets.txt" and change the folder to what you want.

This works in 22.1

Turn on "Symbol layers visibility controlled by Symbol Host Layer"


prl

A quick thanks to all that have shared drawings for me to study.  Minstrel, you're drawings helped me back-figure why what you were doing and I was doing was yielding different results.  Now that I know the block Z issue, pretty easy for me to get around.  Maybe later I can get Dt to fix this but for now, I got it!   :D

Dean

Thanks Garry!
I'll give it a try and let you know of the results.
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

Quote from: Dean on January 02, 2013, 07:53:56 AM
I am not sure if this helps at all but here is another example displaying the hierarchy. They do speak the same language and communicate well with each other, I think because they are both polygonal/surface modelers

Thanks Dean.  A topic of discussion for everyone including me is getting a working understanding of layers and how they interact with blocks and nested blocks.  Minstrel's piano is a nicely layered block and nested block assembly.  Try it in DesignCAD with "Host Symbol Layer Setting" ON/OFF.  There are rules. 

Dean

Garry,
Everything seems ok good job!. I exported a dwg 2000 file from design cad 22.1 while in 2d mode. I then Imported the dwg file into sku V8 pro with all dwg/dxf import options un-checked. As you can see in the attached picture the right back corner came in at the origin in sku.  I rotated the view.
Does the macro have any adjustments that can be made prior to it executing and drawing the cabinet?


"Try it in DesignCAD with "Host Symbol Layer Setting" ON/OFF.  There are rules". 
PRL, I don't understand this? can you explain.
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

Dean

Ok, I experimented with  the "Symbol layers visibility controlled by Symbol Host Layer".
>   "On" Garry's cabinet was visible after executing the macro.
>   'OFF" the macro executed but nothing was visible but it was easily fixed by showing all the layers. It exported to Sku just fine.
>   I noticed that I have been using it in the "OFF" mode. I haven't run into any issues that I can think of concerning "nested 3d blocks". For ex: I can create a "block" that contains nested blocks then assign the "block" to a specific layer and have complete control of the visibility of the block and the nested blocks. This works for me  so I'm probably going to keep it "off" not looking for any problems. The one thing that I find important is, as I mentioned above exporting the dwg from Dcad while in 2d mode. Whenever I export from 3d mode I get un-predictable results importing into other programs so I stay away from that.
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

minstrel

Quote from: prl on January 02, 2013, 08:14:25 AM
... Minstrel, you're drawings helped me back-figure why what you were doing and I was doing was yielding different results.  Now that I know the block Z issue, pretty easy for me to get around...

As always, I'm glad to be of assistance!

I see you are 'flying with discoveries' so no need to quickly respond...but, I still have no clue what your 'Z issue/discovery' is :-[ .   Gotta be something wonderful to get you this excited!  And exactly how does it differ from my approach?

Thanks,
Minstrel




prl

#70
Quote from: minstrel on January 02, 2013, 12:03:29 PM
And exactly how does it differ from my approach?

Push your piano back in the Z direction 100 cm and rebuild it in the same exact manner as you did before.  Your approach will not work.

minstrel

...hum...
but why would I want to push it back if it works fine the way it is?

Minstrel

MarkX

Quote from: prl on January 02, 2013, 07:18:47 AM
Quote from: MarkX on January 02, 2013, 06:24:21 AM
Quote
If you really want the photo-realistic path, throwing an extra $100 at DesignCAD you will get you . . . .
A slightly older version of TurboCad Deluxe with the lightwork render engine. Probably not as easy to use as the 3rd party attachments for SU. But it is an option.

And so you answered your own question.  At the moment SU has dozens of rendering options, TurboCAD has (1) and DesignCAD has (0).
No. SU has zero options on its own, just like DC. You have to pay to get true rendering. For the same or less payment, you can use TC to render.  But rendering isn't all there is to presentation. SU has no paperspace on its own unless you upgrade ($500, no discounts) to "Pro". They also consider additional line types and better solids operations to be part of the Pro.

SU does have a section tool that works, which you might consider a presentation tool. Its kind of a pig-in-the-poke if it works in DC.

I guess it would depend on how often you need to do a photo-realistic render.

Mark