.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Load dll-files in Acad2013
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Someone already tried to load VB dll's in Acad2013?
They dont work for me - no message and no error, nothing happens.
in 2012 they worked well.
Solved! Go to Solution.
Re: Load dll-files in Acad2013
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
do you mean VB6 dll's oder VB.NET dll's
Have you set new references (according to AutoCAD 2013/19.0) before you compiled the DLL's?
A little bit little, your info ![]()
- alfred -
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Re: Load dll-files in Acad2013
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
ahhhh
you'r right i have to rebuild my scripts with the r19 references...
i hope this works - i get errors in my code with the new references.
thanks
Re: Load dll-files in Acad2013
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
>> i get errors in my code with the new references
Yes, there are some modifications necessary to your code as there are some moves of functions/properties to different DLLs/different namespaces. But as long as we don't see what error you have we can't do anything for you ![]()
- alfred -
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Re: Load dll-files in Acad2013
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
ok, one error left...
Public ReadOnly Property ThisDrawing As AcadDocument
Get
Return Autodesk.AutoCAD.ApplicationServices.Application.D ocumentManager.MdiActiveDocument.AcadDocument
End Get
End Propertymsg:
AcadDocument is not a member of Autodesk.AutoCAD.ApplicationServices.Document
Re: Load dll-files in Acad2013
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
one global change you have to do is to add a new DLL to the references:
AcCoreMgd.dll
To your statement getting asscess to the COM-based AcadDocument you have to use this way:
Dim tAcadDoc as ApplicationServices.Document Dim tAcadDocCOM as Interop.AcadDocument tAcadDoc = ApplicationServices.Application.DocumentManager.MdiActiveDocument tAcadDocCOM = CType(ApplicationServices.DocumentExtension.GetAca dDocument(tAcadDoc), Interop.AcadDocument)
HTH, - alfred -
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Re: Load dll-files in Acad2013
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Ty for your help, but i have a other problem now LOL ![]()
EDIT:
OK, i updated my project to NETframework 4.0... seems to work now. Thank you very much!
Re: Load dll-files in Acad2013
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
To get "ThisDrawing" i use
Return DocumentExtension.GetAcadDocument(Application.DocumentManager.MdiActiveDocument)
now.
if someone have the same problem...
