Over the past few days I've been delving into this a little more: following a C# tutorial and also trying a few programs from the .NET forum. Inevitably, I have a few more (novice) questions if you have time
After browsing the .NET Geometry Routine thread, I thought I'd try
this code from Gile (works great BTW).
This is the procedure I followed:
1) Open VS2010, created a New Project (Visual C# Class Library) named 'ConvexHull'.
2) Copied Gile's code to a '.cs' file called 'ConvexHull.cs' within said project.
3) Added 'AcDbMgd.dll' and 'AcMgd.dll' to the list of References and set 'Copy Local' to false.
4) Set the Project Properties to '.NET Framework 3.5' and Build for 'Active (Any CPU)'.
5) Build the Solution (F6)
6) Opened AutoCAD to a Drawing, NetLoad'ed the 'bin > Debug > ConvexHull.dll' file
7) Typed 'ch' to start the program ==> All worked fine.
Now for the Questions:* Firstly, am I following the correct procedure to test the code I linked to?
* Are the Project/File names arbitrary?
* In Step (3):
i) Is there a way to automatically have those DLLs added as References?
ii) How does one know which DLL's are required, i.e. would I always need both AcDbMgd and AcMgd?
iii) VS2010 automatically adds quite a few other References:
Are these needed?
* In Step (4): Is is possible to automatically set these properties?
* In Step (5): What is the difference between Building the Solution (F6) and Building using (Shift+F6)?
Sorry for the long post - It seems the more I delve into this, the more questions I have...
Thanks for your time and advice.
Lee