News:

Please remember to do a search before you ask a question!

Main Menu

Create a TurboCAD drawing using the SDK in VS2015

Started by scottM, August 26, 2016, 01:51:35 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

scottM

I'm trying to use C# in VS2015 to generate new drawings in turboCAD.  This should be very easy, but I can't access the TurboCAD SDK objects. 

I've tried to add the "TurboCAD v4.1 Programmable Objects" as a reference to my project, but I get an error from VS stating "A reference to 'TurboCAD v4.1 Programmable Objects.' could not be added.

I also tried to just add a reference to the IMSIGXMGD.dll to the project, but that didn't work.

Finally I attempt to use dynamic types with this code with no luck:
Type _autoCadType = NULL;
_autoCadType = Type.GetTypeFromProgID("TurboCAD.Application");
object _autoCadApp = Activator.CreateInstance(_autoCadType);

I assume someone else has done this, are there any tricks that I'm missing?  I'm using the trial version of TurboCad Pro since I don't want to purchase until I know this will work, but that could be my issue.

Scott

Tim Stewart

Scott,

there is no issues/restrictions with using the trial version to test.

Regards tim
Regards Tim

You can design without engineering, but you cannot engineer without design.
Windows 10 Pro (19043.1165) 64-bit, TurboCAD Designer 2017-2020 and Pro. Plat. 2018-2020 + LW (64-bit) + AnimationLab 6
Intel i5 2500@3.3GHz 8GB Ram NVIDIA Quadro K2200

scottM

Have you had success with using TurboCAD SDK from Visual Studio 2015 and C#?  If so, what approach did you use.

Thanks!

Tim Stewart

Scott,

sorry, I can't help you further.
I used the SDK with Delphi, many years ago, which worked, but that was it.
I now have other fish to fry!

Regards Tim
Regards Tim

You can design without engineering, but you cannot engineer without design.
Windows 10 Pro (19043.1165) 64-bit, TurboCAD Designer 2017-2020 and Pro. Plat. 2018-2020 + LW (64-bit) + AnimationLab 6
Intel i5 2500@3.3GHz 8GB Ram NVIDIA Quadro K2200