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.

Blocks and Handles - How are you getting them to work?

Started by prl, December 12, 2012, 02:12:36 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

prl

Hi folks,

Over the years I've avoided DesignCAD blocks for many reasons.  For me they behave oddly, don't export well, and solids show all the hidden lines when exploding a block.

Anyway,  minstrel used blocks in his Christmas tree and for him they worked. I was wondering if this was by accident or if I don't know what I'm doing.  Wouldn't be the first time.

So here are my questions for anyone that uses blocks in 3d and is happy with them.  The questions are geared to using three handles and inserting blocks.

To make the block,

1a.  Do you select your items, set your handles, define the block and then use block insert for copies?

or

1b. Do you select your items, define the block without handles, and then create an instance and set handles on the instance and dragcopy or duplicate to make other copies?

I thought 1a was the proper way to do it but this has never worked right for me.  1b. will work okay but doesn't export well.  Also 1a. doesn't export well either.

I've attached a screen capture movie.  It is in the zip file.

What you are looking at is a 2d floor plan in the XZ plan.  I'm working in 3d mode wire frame looking at the floor plan from a southeast view.  I have a solid standing up on the floor plan, say a piece of wall or better yet a door.  I select the solid, set three handles at the base in a "L" sequence (point 1 is origin, point 2 is width of wall/door, point 3 is thickness of wall/door).  Then I define the block.  I've used menu commands to illustrate/verify the commands.

My expectation is that when I block insert, it would honor these 3 handles just like it does had I set the points on the same solid without making it a block. In other words, all the blocks (of the solid) should be standing up properly rotated to the openings I snapped to.

Your thoughts and advice are appreciated.


Edit:  I attached the sample working drawing I'm using in the movie.  The blue solid is just a solid.  You can try your hand at the block defining sequence.






minstrel

#1
Quote from: prl on December 12, 2012, 02:12:36 AM
Anyway,  minstrel used blocks in his Christmas tree and for him they worked.

I was wondering if this was by accident or if I don't know what I'm doing.  Wouldn't be the first time.

...hah!  What can I say, I'm blessed, man!  No, there's no accidents here. 
I'll allow others explain their methods so we can all learn something.... but you can try this.

I've attached my original dwg export from "the Tree"...load it in SketchUP and see if the spheres are arrayed properly.
If they are, well, something is going amiss within your DCAD dwg export procedures.

Now, if you are refering to blocks in DCAD only...well the spheres have a default handle at the center.  Maybe that explains it?

Success,
Minstrel

ps - try several times to get your swf player to work....a no go!  Better climb up that pole again!
It unzips ok; no play.  Me Thinks because you wrapped it in an .exe file [all windows will block it].  Best simply to zip an swf; not exe files.

prl

Minstrel,

Note the movie is a self executable in case that matters.  Just double click (in case you trying to run it through some other program).

Regarding your drawing.  No problems with that.  I understand how you did it.  My question deals more generally with blocks and the 3 internal handles.  Can't get them to work in DesignCAD, never mind exporting them.

ps. You just got lucky.  You arrayed them around a common point.

prl

Minstrel,

I made the movie using an older version of that program.  Try that one please.  Thanks for taking a look at this.

minstrel

#4
Quote from: prl on December 12, 2012, 03:59:10 AM
ps. You just got lucky. 
...there ain't no thang' as luck!

Figured the central handle had a hand in it though....I try candles stick next.  That should make you happy!

Listen, the exe files throws this error no matter how I work it.  Maybe you can see the problem from it.

Minstrel

EDIt - Version 2 opened nicely....Now, I must go and watch a movie...[is it too early for popcorn?]

prl

Minstrel,

Yes, doesn't like something.  The movies are selfplaying executables with the player and movie all in one.  Generally just unpack the file from the zip and double click.  Let me know if you have problems with the second version I attached.  The reason I use this program is because it makes tiny files . . . and since I got to climb that pole, tiny files are great. 

prl

Maybe I don't understand anything with regards to blocks.

In my test drawing, select the blue solid, set the 3 handles at the bottom using an 'L' sequence, then define the block.    Now select this same block, go to the point menu and toggle on "Show Symbol/Block Handles".   What????????????? 


Later - so blocks don't accept more than one handle but they auto generate the other two (green  and blue dots) always in the XY plane?  Symbols do accept 3 handles like normal.  What a conceptual mess.   No wonder I can't get this to work.

Even later - What???? Externally referenced symbols act even more strange when exporting.  Argh!!!!


minstrel

That's a good one...I'm sure Lar is suiting up as I write.

Prl, maybe you are trying to get the blocks [lets stick with them for the moment] to adhere to every situtation.  I find that is not possible. 

I  set only one handle then create the block.....After block insertion [it's still selected] gravity snap it to desired location [corner/line/intersection] then immediately hit the enter key.  The block snap into 90 nicely.

Now, it probably will need to be either rotated or move...sometimes a mirror work well.  Often the block will need to be exploded and new handles set....sometimes it will not.

Minstrel

prl

The Lar Signal because blocks and symbols are suppose to be more or less one in the same.  And Lar is an expert on symbols.

QuoteI  set only one handle then create the block.....After block insertion [it's still selected] gravity snap it to desired location [corner/line/intersection] then immediately hit the enter key.  The block snap into 90 nicely.

Yes then rotate each one.  And when one does this, will it export?  Doesn't work for me.

QuoteOften the block will need to be exploded and new handles set....sometimes it will not.

Doing this will mess up all your other instances (the positions) of that block.


My obvious solutions has always been to simply use groups rather than blocks.  But it is a shame since the concept of blocks is that one can edit it and all the instances are updated.

MarkX

Quote from: prl on December 12, 2012, 07:34:17 AM
The Lar Signal because blocks and symbols are suppose to be more or less one in the same.  And Lar is an expert on symbols.

QuoteI  set only one handle then create the block.....After block insertion [it's still selected] gravity snap it to desired location [corner/line/intersection] then immediately hit the enter key.  The block snap into 90 nicely.

Yes then rotate each one.  And when one does this, will it export?  Doesn't work for me.

QuoteOften the block will need to be exploded and new handles set....sometimes it will not.

Doing this will mess up all your other instances (the positions) of that block.


My obvious solutions has always been to simply use groups rather than blocks.  But it is a shame since the concept of blocks is that one can edit it and all the instances are updated.
You have to re-save the block with the same handles in the same position, or weird things will happen to all your copies. You should have the block you re-save in the same orientation as the original block. This is easy if you explode a new block off to the side. If necessary, save pointmarks with the blocks to show where the original handles were.

In Minstrel's drawing, all the objects are symmetrical, and have a central handle. DC *may* have messed them up, but how would you know? The only way to tell would be to include something with the block to mark the  faces.


Mark

prl

Well here is what I have learned.

The 1a. procedure is wrong and so my thinking has been wrong.  Blocks are odd creatures and only have one handle and autogenerate handles 2 and 3 in the XY plane.

To position blocks, use method 1b.  This is normal DesignCAD.


Now for the bad news.  DesignCAD still gets exporting wrong when using method 1b.  Attached is the floor plan drawing populated with instances of a single block.  Minstrel, try exporting it to SketchUP.

For those of you that don't have SketchUP, simply use DesignCAD to export a dwg and then use DesignCAD to reimport the dwg you just created. 

MarkX

I think its the DC export that's messing up.

I opened prl's drawing in TurboCad 16, rotated, and exported to sketchup. OK, I'm out of practice in TC, and the rotation didn't put everything on Z=0. Sorry ;-)  It doesn't look too bad.

See attached.

Have fun,
Mark


Rob S

Many years ago, probably in V15 or 17 or thereabouts I used blocks with attributes to place various standard length joists onto a 2D formwork drawing, with some of them rotated 90 degrees to run in opposite directions, and then used the material list to count them for me.

I think I used both methods to insert new instances, but probably mostly copied them using an offset handle (not the block handle) to achieve the correct spacing

This worked very well at that time, but I have not used it lately.

As soon as I get a spare hour or so, I will try this again in V22 with a few samples and see if it still works as it did then.

I believe I was able to export the drawing to DWG at that time and the joists showed up where they should.
User since forever

prl

Quote from: MarkX on December 12, 2012, 08:59:28 AM
I think its the DC export that's messing up.

I opened prl's drawing in TurboCad 16, rotated, and exported to sketchup. OK, I'm out of practice in TC, and the rotation didn't put everything on Z=0. Sorry ;-)  It doesn't look too bad.

That looks more or less like it should.  You've verified it's the DC export routine. 

Only version 17.2 will export this drawing correctly AND only if I don't pre-rotate the drawing.  Any sort of rotating of the model to make the import standing up in the other programs and the block positions get jumbled.

minstrel

All right...I see the mess of your file imported into SketchUP.  Don't give up...I've a solution [partial?]

You may need to update your dwg 90deg export macro but at least you can maintain sanity in regards to DCAD imports in sketchup.

Here's what I found: 
When the drawing is complete explode each of blocks [seems it must be done one at a time...so please share what you come up with addressing this with a macro].

I believe you mentioned your present macro works a copy of the original...that's good.  Now the original remains secure with all the original blocks and file space saving...

Now when you import into SketchUP....bingo ... all nicely in proper place!

Next, since you kept your original blocks [now exploded] on a layer, simply access that layer in SketchUp, select it's visibility, then select all and group or make component.

Hope that puts a little smile on your face...you deserve it!   Now onto those symbols!

Minstrel