Author Topic: First VB.NET application......ssssllllloooooowwwwww  (Read 23927 times)

0 Members and 1 Guest are viewing this topic.

Bob Wahr

  • Guest
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #15 on: November 02, 2005, 03:42:15 PM »
Is there a place to share files here in the swamp?  I have a write up that I did a while back that goes into detail on all of this.
http://www.theswamp.org/lilly_pond/ make a youish folder

Bobby C. Jones

  • Swamp Rat
  • Posts: 516
  • Cry havoc and let loose the dogs of war.
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #16 on: November 02, 2005, 04:13:35 PM »
Thank you Mr. Wahr!

I've uploaded the file.  http://www.theswamp.org/lilly_pond/BobbyCJones/Calling%20your%20code%20from%20AutoCAD.doc

**WARNING**   This only applies to code written against the AutoCAD COM API.  This will not work with the new managed API.
Bobby C. Jones

Jeff_M

  • King Gator
  • Posts: 4087
  • C3D user & customizer
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #17 on: November 02, 2005, 05:40:57 PM »
Ok .. here is a quick rundown ... <snipped all the good stuff>

If you need an example, let me know ...
Thanks Keith. It is finally starting to make sense to me. I'll give it a try and if I get stuck I'll be back asking for that example.

And Thanks to Bobby, too, for posting that document. I'll be reading that tonight. Oh, and thanks for resurrecting this thread. It might be the kick I needed to get back into the learning mode.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #18 on: November 02, 2005, 06:39:56 PM »
....

I've uploaded the file.  http://www.theswamp.org/lilly_pond/BobbyCJones/Calling%20your%20code%20from%20AutoCAD.doc

**WARNING**   This only applies to code written against the AutoCAD COM API.  This will not work with the new managed API.


Thanks for sharing Bobby.

Could you do [us] a favour .. Could you state explicitly in the document which Programming IDE, API <done> and ACAD Version that code is meant to suit.
If [we] don't, it's likely that the thread will fill with posts like "I copied the code and want to know Why doesn't ....

I'm guilty of missing this too ...

Sorry if this seems a PITA.

Great to see you here ..
Regards
Kerry
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Bobby C. Jones

  • Swamp Rat
  • Posts: 516
  • Cry havoc and let loose the dogs of war.
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #19 on: November 03, 2005, 10:34:00 AM »

Thanks for sharing Bobby.

Could you do [us] a favour .. Could you state explicitly in the document which Programming IDE, API <done> and ACAD Version that code is meant to suit.
If [we] don't, it's likely that the thread will fill with posts like "I copied the code and want to know Why doesn't ....

I'm guilty of missing this too ...

Sorry if this seems a PITA.

Great to see you here ..
Regards
Kerry

Sure, not a problem.  I wrote this using VS.NET 2003 with AutoCAD 2004 as my target version.  However, the ideas presented in it are valid for any version of Acad with a COM API.  Likewise, all versions of .NET are capable of COM Interop and can be used.

Also, sorry for the odd formatting in the document.  I pulled it out of a larger piece where it all looked much better :)

Look at that <PointingOverThere>  You can d/l it from the AUGI web site.  Although it looks like they have included a bunch of stuff from some other class too...what's up with that?

http://www.augi.com/education/auhandouts/2003/CP12-1.zip


« Last Edit: November 03, 2005, 12:10:56 PM by Bobby C. Jones »
Bobby C. Jones

Jeff_M

  • King Gator
  • Posts: 4087
  • C3D user & customizer
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #20 on: November 05, 2005, 03:21:09 PM »
 :pissed: :realmad: :pissed: :realmad:
OK, what else can MS do to make this harder for me? Every help file I can find, including the one that came with my Visual Studio .NET 2003, says
Quote
Visual Studio and then select File> New> Project. In the New Project dialog select Visual Basic Projects for the Project Type. Select “Class Library” template
So I try this and there is no Class Library Template to be found.....so now I go off to search my computer and the 'net......on the MS website I find this
Quote
The Class Library template is not available in the Standard Edition of Visual Basic .NET.
What da hell? Does this mean I can't create DLL's with the Standard Edition? What good IS the Standard edition?

I'm starting to think knitting is looking better as a hobby than is this programming for Acad.  :lmao:

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #21 on: November 05, 2005, 03:41:16 PM »
If I recall correctly that is indeed the case Jeff; sorry.

:(
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Jeff_M

  • King Gator
  • Posts: 4087
  • C3D user & customizer
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #22 on: November 05, 2005, 03:46:03 PM »
OK, I admit it....I'm a putz and don't know jack....
I just found the AutoCAD_NET_labs.zip file on the Autodesk website that has a number of examples and yup, I CAN build DLL's (I just built the HelloWorld command.... :woot: ). Now to just make my own little template or, at least, figure out what the DLL requires vs the EXE that my projects default to......

Carry on.....

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #23 on: November 05, 2005, 03:52:45 PM »
Maybe what I'm thinking is you can't create type libraries without the Enterprise version or equivalent.

Oh coffee truck ...
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Jeff_M

  • King Gator
  • Posts: 4087
  • C3D user & customizer
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #24 on: November 05, 2005, 05:13:51 PM »
Thanks, Michael, for keeping me thinking here. I don't know how much more coffee I can drink today. Just when I think I'm getting somewhere, *BLAM* !!!! Now where did THAT brick wall come from? Time to switch to some asprin & water.

All I can say is "It's a good thing it's a cold & rainy day and the wife is at work. I just might make some progress today."

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #25 on: November 05, 2005, 05:42:57 PM »
<Jeff_M=Blue>Thanks, Michael, for keeping me thinking here.

I believe the words you're looking for are "Thanks for the red herring Michael".

I don't know how much more coffee I can drink today.

There's a limit? Adjusting scorecard.

Just when I think I'm getting somewhere, *BLAM* !!!! Now where did THAT brick wall come from?

But that's what makes it fun, right? <seg>.

Time to switch to some aspirin & water.

There are many mornings I start with a hearty bowl of milk and aspirin.

All I can say is "It's a good thing it's a cold & rainy day and the wife is at work. I just might make some progress today."

Know 'xactly what you mean, Linda works Saturdays, I write proposals same lately.

Good luck Jeff, hope you get what you want done today++.

:)
« Last Edit: November 05, 2005, 05:48:45 PM by MP »
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Troy Williams

  • Guest
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #26 on: November 06, 2005, 09:14:58 AM »
Jeff, here is a link that may help you out with the class library template.

Jeff_M

  • King Gator
  • Posts: 4087
  • C3D user & customizer
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #27 on: November 06, 2005, 12:06:06 PM »
Thanks, Troy! I'll be testing it out with my app later on today.

Glenn R

  • Guest
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #28 on: November 06, 2005, 07:51:12 PM »
For those that don't know, install the ObjectARX Wizard from the ObjectARX SDK.

Apart from adding in all the aRX stuff, it ALSO adds in an "Autodesk Managed CS Project" (and VB) under "Visual C# Projects" and VB respectively.

Cheers,
Glenn.

Ken Alexander

  • Newt
  • Posts: 61
Re: First VB.NET application......ssssllllloooooowwwwww
« Reply #29 on: November 07, 2005, 09:55:01 AM »
Hey Jeff,

More and more familiar people.  I'm not providing any solutions, cause I can't......I myself have just recently jumped in to .NET (with both feet and a rock tied to them).

I was wondering if there was an MSDN for the MSDN <g>  Having tons of fun learning this though.
Ken Alexander