.NET

Reply
*Expert Elite*
Keith.Brown
Posts: 1,150
Registered: ‎03-13-2008
Message 1 of 4 (242 Views)

Personal Code Libraries

242 Views, 3 Replies
02-05-2012 11:43 AM

So I am just starting to learn .net and more specifically vb.net and I am just wondering how many of you out there have setup classes to do common tasks in .net.  Do you have reusable dll's that you add to every project? Or do you just copy the code into your newest project?  I am just learning so i understand the value of having to sit and think about the what I want to do and type up the code to get it done, but eventually I would like to create some classes that have some properties and methods of things that i commonly do.  Why reinvent the wheel everytime you want to do something?  I found the following thread that attempted to impliment this on a grand scale but I was wondering how many of you out there have done it for your own personal use and it is worth it.

 

http://forums.autodesk.com/t5/NET/Discussion-Group-ClassLibrary-please-read/m-p/3150324#M25088


Keith Brown AutoCAD MEP BLOG | RSS Feed
AutoCAD MEP 2014 | Revit 2014 | EastCoast CAD/CAM V6.1 | Visual Studio 2013
────────────────────────────────────
⁞|⁞ Please use Mark Solutions!.Accept as Solution and Give Kudos!Give Kudos as appropriate. Thank you!
Contributor
jsebclark_SDG
Posts: 18
Registered: ‎10-12-2009
Message 2 of 4 (220 Views)

Re: Personal Code Libraries

02-05-2012 08:13 PM in reply to: Keith.Brown

I think that is a great idea.  I know that if my primary focus was on developing .net applications for Autocad I would definitely create base code libraries.  My problem is that I only develop about 10% of the time and usually it is just to get something working good enough to get the job done.  By the time it is working no one wants to pay me to clean it up and make it pretty.  I think there are a lot of us who are self taught and do this in our spare time or don't have the schooling in programming that the professionals do.

 

Jonathan

*Expert Elite*
chiefbraincloud
Posts: 753
Registered: ‎02-13-2008
Message 3 of 4 (181 Views)

Re: Personal Code Libraries

02-06-2012 11:38 AM in reply to: Keith.Brown

Not all of my programs are CAD related (though not to mislead, I was originally a CAD designer, and am self taught at VB.NET)  but all of my CAD related programs (and one written by my coworker) reference a "CadTools" DLL.  Any time I am writing a new function to perform a general cad related task, I put it in the CadTools project, thus making it available to all the other projects.  It just makes good sense.

 

 

Dave O.                                                                  Sig-Logos32.png
New Member
p1ellio
Posts: 1
Registered: ‎10-14-2011
Message 4 of 4 (173 Views)

Re: Personal Code Libraries

02-06-2012 12:46 PM in reply to: Keith.Brown

We also have a code library, "WmrtCoreTools.dll"  that contains commonly used  subroutines, functions, and commands.  It is loaded upon AutoCAD startup (via Registry settings), has some startup functionality, and contains some event handlers that are put in place at startup.  Most other dll's written for AutoCAD are demand-loaded and contain this core assembly as a reference.  If any function is written that is used in multiple programs, it is moved into this 'Core' library.  Many of the functions are overloaded with multiple versions that support different situations.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.