From: Jon Slaughter on
I'm trying to write some addins in C# for SW 2009 but I'm having some
difficultly. (besides the absolute lack of information/documentation)

What I need to be able to do is debug the addin and/or be able to reload it
without restarting solidworks every time.

Anyone have any experience with this?

Thanks,
Jon


From: Jon Slaughter on

"Jon Slaughter" <Jon_Slaughter(a)Hotmail.com> wrote in message
news:BJs_k.8677$x%.4926(a)nlpi070.nbdc.sbc.com...
> I'm trying to write some addins in C# for SW 2009 but I'm having some
> difficultly. (besides the absolute lack of information/documentation)
>
> What I need to be able to do is debug the addin and/or be able to reload
> it without restarting solidworks every time.
>
> Anyone have any experience with this?
>
> Thanks,
> Jon
>

By the way, I'm using VS.NET 2k8


From: That70sTick on
As long as the addin is loaded into SW, I don't think you'll be able
to change the DLL. If you turn the addin off (under Tools -->
Addins), you migh be able to swap DLLs.
From: That70sTick on
> What I need to be able to do is debug the addin and/or be able to reload it
> without restarting solidworks every time.

Usually I start with writing an EXE. When I get the code running the
way I want, I migrate the modules to an addin DLL.

My addin class modules typically don't have code that does the actual
"work". I structure addin projectss such that the addin class module
is simply a portal to the other forms and modules. The addin class
module just does the SolidWorks housekeping such as connecting,
getting cookies, and settin up menus and toolbars.
From: Jon Slaughter on

"That70sTick" <rol4(a)liquidschwarz.com> wrote in message
news:71e4b1ab-eb79-4ba0-bedc-fcb5ea9ee509(a)l42g2000yqe.googlegroups.com...
>> What I need to be able to do is debug the addin and/or be able to reload
>> it
>> without restarting solidworks every time.
>
> Usually I start with writing an EXE. When I get the code running the
> way I want, I migrate the modules to an addin DLL.
>
> My addin class modules typically don't have code that does the actual
> "work". I structure addin projectss such that the addin class module
> is simply a portal to the other forms and modules. The addin class
> module just does the SolidWorks housekeping such as connecting,
> getting cookies, and settin up menus and toolbars.

I've got the exe to work but I'm having problems passing arrays.
DispatchWrapper wraps them but for some reason the data doesn't get solid
works(ends up with 0's).

I can, for example, do a table pattern using a file but not passing points
directly. If I just pass the double array it gets just the y
values(strangely) and the x values are 0. If I wrap them then it just gets
0's ;/

Have you had any problems with passing arrays?