What is the format that I should build the program with to be able to run it in Autocad ?Managed DLL, like your usual managed .net extension.
What is the format that I should build the program with to be able to run it in Autocad ?Managed DLL, like your usual managed .net extension.
Assembly References, except for with rare exception, should have Copy Local == False.Thank you BlackBox
Coder... Be not lazy... :-( RTFM (http://help.autodesk.com/view/ACD/2015/ENU/?guid=GUID-8657D153-0120-4881-A3C8-E00ED139E0D3). The answers of your questions can be looked for at the first pages of manuals often. Reading documentation is a need of each programmer. Don't expect that someone will do it for you (friendly advice).
I turned all references to False and did not have any dll in the debug folder :-(You don't need all DLL files which you pointed in your screen. From my previous link:
The main DLL files of the AutoCAD .NET API that you will frequently use are:It [Copy Local] means for DLL of Object SDK only, instead of all DLL files of your project. Also your screen has nothing of your output DLL (it has DLL of SDK only)....
- AcCoreMgd.dll. Use when working within the editor, publishing and plotting, and defining commands and functions that can be called from AutoLISP.
- AcDbMgd.dll. Use when working with objects stored in a drawing file.
- AcMgd.dll. Use when working with the application and user interface.
- AcCui.dll. Use when working with customization files.
Once a AutoCAD .NET API DLL is referenced, you must set the Copy Local property of the referenced DLL to False.
You don't need all DLL files which you pointed in your screen. From my previous link:
Check the "Your project properties -> Application tab -> Output type". It must to be "Class Library".
They came out to debug folder automatically after I build the program and I am not the one who copied them .Only cats are born
Why should I change it to Class library and I am working with windows dialogs ?.Because you write a .net extension for AutoCAD instead of autonomic application.
After changing it to class library and build the program , it throws errors .What is "it"? IDE or AutoCAD (compilation or runtime error)? Are you waiting, we will guess the text of your errors? :) Where is the text of your error messages?
Perhaps you should consider using the AutoCAD .NET Wizard, until you're more familiar with configuring your own Solutions, Projects, etc., as it (the Wizard) will do much of the basics for you.
Cheers
Perhaps you should consider using the AutoCAD .NET Wizard, until you're more familiar with configuring your own Solutions, Projects, etc., as it (the Wizard) will do much of the basics for you.
Cheers
What he said! Just note that I don't think it has been updated for post VS 2012 yet.
Perhaps you should consider using the AutoCAD .NET Wizard, until you're more familiar with configuring your own Solutions, Projects, etc., as it (the Wizard) will do much of the basics for you.
Cheers
14 posts and we still did not nail the purpose of the thread :-(
It maybe interesting for you (http://adndevblog.typepad.com/autocad/2012/05/taking-mouse-inputs-from-a-modal-dialog-box.html).
Thank you MickD for your reply .
After picking the first point the rubber band goes to 0,0,0 and did not start from first point :-( can you check this out again please ?
I have no idea why, it should work if you picked pt1 in the first part of the method, that point is set as the base point for the rubber band. Does your code look like this?