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

Support FIles 2008

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
266 Views, 6 Replies

Support FIles 2008

Maybe I am blind, but I can't seem to find
the Support FIles in the Preferenece.Files
It used to be there in 2006!

Has it moved, or is there another way to get the support file string in 2008.
Thanks in advance.
6 REPLIES 6
Message 2 of 7
NathTay
in reply to: Anonymous

I presume you are talking about the ActiveX API. In which case I am still using it in VBA with 2008.

Regards - Nathan
Message 3 of 7
Anonymous
in reply to: Anonymous

This is what I am trying to do:
Autodesk.AutoCAD.Interop.AcadApplication oApp = (Autodesk.AutoCAD.Interop.AcadApplication)Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication;

AcadPreferencesFiles files = oApp.Preferences.Files
string supportFiles = files. <--- SupportPath is not a option!!!!

What am I doing wrong?
Message 4 of 7
NathTay
in reply to: Anonymous

It shows up for me with VB.NET.

Dim acadApp As Autodesk.AutoCAD.Interop.AcadApplication = Application.AcadApplication
Dim files As Autodesk.AutoCAD.Interop.AcadPreferencesFiles = acadApp.Preferences.Files
Dim strSPath As String = files.SupportPath
Message 5 of 7
Anonymous
in reply to: Anonymous

I must be doing something wrong.
I get everything but supportpath.

All I need to do is add to my references "Autodesk.AutoCAD.Interop"
is that not correct? (of course besides "acdbmgd" and "acmgd")

It strange because in the class explorer I cannot find SupportPath anywhere!
Message 6 of 7
NathTay
in reply to: Anonymous

The only thing I can suggest is that I am using MAP where it may have been fixed so maybe someone else can check. I haven't actually tried the code but I can see it in the object browser and it does come up with intellisense.

Regards - Nathan
Message 7 of 7
Anonymous
in reply to: Anonymous

I have referenced from AutoCAD MAP 2007 the following
acdbmgd
acmgd
Autodesk.AutoCAD.Interop

Now in the Class Browser this is what I see
(see attached image)

I have now tried this on 2 diffrent computers. I obviously dont understand what I am doing wrong.

Thanks for your help.

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