Hi All,
We have a vba module which generates drawings which consists of data in tables. We have used AcadTable object to add tables and update the cells. The VBA module is working fine in windows XP with AutoCAD Electrical 2011 but in Windows 7 64-bit it is taking more time and even sometimes not generating all the drawings. I have even used RegenerateTableSuppressed True before setting text in cells of the table and RegenerateTableSuppressed False after updating the table. Please let me know how i can resolve this issue. Thanks in advance.
Best Regards
Chaitanyag
Hello, Chaitanyag
Would you please help to attach some sample script for us to reproduce your issue? and also it is better to attach a screenshot to show the issue, then we can help.
And please confirm you are using the ACE2011 SP2.
Thanks,
Robin Shou
Quality Assurance
AutoCAD Electrical
Autodesk, Inc.
Hello, Robin Shou
The following is some of piece of code
Dim TabObject As AcadTable
Dim someInsPoint(2) As Double
Dim i,i1 As Long
Dim valStr As String
set TabObject = ThisDrawing.ModelSpace.AddTable(someInsPoint, numberofrows, numberofcolumns , 0.2, 0.5)
TabObject .RegenerateTableSuppressed = True
For i = LBound(someArray) To UBound(someArray)
TabObject .SetText i + 2, 0, someArray(i)
TabObject .SetRowHeight i+ 2, 0.05
TabObject .SetTextHeight i+ 2, 0.05
Next
For i1 = LBound(someArray) To UBound(someArray)
'Reading database
'
'
'
'stringval is the value read from a database
TabObject .SetText i1 + 2, somecolumn, stringval
Next
TabObject .RegenerateTableSuppressed = False
The same code is working finewith windows XP which is taking around x minutes for completion where as the same in windows 7 64- bit is taking around 6x - 7x minutes.
I have installed Update 1 and Update 2, but still the time taken is same. Please let me know any other patches to be installed.
Thanks for your reply.
Best Regards
Chaitanya
Hi Chaitanya,
With your piece of code, i can't see anything related to the performance.
Can you provide the whole DVB file and then we can look into it. And also if the file can only run in your Project, then i think a sample project you also need to provide.
If you don't want to attach the files and sample project in the discussion group. Please send me the email directly. you can use zhonghua.shou@autodesk.com
Thanks,
Robin Shou
Quality Assurance
AutoCAD Electrical
Autodesk, Inc.