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.

Maximum size of an array

Started by Dempsey, May 18, 2012, 10:43:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dempsey

My pushapart macro aborts when I try to define an array with the Dim statement. I am almost sure that I am over the 32,767 limit.

Is there a way to use arrays large then 2^15-1?
Dempsey

dcadRob

You can define multiple arrays and split the data across them. The maximum for all combined arrays is 200,000 elements.

Or you can open a random access file ( OPEN "R") and write your data into it.

Dempsey

I was also considering using multiple arrays, but it is a coding PITA.

Thanks for that combined maximum of 200,000 elements; I did not know that.
Dempsey

dcadRob

#3
I dimmed an array with 180,000 elements. I think that your problems may be due to total memory available. I also noticed that after I crashed DC, I couldn't dim even small arrays.

Later:
I just looked at your macros.
In 'pushapart' you are dimming 7 arrays so your max size is about 28000 entities.
In 'pushapart2' you are dimming 5 arrays so your max size is about 40000 entities.