AutoCAD Architecture Customization
Welcome to Autodesk’s AutoCAD Architecture Customization Forums. Share your knowledge, ask questions, and explore popular AutoCAD Architecture Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set active Display Configuration with .NET

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
jsebclark_SDG
675 Views, 2 Replies

Set active Display Configuration with .NET

I would like to know if anyone knows how to set or change the active display configuration with .NET.  Currently I am sending this task to the command line.  See below:

 

' This subroutine sets the correct display config with the supplied name
        Public Sub SetCurrentDisplayConfig(ByVal strDisplayConfig As String)
            Dim strCommand As String = ""

            strCommand = "-AECDISPLAYCONFIGSETCURRENT " & strDisplayConfig & vbCr
              AutoApp.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(strCommand, True, False, False)

        End Sub

 

2 REPLIES 2
Message 2 of 3
Jeffrey_H
in reply to: jsebclark_SDG

Look at the AecDisplaySampleMgd in Sample folder(located in installation folder)

 

and

 

http://www.theswamp.org/index.php?topic=36679.msg416795#msg416795

You can also find your answers @ TheSwamp
Message 3 of 3
jsebclark_SDG
in reply to: Jeffrey_H

Thank you for the info.  I will try this out today.

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

Post to forums  

Autodesk Design & Make Report

”Boost