Author Topic: AutoCAD Extension Framework  (Read 6989 times)

0 Members and 1 Guest are viewing this topic.

Jeff H

  • Needs a day job
  • Posts: 6150
AutoCAD Extension Framework
« on: May 17, 2013, 05:10:44 AM »
Hey guys,
 
Before I spend the time which would not be too much, I wanted to check if you guys would be interested first.
 
Was checking if guys would want to advise, contribute, or test with some libraries that would make common task easier and save some lines of code.
 
I could start off with posting the complete libraries I have built and I do not mind sharing, but I think it would be too much and not implemented the way it should for community use.
 
I was thinking it would be better to start off with a simple small solution just to act as placeholder for getting everything setup.
The solution is definitely not meant to be a starting point because I think it needs to discussed how to structure the solution, naming conventions, defined rules, etc......
 
I know this is vague, but I think we can come up with something useful that would help with common task.
If you want a example I will just use the last thing I added which was functionality for basically getting, setting, exporting, importing all the searchpaths on the files tab in options, to treat them like profiles without all the other crap. It uses DLR so other than requiring 4.0 it is not dependent on AcadApplication version, and for settings with multiple paths you treat them as a collection instead of string separated with ";", and had functionality for "temporary or project" paths which would add and remove "extra paths". That seems like something that would be useful but maybe not.
 
If you guys are interested then I will place project on GitHub and will be private, but will add anyone who wants to join, and of course will out updates here.
 
So you guys down?
« Last Edit: June 25, 2013, 07:46:46 PM by Jeff H »

Keith Brown

  • Swamp Rat
  • Posts: 601
Re: AutoCAD Extension Framework
« Reply #1 on: May 17, 2013, 03:00:51 PM »

Was checking if guys would want to advise, contribute, or test with some libraries that would make common task easier and save some lines of code.


I could definitely test and possibly contribute.  I am not sure how much a beginner can contribute but I would give it my best shot.  I left the advise portion out for obvious reasons.
Keith Brown | AutoCAD MEP Blog | RSS Feed
AutoCAD MEP 2014 / Revit MEP 2014 / EastCoast CAD/CAM addon / Visual Studio 2013

WILL HATCH

  • Bull Frog
  • Posts: 450
Re: AutoCAD Extension Framework
« Reply #2 on: May 17, 2013, 05:18:05 PM »
I'm down!

mohnston

  • Bull Frog
  • Posts: 305
  • CAD Programmer
Re: AutoCAD Extension Framework
« Reply #3 on: May 17, 2013, 06:02:50 PM »
I'll do what I can. I have some block attribute and dynamic block setting code that might be of interest.

This isn't going to be written in F# is it? :wink:

Just kidding. I'll take what I can get.
It's amazing what you can do when you don't know what you can't do.
CAD Programming Solutions

BlackBox

  • King Gator
  • Posts: 3770
Re: AutoCAD Extension Framework
« Reply #4 on: May 18, 2013, 01:45:24 AM »
Jeff,

This is incredibly kind of you to offer/suggest. I'd very much appreciate an opportunity to test what is shared, contribute where I can, and learn a great deal while I'm at it, frankly.

Cheers :beer:
"How we think determines what we do, and what we do determines what we get."

MexicanCustard

  • Swamp Rat
  • Posts: 705
Re: AutoCAD Extension Framework
« Reply #5 on: May 20, 2013, 08:01:13 AM »
Im in!
Revit 2019, AMEP 2019 64bit Win 10

Jeff H

  • Needs a day job
  • Posts: 6150
Re: AutoCAD Extension Framework
« Reply #6 on: May 29, 2013, 08:47:40 PM »
Great!
 
Been busy as hell, and drunk all memorial day weekend but got GitHub, etc... setup and will get startup post posted soon.

bargool

  • Guest
Re: AutoCAD Extension Framework
« Reply #7 on: May 30, 2013, 01:54:22 AM »
I'm in again!

Jeff H

  • Needs a day job
  • Posts: 6150
Re: AutoCAD Extension Framework
« Reply #8 on: June 14, 2013, 03:15:42 AM »
Finally got a little something together that is to just get discussion started.
Do you think I should load it here or do you guys want to get through GitHub?
 

WILL HATCH

  • Bull Frog
  • Posts: 450
Re: AutoCAD Extension Framework
« Reply #9 on: June 14, 2013, 10:43:47 AM »
Probably get more attention here.

bargool

  • Guest
Re: AutoCAD Extension Framework
« Reply #10 on: June 14, 2013, 10:50:01 AM »
Do you think I should load it here or do you guys want to get through GitHub?
Probably get more attention here.
I think that GitHub is much-much better for developing with all this commits, pull requests, issue/bug trackers, branches e.t.c., than forum. And this forum is good for discussion, ideas and information about framework.

sybold

  • Newt
  • Posts: 62
Re: AutoCAD Extension Framework
« Reply #11 on: June 17, 2013, 03:11:08 PM »
github works great for bug tracking, and tracking changes.

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: AutoCAD Extension Framework
« Reply #12 on: June 18, 2013, 10:24:45 AM »
Providing separate forks for C# and VB?
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: AutoCAD Extension Framework
« Reply #13 on: June 18, 2013, 10:33:14 AM »
Forkin' eh.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Jeff H

  • Needs a day job
  • Posts: 6150
Re: AutoCAD Extension Framework
« Reply #14 on: June 18, 2013, 11:49:33 AM »
Providing separate forks for C# and VB?
Most use C#, but if anyones want to do whole assembly in VB fine by me.
 
Marking the assemblies  CLSCompliant.
 
 

Jeff H

  • Needs a day job
  • Posts: 6150
Re: AutoCAD Extension Framework
« Reply #15 on: June 18, 2013, 11:51:25 AM »
I hope everyone understands I do not have the final decision on anything and is up to you guys,
and if more 50% vote to kick me out then I gone.
 

Keith Brown

  • Swamp Rat
  • Posts: 601
Re: AutoCAD Extension Framework
« Reply #16 on: June 19, 2013, 04:21:17 PM »
I am new to GitHub so before I get started I do have a couple of questions.  Are we going to use this board for discussion? or is there a built in bulletin board in gitHub that can be used?  Additionally I think it would be great to agree on a format before getting to deep.  For instance, a command name structure would be good.  As an example, in the sample code shown so far there are commands such as PrintBlock, PrintGroup, etc.  My thoughts on that would be to change the name to BlockPrint, GroupPrint, etc.  That way we could define a command called Block <prefixed with a universal project prefix> that would give options such as <Print Insert Option3 Option4 Option5> etc.  That is just one idea and I am certainly open for any others.  I think it would be best if we came to an agreement before going any further.
Also I think someone should invite Gile to the party so we can use his excellent geometry extensions!
Keith Brown | AutoCAD MEP Blog | RSS Feed
AutoCAD MEP 2014 / Revit MEP 2014 / EastCoast CAD/CAM addon / Visual Studio 2013

Jeff H

  • Needs a day job
  • Posts: 6150
Re: AutoCAD Extension Framework
« Reply #17 on: June 19, 2013, 05:35:34 PM »
Hi Keith,
 
There is a built-in wiki, issues, etc.... in github. I agree that a format needs to be setup starting of with the structure of the solution, etc...
 
I am not too worried about the commands names slapped together in the samples because I can not see any reason for it to contain any commands.
 
A consistent naming convention for parameters, methods, etc... is important and hopefully if it starts to gain more traction then the more input and ideas to toss around.
 
Right now I was thinking of people just slapping together ideas and what the best plan of attack would be.
Should we wrap certain objects or use extension methods, the GroupDictionary in PrintGroups will fall flat on its face if IncludingErased property is called. It can be fixed.
What I posted was one of fifty different ways I thought about doing it.
 
It would be much easier verbally and visually to express ideas I know it is for me.
 
There so many things could do and so many different ways of doing them.
We could start off with a coming up with small set of decisions and actions that need to be made to get project started.
 
 
I had same thought if it gained a little steam to ask gile if he wanted to incorporate his geometry extensions.
 
 

BlackBox

  • King Gator
  • Posts: 3770
Re: AutoCAD Extension Framework
« Reply #18 on: July 31, 2013, 10:02:53 PM »
Regarding the idea of gile's extension methods... Doesn't TheSwamp have a plethora of threads dedicated to various extension methods, etc? Why not strt the by organizing those into a single/layered structure of library code accessible in at least 2010 and 2013 database format projects (as applicable)? This would help to organize some conten already here at TheSwamp, and remove a lot of the initial creative thought, and allow us to focus on those more important aspects, such as naming conventions, etc, which could then support all the creative thought thrown at it.
"How we think determines what we do, and what we do determines what we get."