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.

Standard CAD terminology-GROUP

Started by Jake, January 31, 2010, 06:02:41 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Jake

I have never used AutoCad.   Is the term 'group' used the same way in AutoCad as it is in DC?
Is the function the same?
Are groups normally retained when importing/exporting?

thx,

Jake
DC19.2

magic

Hi Jake,

AutoCAD does not have groups, but it has blocks, which is why, blocks were introduced into DesignCAD some versions ago.

I guess groups and blocks have just about the same function, but only blocks can be exchanged via import and export.

Hope this helps.
It's a kind of magic!




Jake

Yes, thanks.  Helps a lot. :)

Jake

Quote from: magic on January 31, 2010, 06:36:05 AM
Hi Jake,

AutoCAD does not have groups, but it has blocks, which is why, blocks were introduced into DesignCAD some versions ago.

I guess groups and blocks have just about the same function, but only blocks can be exchanged via import and export.

Hope this helps.

Lar

Jake, groups are different from blocks in that groups are just a collection of entities that you designate to be a group. If you duplicate a group it adds as many entities to the file as the group contains so the filesize grows in proportion. Duplicated groups have no connection to the group it was duplicated from.

A block, on the other hand, is a single entity that only resembles the set of entities it was defined from and the source resides in RAM memory. Duplicating it adds just one entity to the file, although it can resemble the entire drawing. You can RE-define any block from a different set of entities and all the duplicates of that block will change to match the new definition. The intention is to have all your typical 'collection-of-entities' (like doors and windows that can be created from different line, circle, etc, entities) in the background memory and you can duplicate them from there as much as you want and the filesize grows at a minimum.

A nice feature is to save an empty file that has all its blocks in memory as a template file so you can start a new drawing and bring in whatever block you need from the background memory.

A third 'entity-collection' type that dcad uses are 'Symbols'. Symbols behave exactly like blocks except that the source of a symbol is an external dcad file (I think the equivalent autocad type is 'xref' for 'external{ly} reference{d}' file).

Symbols have the advantage over blocks in that if you edit the source file all the files that contain that symbol will display the update when they are opened. To update a block across different files you would have to redefine the block in each file individually. Blocks have the advantage over symbols in that to move the file to another computer you have to make sure all the symbol files go along with it and in the same filename path so they can be found on the other computer.

Lar

Dr PR

Lar,

I tried to use blocks about five years ago in 3D drawings and ran into a problem that the material and color were not duplicated correctly in all displayed instances of blocks.

Blocks would be the perfect way to replicate common objects, like wall studs in a house or stanchions on a ship, that are repeated many times in the drawing. The block definition is included in the file in only one place, and instances of the block are only place holders in the file that say "display a copy of the block here." This would make the file size much smaller than having each instance of all the common objects defined again and again in the file.

However, I created a stanchion block with the pipe colored white, but some of the displayed copies were different colors. As I recall, white would never be displayed correctly as part of a block. Since you cannot edit the displayed copies, but only the initial definition, there was no way to control the color/material of the displayed copies. This made blocks totally useless for me.

I contacted DesignCAD tech support and was told to not use blocks in 3D drawings. Do you know if this has been fixed?

Also, do you know if blocks render more slowly (or faster) than the equivalent objects?

Maybe I will take the time to experiment with blocks again. I really need a way to reduce file size!
DesignCAD user since 1987

Lar

Doc, I don't normally use blocks (although I made a big use of them quite recently for a one of a kind application) and prefer to use symbols because of the advantage over blocks I mentioned in my previous post.

I used 3d symbols quite extensively a few years back and never had any shading issues but then I didn't use dcad for serious rendering (dcad couldn't do transparencies and shadows back then and it still can't do reflections). I was having a real sweet time using multi-layer symbols in all their glory but it seems like I was the only one understanding how they worked and everyone else on the forum was having major headaches (they could not grasp the concept of the symbol itself residing on a 'home' layer while the contents of the symbol could reside on other layers, which was like a godsend for me). The developers decided to mess with symbols and messed them up for me and I haven't used them since (they maybe fixed by now).

Lar

Adrian 2.0

Blocks have always been my personal nightmare.
I seem to have major problems on imported drawings when I need to change the scale (from mm to m) they stay at original size.
As you say Lar, blocks keep file sizes very small, and because of this I notice ACad users tend to make their blocks for graphic inserts (like trees) overly complicated, and they take an extraordinary long time to regenerate in DCad.

On one survey I was working with recently each tree was drawn on 3 layers (branches, leaves, more leaves) with hundreds of points. There were more than 6000 trees on the survey, and it took forever to regenerate EVERY TIME I attempted to move or edit. I fixed it by making  a new block (a pointmark) with the same name which overwrote the old one.

So, Doc, it seems to me they render much slower, so there really is no benefit in using them to keep the filesize down.

If I get sent DWG files that seem extraordinary large for their content, it is usually unused blocks in memory that are the culpret. 'Purge unused blocks' has reduced a 15mb file to 100kb.
If you find you have a drawing where the 'maximize/minimize/close' tabs in the top right corner are not displayed, purging the blocks will also fix that problem.

Dr PR

V20.0b7
Vista 64

I set up a quick block test. Two files were created, one with nothing but blocks and one with no blocks.

I created a test object composed of a green cube, red cylinder, blue pipe, black cone and white sphere, stacked with the cube on bottom and sphere on top. The cone was black material, the sphere was white material, and the others were default material.

In one file these objects were selected and defined as a block, with the original objects removed. In the other file these objects were grouped. In both files I made a 50 x 50 array (2500 copies) of the block or group.

I then tested the time to complete operations (all times in seconds):

                                                                                                Blocks            Groups
Fit to window (CTRL W) wireframe, nothing selected                           3.6                 3.4
Fit to window (CTRL W) wireframe, all selected in Point Select mode      3.5                 20.1
Gouraud shading with hardware acceleration                                      6.9                380.6
Phong shading with 2048x2048 shadows                                           490.4*            118.8/516.2**
File size                                                                                      962K            83,281K

* After Phong shading with blocks the program was dead for about eight minutes after shading finished. The cursor moved, but I couldn't open menus, select objects, draw, etc. This didn't happen after shading the groups only file. After about eight minutes the program started working OK again.

** Gouraud shading was performed first, and then Phong shading. I shut down the program, reloaded the groups file and then immediately did Phong shading with shadows. It took 16 seconds longer to do Phong immediately after opening the file as it did to do Gouraud first and then Phong. This effectively demonstrates that Gouraud is doing part of the work needed for Phong shading. Also, there isn't much difference between the total time for Phong shading (after Gouraud) between the two files (497.3/499.4) - except that the program doesn't seize up afterwards with the groups file.

****

If you use Gouraud shading, blocks can significantly reduce shading time. Likewise, if you work in Point Select mode blocks significantly reduce redraw time for selected objects. For most wireframe operations (rotate view, zoom, etc.) it seems to take about as much time in both files.

In both cases colors appeared to be correct.

The blocks file contained only 2500 blocks and no other entities (Help/Drawing Info). The groups file contained 337,500 grid entities and 12,500 planes. The groups file was 86.6 times as large as the blocks file.
DesignCAD user since 1987

Adrian 2.0

DCad V19.1 on vista 32.
for me the block issue is not in 3D or rendering, just basic regenerate function, and save. (when autosave buts in)
I am currently working on another survey - simple, small lot, not that many blocks. I decided to time it's performance.
This is the result.
(dwg size is 736kb)
                    imported with blocks         imported with exploded blocks
Initial import   50 seconds                      32 seconds
regenerate     20 seconds                      17 seconds
save             60 seconds                      50 seconds
re-open         22 seconds                      24 seconds

File info:
Filesize          1.67mb                            9.09mb
Arcs / circles  66                                  66
blocks           263                                0
curves          58                                  58
dims             14                                  14
hatch           21                                  22
line             283                               55,272
text            240                                 453
points         11,275                              271,853

The point is (sorry for the pun) what advantage do blocks have (apart from saving disc space / emailing) when they actually slow you down & prevent you editing whole chunks of drawing. They also produce hidden points (4 corners) way outside the block contents which I constantly select / jump to by mistake.

Lar,
I hadn't tried using symbols, I'll definately experiment now that someone has explained their function & advantages.

Lar

Symbols are mostly the same as blocks (has the 4 corner dots for example. This is the bounding box), except that block reside in the background and symbols reside on the hard drive. So with symbols the file itself is smaller but you are using more hard drive space BUT each file with blocks have their own iteration of blocks {that have no connection with the 'same' blocks in other files} so every file is using block space while there is only 1 symbol for however many files you have... so symbols definitely take up far less hard drive space.

For regenerting sake you can 'display blocks/symbols as box' by clicking the button with the red X in a white box on the scrollbar buttons or activate it in the View Tab of the Options dialogue box. You can also put the blocks on a dedicated layer (off) then put a temporary copy on an 'on' layer and explode it to have see the contents.

When I said the developers messed with multi-layered symbols they made it so that symbols on layers that were off were 'masked' by the background color and you would see (and print) a 'ghost' of the symbol on top of other entities. This may be fixed. I need to check it out.

Lar

Lar

Well what a bit of good news...for myself. I just checked out Symbols, multi-level flavor, and so far they don't display that masking problem that I mentioned in my post above. They appear to be in all their old glory.

Real cool!  8)

Lar

Dr PR

adriank,

Blocks have two advantages (that I can think of):

A. You can redefine a block:
  1. Select an instance of the block.
  2. Explode it.
  3. Edit the parts.
  4. Select the parts and redefine the block (create a block with the same name as the old block)

  Now all of the blocks in the drawing with that name automatically change.


B. Drawing size is reduced. Perhaps this has never been a problem for you, but ever since the first ProDesign precursor of DesignCAD I have always had files that were too large for the program or the computer. When a file reaches the oversize threshold DesignCAD becomes squirrely - commands stop working, or the program just locks up. Even if commands continue to work other things fail - like the "Zoom Previous" function, which stops remembering the previous view and just repeats a view far back in history. Sometimes the drawing starts rendering strangely (oddly colored facets in surfaces, or shadow-like borders around the edges of solids). Shutting down and restarting usually solves these problems for a while, but the larger the drawing is the sooner the problems reappear. Eventually you reach a file size where the problems appear immediately after the file is loaded.

For some reason DesignCAD is an incredible RAM hog. You need free RAM space about 10X the file size. On my 1 Gbyte XP machine the largest file I can edit is about 45 Mbytes. A 62 Mbyte file crashes the program instantly after loading. On my 4 Gbyte Vista machine the largest file I have successfully edited is about 350 Mbytes. A 470 Mbyte file locks up the program (V19.1 - haven't tested V20 yet).

So, just being able to shave a few megabytes off the file size may mean the difference between continuing to work on a drawing or waiting until you have a new machine with enough RAM.
DesignCAD user since 1987

Lar

Quote from: Dr PR on February 01, 2010, 11:19:58 PM
adriank,

Blocks have two advantages (that I can think of):

A. You can redefine a block:
...

You can also 'redefine' a symbol, by editing the source file. Only hitch is you have to close and reopen the host file to display the new look of the symbol because dcad holds a cached version in memory and there is no command to 'refresh symbols' (same as with bitmaps, etc.). You don't absolutely have to close and reopen right then but the new version won't display until you do. One other thing about blocks and symbols is when redefining you must have the handle in the same relative place as the original or the new version will be in a different location from the original. For blocks this is the Selection Handle (Sticky, if active) and for symbols this is the Drawing Handle.

As for blocks and memory I think only hard drive space is saved. Once the file is open blocks and symbols probably use up a little bit more RAM than original entities, if you enable 'snap to point in blocks/symbols' (Options menu> Preferences).

Lar

Dr PR

Lar,

Good point. I'll have to think up same way to test the amount of RAM used.
DesignCAD user since 1987

bdeck

Quote from: Lar on February 02, 2010, 11:40:47 AM
You can also 'redefine' a symbol, by editing the source file. Only hitch is you have to close and reopen the host file to display the new look of the symbol because dcad holds a cached version in memory and there is no command to 'refresh symbols' (same as with bitmaps, etc.).

Hi Lar,

What options do you set to get this behavior from DC?
I cant seem to get it to work. (version 17.2)

Thanks,
BD