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.

Group problems V18.0

Started by Dr PR, October 01, 2007, 01:27:07 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dr PR

Groups are really messed up in V18.0 (and V17.2). Often for no apparent reason two or more groups are "joined" and individual objects are added to totally unrelated groups. Here are a few tips for unscrambling groups.

1. Can't select an item. Something - usually a solid or group - appears on the screen but you can't select it. Open Options/Layers and unlock all layers. Now you can select the object. CAUTION: when this happens the object has become grouped with objects on other hidden layers.

2. Object is grouped with hidden objects. A telltale of this problem is to use CTRL W (View/Fit to window). If the object appears at the edge of an otherwise blank window, it is grouped with another object(s) on a hidden layer(s). Note: if the object is just one of many things on the layer the view may appear normal.

3. Move object/group to another temporary layer. Select the suspect object and open the Info Box (CTRL I). Change the layer to an empty layer. Be sure it is empty before moving the suspect object. Use Options/Layers (L) to make the new layer the current layer, and then Hide All other layers. Use CTRL W to view everything on the layer. The suspect object and everything else it is grouped with will be visible.

4. Explode the group. Select the target object - all items on the layer will be selected. Use Tools/Recursive Group Explode to break up the group.

5. Regroup all objects. Select the parts that should be grouped together and use Tools/Group Define to reestablish the group. Repeat for all other groups on the layer. CAUTION: check to be sure all pieces of each group are visible. I am not certain, but it appears that when this bug joins multiple groups not all pieces of each group may be joined in the same group. The results can be very strange.

6. Move to desired layer. Select each group and use the Info Box (CTRL I) to move them back to the layers where they are supposed to be. Do this with the target layers invisible so it is clear that the object/groups are moved from the temporary layer. They should disappear after they are moved. Also check to be sure none of the other object/groups disappear when they aren't supposed to. Sometimes when you regroup an object additional things are randomly included with it.

7. Is layer empty? After moving everything out of the temporary layer, use View/Fit to Window (CTRL W) to see if anything is still visible in the layer. The window should be empty. Open Options/Layers and look to see if there is an asterisk to the left of the layer number. This indicates that the layer is not empty. If the asterisk is there and nothing is visible in the window, use the Delete Layer button to clear the layer. Note: I have done this hundreds of times and nothing in the drawing has disappeared when I delete an unempty empty layer. However, just for sanity's sake, save the drawing before deleting the layer.

8. Check the results. Open each layer where you moved objects and lock and hide all other layers. Check to see if you can select each object in the layer (at least the groups you just worked with). If any object cannot be selected go to 3 and start over.

9. Check the entire drawing. It might be worthwhile to open each layer with all other layers locked and hidden, and check to see if you can select everything in that layer. Note: if you have deliberately created groups including objects on multiple layers you will have to unlock and make visible all approprite layers to be able to select these groups. If there is anything you cannot select, go to 3.

****

Once group scrambling has happened in a drawing you may never be able to straighten things out in V17 or V18. Occasionally during the step 5 regrouping process the newly created group will be linked to still other groups on hidden layers that were not a part of the original mess. So the newly "repaired" group is corrupt again, and now it includes groups that were formerly OK! I have found dozens of scrambled groups in a drawing, and created several more while trying to straighten out the mess.

The ultimate solution is to save the drawing in a version earlier than V17. I haven't used V16 because of the text screwup bug, so I am not sure if it is OK, but I think the group bug was introduced in V17 with nested groups (something I have requested for years - be careful what you ask for). I use V15.3 - it is the most reliable version of DesignCAD. Open the file in V15.3 and repeat all the steps above. The virtue of this is that V15.3 will not create new scrambled groups while you are in the process of repairing them.

One last warning: in V17 and V18 DesignCAD may generate a file that cannot be edited - in any version. You can open the file but if you try to edit parts of the drawing the program crashes. This appears to be a consequence of these scrambled groups and unempty empty layers, but I am not certain. For me it has always happened just after I have created groups, but this may be coincidental. However, you can delete objects from the drawing without crashing the program. If you carefully work your way back through the sequence in which you created objects (if you can remember it) deleting the last created object and then saving the file, you may eventually get to a point the file can be edited again.

For me, all new versions of DesignCAD will be useless until this bug is fixed.
DesignCAD user since 1987

prl

Quote from: Dr PR on October 01, 2007, 01:27:07 PM
Groups are really messed up in V18.0 (and V17.2). Often for no apparent reason two or more groups are "joined" and individual objects are added to totally unrelated groups. Here are a few tips for unscrambling groups.

Unfortunately true.  First and foremost, I don't use versions 16 or 18.  With version 17.2 I'm very cautious.  Only use old fashion groups.  Never name and never nest.  Also I run the below code very often.  Ever since version 16, a new entity type was created.  It is supposed to enable nested groups but when things go wrong, it pollutes and corrupts things.  The code is by Dt.


'k34.d3m
' Finds entities of type 34 and deletes them

Sys(80) = 0
For i = sys(9) to 1 Step -1
  Entity i
  if Sys(90) = 34 Then
    PutAttr i, 34, 1
    count = count + 1
  End If
Next i

If count > 0 Then
  >Erase
  {
  }
End If

sys(1) = 0
Message count, "Group entities found and deleted."
End

prl

#2
Quote from: Dr PR on October 01, 2007, 01:27:07 PM
I use V15.3 - it is the most reliable version of DesignCAD.

I generally agree here and it is the version I still rely on. Note, however, that even simple groups have been a persistent problem in DesignCAD. Versions 16 and later have probably simply added new woes.

Regarding version 15, here's a link that discusses another users troubles when DesignCAD started randomly combining new groups with other entities.  It all stems from the group index method DesignCAD uses.

http://forums.upperspace.com/topic.asp?TOPIC_ID=2627

I've learned that if your drawing has a group index number higher than 16383, DesignCAD v15.3 will start corrupting the drawing each time you create a new group.  Knowing the damage this can do to your work, I check my group index number often using the below code:

'Program: gc.d3m (group count)

'Gather groupid numbers, display group count and largest used index value
'also saved as gcount.d3m

Dim grouplist(10000)

gcount = 0
maxgroup = 0

print "working . . ."
for j = 1 to sys(9)
  existflag = 0
  getattr j, type ,select, laynum, groupid, red, green, blue, solidid

  if groupid > 0 then
     
     if groupid > maxgroup then
        maxgroup = groupid
     endif
         
     for jj = 1 to gcount
       if groupid = grouplist(jj) then
         existflag = 1
         exit for
       endif     
     next jj
     
     if existflag = 0 then
        gcount = gcount + 1
        grouplist(gcount) = groupid
     endif
  endif
next j

regen
precision 0

Message "Total group count is: ",gcount,chr$(13),chr$(13),"Maximum group id is :", maxgroup
end




Dr PR

Thanks a bunch!

I was a bit overly optimistic about using V15.2. Last night the same problems started happening in the V15 version of the file running in V15.3. I just hadn't seen it before in V15 - or at least I wasn't aware of the problem. However, I did see it in another huge file with a lot of groups in V17.2.

The discussions in the earlier forum explain the problem nicely. The file I have been working on contains an entire earlier drawing from about four years ago, and that was created from a still earlier drawing, and that from one earlier still ... Who knows how long the group index has been increasing? I finally pushed it over the limit.

I'll try the copy to new file trick and see what that does to the group index.
DesignCAD user since 1987

prl

Quote from: Dr PR on October 02, 2007, 03:14:21 PM
Thanks a bunch!

You're welcome.  I got a bit down looking at how long ago we talked about this.  Also looks like several expert users aren't as addicted to DesignCAD anymore, Lar, etc.  Can't really blame them, smart really, just wonder how they got this DesignCAD monkey off their back.

dcadRob

This has nothing to do with groups but since you went in this direction prl ...

Quote... looks like several expert users aren't as addicted to DesignCAD anymore, Lar, etc.  Can't really blame them, smart really, just wonder how they got this DesignCAD monkey off their back.

I think that they just got a dose of anti-DC cream (aka anti-frustration cream). That's made up of these ingredients:

-Lack of vision from IMSIDesign about where to take DC
-Understaffed development team
-BasicCAD and OLE lagging behind new features
-Irritating bugs which persist for years
-Upgrades which don't add much

A year ago, we discussed some very good features that could go into V18. In spite of all that time, not much made it into the final release. V18 feels like it is in the 'just throw in something so that they will pay for an upgrade' part of the product lifecycle. The way things are going, I expect to see DC in the $9.99 bin soon.

Why am I still on this forum? Old habits die hard. I need to stay away for 21 days to kick the habit. I think  that's possible. Maybe next year I'll check out V19 or maybe not.

Dr PR

For those new to this problem, here is a summary. DesignCAD assigns a group ID number to each new group as it is created. When it does it saves the new number as "max group ID." The next group created will get a group ID number = max group ID + 1. This process continues until max group ID overflows, exceeding a "scramble threshold." After this, when new groups are created they are added to existing groups. Apparently this problem has existed for years, but nothing has been done to fix it.

First, I did use prl's gc.d3m group count macro on the problem file:

group count = 151
max group ID = 16505

Then I used Lar's cleanup procedure described in the earlier Forum post:

"In the original file select a single Non-Grouped entity... Go to Save As, activate "Save Selection Only" button and save under a new name... Open the new file. It will have all the layer names and other configurations of the first file. DEFINE THE SINGLE ENTITY AS A GROUP. The group index will be at 1... Go back to the first file and select everything except the entity you saved. Set a Selection Handle somewhere on that entity and Copy to the clipboard (Ctrl+C)... Go to the second file and Paste (Ctrl+V), snapping to the same point on the Single-Entity Group. After the Pasting is completed run The Troll's macro, the count will be 1 plus the number of groups in the file rather than the higher index the system would have used if the new file contained no Groups before Pasting... You can then Un-Group the Single Entity Group and Delete the original file, if you want to. I would keep it a bit longer for backup."

Then I ran gc.d3m on the new file:

group count = 151
max group ID = 303

It worked. I have no idea why the max group ID is 303, but I do know that I haven't weeded out all of the scrambled groups. Now the max group ID is well below the scramble threshold which is apparently 2^14 (16384). Apparently the group ID is incremented beyond 2^14 but some part(s) of the program don't handle bits 15 and 16 correctly - that's a guess.

Now I just need to run the procedure on the remaining several hundred drawings in my current project, and thousands of others in my drawings list. I am pissed, and I think rightfully so.

Second, I am not as pessimistic as dcadRob. Quite a lot of new features have been added to DesignCAD since V15. Unfortunately, some of them don't work correctly, and in many cases this may be due to many lingering loose ends from earlier versions that have not been fixed.

To list a few of the new features since V15 that I find very useful:

1. You can now set the number of points in a circle/arc that is saved as lines.
2. They tried to implement nested groups, a feature I requested. When it works correctly this will be extremely useful.
3. They are implementing shadows in 3D rendering. I requested this and it does make visualization of some objects much better.
4. It appears that boolean functions with solids are much more reliable in V17/18 (fewer extraneous facets).

I suspect there are even more new features that I am unaware of. Unfortunately, we have to discover these new features by accident. I fault IMSI for not giving us a list of bugs fixed and new features with each release, like they used to do.

I do find it very frustrating to discover there are known problems that have existed for years, such as the group/solid index problem described above and the effects upon subsequent operations caused by the order in which points are placed when lines and curves are created, and that IMSI keeps these secret, giving us no warning about how to avoid known problems. However, I know of no large program that doesn't have similar problems. I have used P-CAD since it first appeared. It has bugs that have existed for about 15 years and Accel has made no attempt to fix them. Protel and OrCRUD are far worse. If you want to see horrible program design just look at Office 2007! It just keeps getting worse.

So, by and large, DesignCAD isn't all that bad. Let's just keep helping them find the bugs and encourage them to fix them. Otherwise, we will all have to write our own software. I've been there, writing my own operating system and then one of the first video oriented word processors, because no "off the shelf" software was available at the time. I could write my own CAD programs, but that isn't what I want to do. So I use DesignCAD and I am thankful every day that it does what it does, imperfect though it may be. But I still get pissed occasionally.
DesignCAD user since 1987

Dr PR

prl/DT

What does the k34.d3m macro really do? Does it delete associated groups (or any other drawing entity)? Does it just explode nested groups leaving the associated groups intact? Does it explode nested groups and all included groups into the component elements?

I don't want to use it if it deletes any basic drawing elements (lines, solids, etc.). That could destroy months of work.
DesignCAD user since 1987

prl

#8
Quote from: Dr PR on October 03, 2007, 11:45:57 AM
What does the k34.d3m macro really do?

As far as I know, it only removes nested groups and removes the attribute (entity 34) they pepper throughout the drawing to enable that nesting.  I think it is some sort of hidden text attribute that for some reason actually resides on a layer rather than being a pure database field.

Old type indexed groups remain unaffected by this program as far as I can tell. However, given this is DesignCAD, you should experiment on some samples first.


Edit: I should clarify, k34.d3m deletes the nested grouping tag, not the entities that make up the group.

SciGraphics

Am I the only one who like V18? So far the only problem I've had is the "moving bitmap paradox". It may be because I rarely use 3D (most of my clients are geologists with very complex site maps and cut renderings). I've been using DCad since it was ProDesign 0 and fit the entire program including help and samples on one 360K floppy. Am I crazy of just lucky?

i rmn & etc.. Jim A.

Rob S


I like what V18 promises to become, and still have great hopes for it, but I still don't like it well enough to use it daily due to certain Dimension issues.

1) Import export is much improved, for layouts and dimensions.

2) Dimensions don't have to be flipped in to out when stretching or rescaling objects

3) IMSI is actively working to fix the remaining dimension issues

4) Performance on most things seems better than ever

5) For those who care, they tried to make it Vista compatible - not perfect yet

6) Paper space mode performance is better

7) Pre-set scales are handy

I still believe that Kevan and Gerry are more responsive to user feedback than other software vendors and try very hard to fix what we ask for.

User since forever

Lar

Quote from: prl on October 02, 2007, 06:15:01 PM
Also looks like several expert users aren't as addicted to DesignCAD anymore, Lar, etc.  Can't really blame them, smart really, just wonder how they got this DesignCAD monkey off their back.


Still looking in on y'all good folk of the dcad forum, prl, though quietly.

Can't afford to spend the effort I use to anymore. The way I see it, the unwritten contract was broken. My part of the deal was to assist and be assisted by other users of the forum. IMSI-Design's part of the deal was to listen and respond to our needs. Our loudest cry was to fix the longterm broken or weak stuff before introducing new-&-broken stuff. V18 did not address Paperspace, Layer management, Multiline text, etc. It introduced dimension export to acad, but introduced further problems with dcad's dimensions in the process. All my old drawings were being affected so I had no choice but to not use v18.

I still use dcad as my main CAD package. You still can't beat it for the Big-4: Accuracy, Viewing, Snapping and BasicCAD.

Looking back on your link brought back a lot of fond memories. Dem was de days!! You guys are still the greatest. I noticed Dr PR has taken up the slack where I left off but he seems a bit more tenacious than I was, or more accurately, have grown to become.

Lar 8) :-*

PS: By the way, how's crackerjack doing. Haven't noticed him being too active lately.


support

We are working on a patch for DCAD 18 it is as normal taking longer than expected, with all the reported issues.

Dr PR

prl,

Thanks for the k34.d3m info. I'll try some test cases and see what side effects I can find. I'll also try to determine why the max group ID was about double the expected number. I know that file still has scrambled groups in it, so maybe that has something to do with it.

Like others who have commented here, debugging DesignCAD really isn't why I use the program, and it does get tiresome. I have been doing this for years (about 20) by phone, letters and then email to the DC tech support folks, but recently I stopped getting responses from the old email address. That's when I "discovered" the forum.
DesignCAD user since 1987

Dr PR

prl,

I cut and pasted the code, so I didn't introduce a typo (it wouldn't be the first time!).

Also, on simple test cases where I have carefully created a known number of groups the macro reports the correct number.

Just think, some people waste a lot of time reading mystery novels when they could be debugging software!
DesignCAD user since 1987