Dim AcadApp As AcadApplication
Try
AcadApp = GetObject(, "AutoCAD.Application")\
Catch ex As Exception
AcadApp = CreateObject("AutoCAD.Application")
End Try
AcadApp.Visible = True
I have used the above code to open an AUTOCAD drawing and read the objects. But i am getting an error like 'cannot create activex component'. when the AUTOCAD drawing takes time to load, this error is coming.
Can anyone help me out from this issue.
Thank you.
Solved! Go to Solution.
Solved by Virupaksha_aithal. Go to Solution.
Your problem appears to be the same as this one - http://forums.autodesk.com/t5/NET/Create-autocad-2012-COM-object/m-p/4728197.
i am not able to open the given link.
Below message is displayed,
Hi
try removing the "." at the end in link like http://forums.autodesk.com/t5/NET/Create-autocad-2012-COM-object/m-p/4728197
Can't find what you're looking for? Ask the community or share your knowledge.