Open User-Defined Version of AutoCAD Application using API

Open User-Defined Version of AutoCAD Application using API

Mohamed_Arshad
Advisor Advisor
934 Views
4 Replies
Message 1 of 5

Open User-Defined Version of AutoCAD Application using API

Mohamed_Arshad
Advisor
Advisor

HI Community,

 

About Plugin Functionality

    > My plugin will open AutoCAD Application externally and process the DWG File.

 

About the Query

    > I have multiple AutoCAD Versions installed in my PC, If I trigger the plugin last closed version of AutoCAD is opening.

 

   > How do open particular application using its version, It is possible to give the version number while opening the AutoCAD ?  any suggestion would be appreciate this.

 

Code Which I'm using to Open AutoCAD Application

 

Autodesk.AutoCAD.Interop.AcadApplication a = new Autodesk.AutoCAD.Interop.AcadApplication();
a.Visible = true;

 

@_gile @ActivistInvestor @kerry_w_brown @norman.yuan 

 

 


Mohamed Arshad K
Software Developer (CAD & BIM)

0 Likes
Accepted solutions (1)
935 Views
4 Replies
Replies (4)
Message 2 of 5

norman.yuan
Mentor
Mentor

I do not understand: "My plugin" is PLUGIN for AutoCAD, it runs inside AutoCAD, Or, to say in different way: it only lives when AutoCAD runs and your plugin is loaded. So, why you want use code (your plugin code!) from a running AutoCAD to start another AutoCAD session?

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 5

Mohamed_Arshad
Advisor
Advisor

HI @norman.yuan  Thank you fast respond 🙂

   Sorry for the misunderstanding. the plugin which I have created (MyPlugin) is inside the Revit. From Revit I'm triggering AutoCAD Application, Here I need to open the AutoCAD according to version. I hope this will make a better understanding for you 🙂


Mohamed Arshad K
Software Developer (CAD & BIM)

0 Likes
Message 4 of 5

_gile
Consultant
Consultant
Accepted solution

Hi,

Have a look at this topic.

The 'progId' argument allows to start the last closed AutoCAD version ("AutoCAD.Application") or a spcecific version ("AutoCAD.Application.24.3").



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 5 of 5

Mohamed_Arshad
Advisor
Advisor

HI @_gile 

It worked Thank you !!


Mohamed Arshad K
Software Developer (CAD & BIM)

0 Likes