TheSwamp

Code Red => .NET => Topic started by: jgr on September 01, 2010, 05:15:15 PM

Title: Creating COM addins for bricscad PRO using dotNet
Post by: jgr on September 01, 2010, 05:15:15 PM
Using COM , Bricscad / IntelliCAD commands can be defined using Application.DefineFunction
It is similar to (defun c:cmd) in LISP.

I used this with vb6 and (CMS) IntelliCAD and now I've tried to translate into .Net (and works)

In vb6, is very easy. We use the addin wizard

This is the same as creating a shared addin for office using visual studio 2008. The big difference is for the registration of adddin, with. Net must be done explicitly (by code)


-To debug the same as with AutoCad
-For manage COM addins in bricscad use the command _addinmanager

I do not explain more because I do not speak English
See example
Title: Re: Creating COM addins for bricscad PRO using dotNet
Post by: Daniel Eiszele on September 01, 2010, 07:32:21 PM
Thanks jgr, there is some really great information / insight provided there, particularly the implementation of definefunction.  I just need to mull over the implementation of IDTExtensibility2 to get it clear in my head.  Thanks for posting.
Title: Re: Creating COM addins for bricscad PRO using dotNet
Post by: It's Alive! on September 01, 2010, 09:38:01 PM
jgr, have you seen this thread?
http://www.theswamp.org/index.php?topic=29100.0
Title: Re: Creating COM addins for bricscad PRO using dotNet
Post by: jgr on September 01, 2010, 10:06:59 PM
I do not explain more because I do not speak English

And (of course) because I do not know anything more. :oops:

I used "try and error" (in spanish : prueba/error) and msdn documentation.

Thanks.
Title: Re: Creating COM addins for bricscad PRO using dotNet
Post by: Daniel Eiszele on September 01, 2010, 10:15:38 PM
-For manage COM addins in bricscad use the command _addinmanager

..should actually be _addinman.  At least it is in BC 10.
Title: Re: Creating COM addins for bricscad PRO using dotNet
Post by: jgr on September 01, 2010, 10:32:48 PM
 :oops: My last post is for Daniel Eszeile

__declspec:
I know him. That thread is that I have decided to translate my code, as an exercise (I'm trying to learn  (vb).Net).

you're a genius. I love your jobs (sqlite...), and of course keith jobs , gile jobs (geometry :lol:).... alll theswamp.

I have many problems with english, but: (for all) thanks



Title: Re: Creating COM addins for bricscad PRO using dotNet
Post by: jgr on September 01, 2010, 10:40:18 PM
-For manage COM addins in bricscad use the command _addinmanager

..should actually be _addinman.  At least it is in BC 10.


It is the first time I use Bricscad for this
But there is an equivalent command from Intellicad 2001. (Versions that support VBA)