Author Topic: Know your DesignCAD and BasicCAD limits  (Read 2975 times)

Dempsey

  • Hero Member
  • *****
  • Posts: 1914
  • Intel i7-960, 12GB, NVidiaGTX570, Win7x64, DC26.2
    • World of van Vliet
Know your DesignCAD and BasicCAD limits
« on: November 21, 2012, 06:35:49 PM »
An attempt is made here to list all known limits both in DesignCAD itself as well as in BasicCAD macro language. Mind you, these limits are extracted from other topics and documentation and are not mine. Other contributions are welcome and I will add those also to this list for easy access. Thank you all for the contributions.

DesignCAD Limits
(xx.x) indicates applicable to specific version.
ItemLimits
Maximum layers (up to V21.x)255
Maximum layers (V22.0 and later)2,000
Maximum String Size 255 characters, but includes font information. Hence for practical purposes a limit of 240 characters.
Maximum Solid ID4,294,967,276 (i.e. 2^32 - 20)
Maximum Group ID (15.3)65,535 (i.e. 2^16 - 1); but actual limit is 16384  (i.e. 2^14)
Maximum Group ID (17.2-18.3)65,535 (i.e. 2^16 - 1)
Maximum Group ID (19.x and later)4,294,967,276 (i.e. 2^32 - 20)
Maximum Points in a Grid65,536 (i.e. 2^16)
Maximum Points per Entity5000
Maximum commands/icons per toolbox48
Maximum nr. of tickmarks100
Surface Patch
- Maximum grid points199
- Maximum grid lines199
Surface Connect
- Maximum planes per template line198
- Maximum template linesreported as high as 350 ( 350 x 198, i.e. 69,300 grid-planes or larger than 2^16 which is 65,536)
- Maximum Intermediate Breaks198
- decreases as planes per template line increases; down to 66 with 198 planes per template line
- decreases as number of template lines increases; down to 0 with 198 planes per template line and 200 template lines

BasicCAD Macro Limits
  • Maximum Program Size: Depends on available memory - up to 30,000 lines. Blank lines and lines containing only comments do not count.
  • Maximum Array Size: Depends on available memory - up to 200,000 elements (total of all arrays).
  • Maximum Number of Array Dimensions: 1
  • Maximum Number of Symbols: 200,000. Symbols include Labels and Variables. Each element of an array counts as one symbol.
  • Maximum String Size: 255 characters.
  • Maximum Nesting for Group IF: 30.
  • Maximum Nesting for FOR-NEXT: 30.
  • Maximum Nesting for DO-LOOP: 30.
  • Maximum Nesting for GOSUB: 30.
  • Maximum Number of Strings: Depends on available memory - up to 30,000 strings.
« Last Edit: May 03, 2016, 06:20:46 PM by Dempsey »
Dempsey

Dr PR

  • Hero Member
  • *****
  • Posts: 5588
Re: Know your DesignCAD and BasicCAD limits
« Reply #1 on: November 21, 2012, 08:04:32 PM »
Dempsey,

In this post DT said Max Group ID was 2^32-20. That is 4,294,967,276. V18.3 beta 5, 12 Aug 2008.

http://forum.designcadcommunity.com/index.php?topic=1527.msg7892#msg7892

For some reason when I read your post I see 4,294,967.276 - 4.2 million and not 4.2 billion.

I remember DT said somewhere that Maximum Solid ID has been upped to the same number - I can't find the link.

I salute you for starting this thread - it is much needed information!

Phil
« Last Edit: November 21, 2012, 08:08:35 PM by Dr PR »
DesignCAD user since 1987

Dempsey

  • Hero Member
  • *****
  • Posts: 1914
  • Intel i7-960, 12GB, NVidiaGTX570, Win7x64, DC26.2
    • World of van Vliet
Re: Know your DesignCAD and BasicCAD limits
« Reply #2 on: November 21, 2012, 08:23:05 PM »
Phil,

At my age all comma's and dots look the same  ;D

I fixed it. Thanks.
Dempsey

Dr PR

  • Hero Member
  • *****
  • Posts: 5588
Re: Know your DesignCAD and BasicCAD limits
« Reply #3 on: November 21, 2012, 09:14:31 PM »
Dempsey,

The maximum number of planes per line for the "Surface Connect" function is 198. That was all the program would let me make - a dialog popped up saying that was the maximum number in V20.0.

However, as you increase the number of template lines the number of planes per line decreases.

As you increase the number of template lines the maximum number of "Intermediate Breaks" decreases - a dialog box pops up prompting you for a smaller number. At 200 lines with 198 planes per line the number of intermediate breaks drops to 0 (200 x 198 = 39,600).

I created a grid with 350 lines, 0 breaks, and 198 planes per line (350 x 198 = 69,300). The file does save and load again with the grid intact.

This is larger than 2^16 (65,536) elements, which is what I previously thought was the limit, so I don't know what the current limit is.

Phil
DesignCAD user since 1987

prl

  • Hero Member
  • *****
  • Posts: 3389
  • A Bézier Extrusion
Re: Know your DesignCAD and BasicCAD limits
« Reply #4 on: November 22, 2012, 04:18:37 AM »
Dempsey - may I suggest a DC version column.  Posting the latest isn't going to help someone who may be a version or two behind or uses a mix of DC versions.  Regarding groups, I came to the following when I accidentally put a -1 in the puttattr statement for the groupid.  Sample partial code attached for those that wish to do this on their own.

Group limits:
version 15.3 - 65,535  (actual limit is 16384  - 2^14)
version 17.2 - 65,535  (2^16 - 1)
version 18.3 - 65,535  (2^16 - 1)
version 19.0 - 4,294,967,295 (2^32 - 1)
version 22.0 - 4,294,967,295 (2^32 - 1)

Code: [Select]
.
.
.
getselect 1, ent

precision 0
getattr ent, type, select, laynum, grouporig, rc, gc, bc
putattr ent, type, select, laynum, -1, rc, gc, bc

getattr ent, type, select, laynum, grouporig, rc, gc, bc

Message "Group id number: ", grouporig
.
.
.


Dempsey

  • Hero Member
  • *****
  • Posts: 1914
  • Intel i7-960, 12GB, NVidiaGTX570, Win7x64, DC26.2
    • World of van Vliet
Re: Know your DesignCAD and BasicCAD limits
« Reply #5 on: November 22, 2012, 03:43:42 PM »
prl,

Thanks for sorting that out.

What worries me is that when the group ID maximum was increased DT mentioned  the limit being 2^32 - 20, and that was during the beta testing of V18.3 which was never released as far as I know.
Dempsey

JJG

  • Hero Member
  • *****
  • Posts: 735
Re: Know your DesignCAD and BasicCAD limits
« Reply #6 on: November 22, 2012, 09:25:19 PM »
Dempsey,

I think the V18.3 "serie" has been released, because for us, french peoples, the french version designcad pro 7000 is a v18.3x (mine is v18.35), very similar with US v19, indeed, but we become it about 4 - 5 months before v19 was released.

Dempsey

  • Hero Member
  • *****
  • Posts: 1914
  • Intel i7-960, 12GB, NVidiaGTX570, Win7x64, DC26.2
    • World of van Vliet
Re: Know your DesignCAD and BasicCAD limits
« Reply #7 on: July 22, 2014, 08:01:11 PM »
Lar confirmed yet another DesignCAD limit (http://forum.designcadcommunity.com/index.php?topic=5742.msg40267#msg40267), i.e. Maximum commands/icons per toolbox being 48.

I updated the opening topic accordingly.

Dempsey

Rob S

  • Hero Member
  • *****
  • Posts: 4522
    • Construction Estimating Program for General Contractors
Re: Know your DesignCAD and BasicCAD limits
« Reply #8 on: February 28, 2018, 03:51:42 PM »
None of this gives us any limits on number of points, entities, or filesize limits for a drawing.

With very large files, I think it depends mostly on the limits of you patience, if you accidentally click something that causes a redraw, you need to take a long nap, and come back and see what is happening.
« Last Edit: February 28, 2018, 04:08:52 PM by Rob S »
User since Pro-design

Lar

  • Hero Member
  • *****
  • Posts: 2780
Re: Know your DesignCAD and BasicCAD limits
« Reply #9 on: March 01, 2018, 07:41:01 AM »

I moved this post to Tips and Tricks ( http://forum.designcadcommunity.com/index.php?topic=7065.new#new)


Lar


 




« Last Edit: March 01, 2018, 08:24:52 AM by Lar »