Does anybody know how to improve VB6 performance in communications with AutoCAD? The problem: the same program written first in ACAD VBA and transferred then in standing alone VB6 works about 3 to 5 times slower. At the same time communications of MS Office applications with AutoCAD (e.g. MS Access) are not bad (fast).
To connect VB or other application to AutoCAD I’m using the declarations and function:
Public acadapp As AcadApplication
Public ACADDOC As AcadDocument
Function CCACAD1()
Set acadapp = GetObject(, "Autocad.Application")
Set ACADDOC = acadapp.ActiveDocument
AppActivate acadapp.Caption
End Function
Alex Borodulin


Reply With Quote