.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
changes in DocumentCo llectionEv entArgs in 2013
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
this code used to work in AutoCAD 2007-2012, but not in 2013
xAcad = Autodesk.AutoCAD.ApplicationServices.Application.A
ThisDrawing = xAcad.ActiveDocument
Public Sub AddDocumentToBeDestroyedEvent()
Try
AddHandler Autodesk.AutoCAD.ApplicationServices.Application.D
Catch
End Try
End Sub
Public Sub subDocumentToBeDestroyed(ByVal senderObj As Object, ByVal docColDocActEvtArgs As DocumentCollectionEventArgs)
'::::::::::::::::::::::::::::::::::::::::
Try
If ThisDrawing Is docColDocActEvtArgs.Document.AcadDocument Then
Else
End If
Catch ex As System.Exception
MsgBox("Error en docColDocAct: " & ex.Message)
End Try
End Sub
it sends the error 'AcadDocument' is not a member of 'Autodesk.AutoCAD.ApplicationServices.Document'
anybody knows the new way to check in both documents are equal?
Solved! Go to Solution.
Hi,Re: changes in DocumentCo llectionEv entArgs in 2013
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
>> it sends the error 'AcadDocument' is not a member of
>> 'Autodesk.AutoCAD.ApplicationServices.Document'
Use this code for 2013 the get the COM-object of the AutoCAD-document (im my snippet: AcadDoc)
Imports Autodesk.AutoCAD
...
CType(ApplicationServices.DocumentExtension.GetAca
- alfred -
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Re: Hi,Re: changes in DocumentCo llectionEv entArgs in 2013
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
yep, this work
If ThisDrawing Is CType(Autodesk.AutoCAD.ApplicationServices.Documen
thanks a lot
regards
