It is very slow during I add an AcadTable (Rows 200, Cols 11) and fill it with some texts using VBA. Who can help me?
Solved! Go to Solution.
Solved by Alfred.NESWADBA. Go to Solution.
Solved by WideSky. Go to Solution.
Hi,
welcome @forums.autodesk.com!
>> It is very slow during I add an AcadTable [...] using VBA
First there is a special forum for AutoCAD and VBA >>>there<<<.
And for your current question: show your code (or make a small sample code that creates a table with dummy data ... upload that code and give us the info, how long it uses on your workstation and how long you think it's allowed to use?
Very important: let us know what version of AutoCAD you are working with and if it's 32bit or 64bit.
Otherwise others might see "it's fast, what's the problem" with their own code, and you think that is slow ... or your code can be modified to run faster ... or ... (lot more possibilities, but only with code, otherwise we are guessing the next year or two) 😉
- alfred -
Hi,
>> Now I am studying .net API. I want to try multi-thread to solve it
To make the step to dotNET is a good step as it does not have the 32bit limitation (for AutoCAD 2012).
Just as info: for 2014 and 2015 the VBA is based on version 7 and that has a real 64bit implementation (making access to AutoCAD 64bit faster).
Add "multi threading": AutoCAD itself is a single threaded application and that means that you can't access the drawing database multi-threaded (at least for write actions).
- alfred -