Announcements

Announcement: We’re aware of an issue affecting starting a new topic from category pages and creating new blog posts. New topics can still be started directly from the relevant board. Learn more here.

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

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

dancalgary
Enthusiast Enthusiast
1,385 Views
4 Replies
Message 1 of 5

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

dancalgary
Enthusiast
Enthusiast

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

0 Likes
1,386 Views
4 Replies
Replies (4)
Message 2 of 5

hgasty1001
Advisor
Advisor

Hi,

 

Check the "PRODUCT" system variable.

 

Gaston Nunez

0 Likes
Message 3 of 5

dancalgary
Enthusiast
Enthusiast

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.

0 Likes
Message 4 of 5

hgasty1001
Advisor
Advisor

Hi,

 

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

 

Gaston Nunez

0 Likes
Message 5 of 5

dancalgary
Enthusiast
Enthusiast

thanks this helped

I used

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

0 Likes