VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ascii file Imortation problem

3 REPLIES 3
Reply
Message 1 of 4
kosi25
200 Views, 3 Replies

Ascii file Imortation problem

Hi all

I tried to import an ascii XYZ file into autocad using VBA, The file is very large containing around 82,00,000 points. After reading around 50,00,000 of data i am getting an Automation error client disconnected and cad environment is getting closed.

Pl. do help on this

--hari kishore
3 REPLIES 3
Message 2 of 4
caddie75
in reply to: kosi25

Hi Kosi,

What and how are you doing the import...
Are you creating objects directly, or making a record of the points...(ore a collection/array)

Maybe do a save every 10.000 point....and keep a log...next time continue where the log ended (from last save)..

Maybe You can post the code
Which AutoCAD version/System

A Caddie
Message 3 of 4
Anonymous
in reply to: kosi25

Hi,

Does it occur to you that AutoCAD cannot handle that much data?

A quick measurement I did indicated that AutoCAD uses approx 29.2Mb for 1Mb
of points

At 50Mb of Points you would be looking at a drawing size of about 1460Mb.

I initially limited my drawing to 1,050,000 points (31.3Mb) and at that
stage free memory as reported by the Status command was 979Mb, ie with only
1Gb RAM the computer would already be using the Windows swap file.

A single "Zoom Extents" reduced free memory to 776Mb

The drawing at this stage was already unpleasant in terms of response times
and crashed when I tried to copy all the points to make it 2,100,000 points
in the drawing.

After re-opening the drawing I added another 500,000 points and the drawing
size extended to 45.8Mb and free memory reduced from 976Mb to 779Mb. Based
on this information it appears I would run out of memory at about 3,500,000
million points and a drawing size somewhere about 110Mb.

To work with your data, you are going to need to filter is down
significantly.

If you have Civil 3D R2007, keep your eye on www.civil3DTools.com

We will be posting a program there some time in the next couple of weeks to
filter this type of data. The program passed from Alpha to Beta yesterday
and now needs to go through quality control testing before posting.

--

Laurie Comerford
CADApps
www.cadapps.com.au



wrote in message news:5252535@discussion.autodesk.com...
Hi all

I tried to import an ascii XYZ file into autocad using VBA, The file is very
large containing around 82,00,000 points. After reading around 50,00,000 of
data i am getting an Automation error client disconnected and cad
environment is getting closed.

Pl. do help on this

--hari kishore
Message 4 of 4
kosi25
in reply to: kosi25

Thank you all very much for the information. i will try to split the file and do the same

i would like to inform you that i havent used only one array
like
dim pt(0 to 2) as double
and called the xyz values into it.

and i am working on Intel xeon processor system with 2GB Ram.

--hari kishore

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost