Message 1 of 2
vb.net activedocument Missing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to set a drawing active by using an external VB.net program
The ActiveDocument method doesn't exist.
Anyone know how to do this?
{code}
AcadApp = GetObject(, "AutoCAD.Application.17.2")
For k = 0 To acadApp.Documents.count - 1
If acadApp.documents(k).path & "\" & acadApp.documents(k).name = DwgName Then
Try
'acadApp.application.activedocument = acadApp.documents(k) ' <-- Not Valid
Catch ex As Exception
End Try
End If
Next
{code}
The ActiveDocument method doesn't exist.
Anyone know how to do this?
{code}
AcadApp = GetObject(, "AutoCAD.Application.17.2")
For k = 0 To acadApp.Documents.count - 1
If acadApp.documents(k).path & "\" & acadApp.documents(k).name = DwgName Then
Try
'acadApp.application.activedocument = acadApp.documents(k) ' <-- Not Valid
Catch ex As Exception
End Try
End If
Next
{code}
---------------------------

(defun botsbuildbots() (botsbuildbots))
(defun botsbuildbots() (botsbuildbots))