News:

Please note new Forum URL: forum.designcad.com

Main Menu
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.

D CAD Controlling Itself?

Started by skyline, November 15, 2008, 11:43:47 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

skyline

Thanks prl I'll scrap that idea then. Maybe I should go back to my old DesignCAD 3000, that worked a dream.

Dean - just to answer you too - scrolling refreshes the screen and makes the colours change (the wrong way) the same as using the refresh button. I tried the off screen bitmap enable/disable i.e. I disabled it but nothing changed. Assume thats what you meant.

Skyline


Rob S

Skyline

If it's the grouping problem then exploding them doesn't help, because the max group index id remains, and new groups are added on top.

If you become a beta tester, you can get the 18.3 beta, and try that.  It is quite stable, and the max group id allowed has been increased.

This may make your drawing useable.

I thought there was also something where you can copy and paste the contents of your drawing into a new one, and then the group indexes are reset - maybe someone can confirm.

What PRL is talking about - version 18 isn't suitable for use - I hope applies to the issue of changing the layer of groups which are created on layers other than the layer of their parts.  There are issues with that for sure.  Otherwise I think V18 is very useable, and now I'm going to duck behind a big concrete wall  ;D
User since forever

skyline

You are right. I exploded everything and no change (to my problem anyway). I did try to just copy the whole drawing by selecting everything and pasting into a new file but the problem went with it. I guess this is not quite what you meant?

Rob S

#18
That is in fact what I meant, however, I wasn't sure it would work.  I think the procedure to make it work is described here

http://forum.designcad.com/index.php?topic=773.msg3603#msg3603

You could also try to save to a much older version, before there was such a thing as groups, and import back, or export to dxf (no groups there) and import back.

You might lose the odd thing, but better than starting over.  V18 now keeps dimensions as dimensions on the import/export, instead of lines and text.

I also thought someone had posted a macro on this site to reset or purge group id numbers, you could try a search.  See above linked topic.
User since forever

prl

Skyline - if you need you can e-mail me and then send me your drawing.  I've developed some code that will strip all new named groups and also compact the old type groups ids so if you only have 178 groups, the maximum group id is 178.  It will maintain the old groups in tact provided their individual ids do not exceed the maximum limits.  In essence, I create a compacted version 15 drawing file.


skyline

Thanks for the pointer to the old posting about the groups Rob. I am convinced this is the heart of the problem. Absolutely fascinating article to a non-programmer.

I think we are starting to cook on gas. I exported the file as a.dxf and then imported again. All of the previous destructive symptoms seem to have disappeared. I checked over the drawing and I cant find anything missing either. Of course I lost the layering but I can sort that and I can live with the loss of the groupings. Anything seems a god send after facing starting all over again on a drawing you have been working on for 3 years! Do you know if I should be looking for any other problems which may have occurred as a result of the export/import?

So my question now is - has this simple operation reset my group ID count to zero or am I expecting this problem to start again very soon? I would like to run the code listed on the forum just to see and confirm this was the root cause but to be honest I do not know where to start. How do you do this? I could also run it on the newly imported file and compare the counts.

There is only one thing that this whole explanation would not explain. Why did the damn thing run on my laptop? Hey ho - maybe there are questions in life we will never find the answers to.

With regards to being an 18.3 Beta tester I think I would be up for it if it may solve the dwg import issues and also this grouping one. But looking at the discussion on this forum it looks like its a dead duck?

Skyline

prl

Quote from: Rob Schippers on November 19, 2008, 12:16:06 PM
What PRL is talking about - version 18 isn't suitable for use - I hope applies to the issue of changing the layer of groups which are created on layers other than the layer of their parts.

My short list of why version 18 isn't a usable release.

1.  Groups code is becoming more and more unstable and since I use groups heavily in a mix of 2d and 3d drawings, this is a show-stopper.

2.  3d solid add/subtract operations in version 18 creates solids that exist on several layers?  Add two solids and you have a multilayer single solid.  I'm not in the mood to untangle my 3d models.

3.  dwg/dxf import export with the dimensions doesn't work cleanly for me.  For me, it creates more formatting problems in the destination dwg file than the simply exported lines and text method.  Could be useful if the DesignCAD formatting was properly calibrated into an equivalent visual AutoCAD dimension style, but the last time I looked, this wasn't the case.  Having to clean up the dwg in AutoCAD before you give it to someone defeats the benefit for me.

4.  Nothing new in basiccad.


paulerens

#22
   About problems with groups.
I also have this problem because I have needed a mass groups to.
knowing that it is impossible,  a group number to give.
and dgcad always numbered without taking into account Exploded groups
I now do next.
Suppose that we have distributed a drawing in 15 layers
and forming a group from layer 16 to layer 30
now sign a new element in layer 1 or 2 to 15
Select the group and send 15 layers below
C = Sys (80)
For j = 1 To C
GetSelect j, i
Entity i
Getattr i, type, select, laynum, group
   laynum = laynum -15
   Putattr i, type, select, laynum, group
Next j
>Deselect
{
}
> Select Layer
{

  <Layer 1
  <Layer 2
  <Layer 3
  <Layer 4
  <Layer 5
  <Layer 6
  <Layer 7
  <Layer 8
  <Layer 9
  <Layer 10
  <Layer 11
  <Layer 12
  <Layer 13
  <Layer 14
  <Layer 15
  }

  for i = 1 to sys (80)
   getselect i, j
    GETATTR j, type, select, laynum, group
If group> 0 Then
Num = group
End If
If group = 0 Then
Group = num
End If
laynum = laynum + 15
Putattr j, type, select, laynum, group
Next j
End
The group number is always the same

prl

I'll look into paulerens post to see if he found a trick to solve the group problem, but here is a simple example of the group index defect.

Say you have a drawing and it has three groups in it. DesignCAD does not pack index numbers so they could have index numbers 34, 156, and 2560.

When you load this drawing, DesignCAD also stores a max group index number.  In this case it will be 2560.

Now consider the following user actions.

1.  The user draws some new things and groups them.  The new group will become 2561.  The max group index number becomes 2561.

2.  The user selects this new group and deletes it.  The max group index number stays at 2561.

3.  The user selects the entities that are grouped with the 2560 index and deletes them.  The hightest group index in the drawing is now 156 but the max group index number stays at 2561. 

4.  The user next draws more things and groups them.  The new group will become 2562.  The max group index number becomes 2562.

5.  The user uses a symbol he stored previously.  The symbol has an embedded group index number of 16000.  Upon loading this into the current drawing, the symbol retains its high group index number.  The new max group number for the drawing is 16000. 

6.  The user selects the last symbol and deletes it.  The max group index number stays at 16000.

7.  The user selects the entire drawing and deletes everything.  There are no more groups or anything else in the drawing. The user draws two lines and groups them.  The group gets an index number of 16001 even though it is the only group in the drawing.

As you can see, you will soon top out and at that point DesignCAD starts to randomly attach non group entities to newly grouped entities. The max group index number for that drawing will not reset itself until you close down DesignCAD.

paulerens

   PRL correct !!

This is only a solution to the group numbers not to grow too fast.
you can, with this, add parts to a group or take off part.
while maintaining the same number.

at least it is this.

Paul

skyline

PRL - you also may be hitting the spot with my drawing. As I said before, this seemed to start happening just after importing a symbol from the symbol library after which I got a fleeting error message. I deleted the symbol but got stuck with these problems. As you say, it is a total show stopper if you need to use groups a lot.

I did not understand one thing - you say the max group number will not reset until you close DCAD. Are you saying that provided you deleted the symbol with the number 16000 then the max group number would reduce back down to whatever the highest number is that's left in your drawing? If so my symbol (which I deleted again) would have been wiped from the system and I should have been back to square one i.e. functioning correctly?

Skyline

prl

#26
Quote from: skyline on November 20, 2008, 09:31:07 AM
I did not understand one thing - you say the max group number will not reset until you close DCAD. Are you saying that provided you deleted the symbol with the number 16000 then the max group number would reduce back down to whatever the highest number is that's left in your drawing?

Not exactly.  If you deleted the symbol with 16000, saved the drawing, and then completely closed DesignCAD (not just the drawing), and then opened up the drawing again, and now created a new group, it would be at the next number above your highest group number.  So if you had groups with 34, 156, and 2560 as index numbers, the next new group would be 2561.

If you don't shut down DesignCAD completely and you created a new group, even though you only have groups with 34, 156, and 2560 in your drawing, the next group would get 16001 as the index because the max group index counter never clears itself. 

Rick V.

prl,

So, is this group problem an easy thing for the programmers to fix?

I would use groups a heck of a lot more if I wasn't worried about them nuking my drawings. This is huge to me.

DrollTroll

The problem (which has been around for several versions now) is that in one place the maximum number of groups allowed was one thing, and in another obscure place it was another, smaller value. Generally the problem only occurs when you explode a group -- any remaining groups that have a higher group id than the smaller maximum may get combined unexpectedly with lower-numbered groups, if present.

The two numbers have both been raised to the same Very Large Number in version 19. Since they are now the same, the uwanted group-combination should no longer occur after exploding a group.

It's not something most users will ever see (hence the long time to figure it out).
25 years with DesignCAD

prl

#29
Keep in mind this whole discussion talks about the old grouping method, the method that existed in version 15 and before.  This method still exists in version 16, 17, and 18 but there is also a new method for nesting groups that is also in trouble.

I would think to fix the old method, it shouldn't take the programmers more than 20 minutes tops.  Basically every time the DesignCAD drawing database is scanned (which is all the time), the max group counter should be adjusted to the highest group number contained in the drawing.  But I would also like to see them pack the index numbers.  Why have such big gaps?  If you have three groups, they should be 1, 2, and 3 not 3, 156, 4026.  And even if they don't want to pack the numbers, when a new group is created it should use the first available low number not in use.

Now for nested and named groups, they should start over.  I can't imagine anyone actually using the current implementation.