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

How i can use "UserConfigurationManager"

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
588 Views, 4 Replies

How i can use "UserConfigurationManager"

I need to import or export the current profile in a file named .ARG

I think that the class that make this is :

Autodesk.autocad.application.UserConfigurationManager.OpenCurrentProfile()

but i don't find some example or explanation.

Dim i As Autodesk.AutoCAD.ApplicationServices.IConfigurationSection

i =
Autodesk.AutoCAD.ApplicationServices.Application.UserConfigurationManager.Op
enCurrentProfile()

thanks in advance

GPaolo
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

I think you may have to use Com interop AcadPreferences

something like
acadPref.Profiles.ImportProfile("TESTPROFILE", "c:\\TESTPROFILE.ARG", True)

If you find a way in the NET API from the wrapped Library I'd like to know.

/// kwb

"GPaolo" wrote in message
news:5476316@discussion.autodesk.com...
I need to import or export the current profile in a file named .ARG

I think that the class that make this is :

Autodesk.autocad.application.UserConfigurationManager.OpenCurrentProfile()

but i don't find some example or explanation.

Dim i As Autodesk.AutoCAD.ApplicationServices.IConfigurationSection

i =
Autodesk.AutoCAD.ApplicationServices.Application.UserConfigurationManager.Op
enCurrentProfile()

thanks in advance

GPaolo
Message 3 of 5
Anonymous
in reply to: Anonymous

I already use Com Interop
something like
acadPref.Profiles.ImportProfile("TESTPROFILE", "c:\\TESTPROFILE.ARG", True)
'---------------------------------------------------
I want make a complete unmanaged application.
Bye.

"Kerry Brown" ha scritto nel messaggio
news:5478747@discussion.autodesk.com...
I think you may have to use Com interop AcadPreferences

something like
acadPref.Profiles.ImportProfile("TESTPROFILE", "c:\\TESTPROFILE.ARG", True)

If you find a way in the NET API from the wrapped Library I'd like to know.

/// kwb

"GPaolo" wrote in message
news:5476316@discussion.autodesk.com...
I need to import or export the current profile in a file named .ARG

I think that the class that make this is :

Autodesk.autocad.application.UserConfigurationManager.OpenCurrentProfile()

but i don't find some example or explanation.

Dim i As Autodesk.AutoCAD.ApplicationServices.IConfigurationSection

i =
Autodesk.AutoCAD.ApplicationServices.Application.UserConfigurationManager.Op
enCurrentProfile()

thanks in advance

GPaolo
Message 4 of 5
Anonymous
in reply to: Anonymous

I'm pretty sure that the COM implementation is
just reading the registry directly. You can do that
yourself, althought its obviously more work than
just using COM.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"GPaolo" wrote in message news:5479224@discussion.autodesk.com...
I already use Com Interop
something like
acadPref.Profiles.ImportProfile("TESTPROFILE", "c:\\TESTPROFILE.ARG", True)
'---------------------------------------------------
I want make a complete unmanaged application.
Bye.

"Kerry Brown" ha scritto nel messaggio
news:5478747@discussion.autodesk.com...
I think you may have to use Com interop AcadPreferences

something like
acadPref.Profiles.ImportProfile("TESTPROFILE", "c:\\TESTPROFILE.ARG", True)

If you find a way in the NET API from the wrapped Library I'd like to know.

/// kwb

"GPaolo" wrote in message
news:5476316@discussion.autodesk.com...
I need to import or export the current profile in a file named .ARG

I think that the class that make this is :

Autodesk.autocad.application.UserConfigurationManager.OpenCurrentProfile()

but i don't find some example or explanation.

Dim i As Autodesk.AutoCAD.ApplicationServices.IConfigurationSection

i =
Autodesk.AutoCAD.ApplicationServices.Application.UserConfigurationManager.Op
enCurrentProfile()

thanks in advance

GPaolo
Message 5 of 5
Sinc
in reply to: Anonymous

The UserConfigurationManager provides access to specific locations in the registry. Access it like this:

UserConfigurationManager ucm = Autodesk.AutoCAD.ApplicationServices.Application.UserConfigurationManager;
IConfigurationSection regbase = ucm.OpenGlobalSection();

For OpenGlobalSection(), regbase is the primary Civil-3D entry in HKCU/Software/Autodesk.
Sinc

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