Hello,
I'm trying to open a new DWG from inside IntelliCAD (using VBA) and from outside (using Automation from VB).
In both cases, I'm trying to do the following:
Dim iCAD As IntelliCAD.Application
iCAD = New IntelliCAD.Application()
iCAD.Visible = True
iCAD.Documents().Open("C:\Temp\MyLib\Sample.dwg", False)
Then I receive "Unspecified Error" message and nothing happens!
Am I missing something?
Kindest Regards,
Fernando.
#2
fpmalard,
This is straight fro the Help in IntelliCAD
Private Sub OpenMethod()
' The following example opens "C:\package.dwg" file.
' You may need to change the drawing path and name to reflect a valid
' IntelliCAD drawing on your system.
Documents.Open ("C:\package.dwg")
End Sub
Your "iCAD.Documents()" appear to treat the Documents as an array.
The "Documents" are a collection of Document objects.
I have tried the code and it is working fine.
------------------
Regards
John Finlay
This is straight fro the Help in IntelliCAD
Private Sub OpenMethod()
' The following example opens "C:\package.dwg" file.
' You may need to change the drawing path and name to reflect a valid
' IntelliCAD drawing on your system.
Documents.Open ("C:\package.dwg")
End Sub
Your "iCAD.Documents()" appear to treat the Documents as an array.
The "Documents" are a collection of Document objects.
I have tried the code and it is working fine.
------------------
Regards
John Finlay