.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I get if I run autocad vanilla or autocad civil3D

4 REPLIES 4
Reply
Message 1 of 5
dancalgary
520 Views, 4 Replies

How do I get if I run autocad vanilla or autocad civil3D

I created 2 dll's

One for autocad  the other one for civil

I created another dll that loads using

Reflection.Assembly.LoadFrom("file")

the dlls into autocad at startup

I want to be able to detect if the productID is civil to be able to load the civil3d dll.

Can somebody tell me how to detect this?

Thanks

4 REPLIES 4
Message 2 of 5
hgasty1001
in reply to: dancalgary

Hi,

 

Check the "PRODUCT" system variable.

 

Gaston Nunez

Message 3 of 5
dancalgary
in reply to: hgasty1001

product variable for both autocad and civil3d has the same content:

PRODUCT = "AutoCAD" (read only)

I need something to be able to see if is civil3d or not.

Message 4 of 5
hgasty1001
in reply to: dancalgary

Hi,

 

Oops, It seems you have to extract that info from the registry, this link may hel you: registry Product Info

 

Gaston Nunez

Message 5 of 5
dancalgary
in reply to: hgasty1001

thanks this helped

I used

Autodesk.AutoCAD.Runtime.SystemObjects.DynamicLinker.ProductKey = "Software\Autodesk\AutoCAD\R18.2\ACAD-a000:409"

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost