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

Can default be set to open in black and white?

5 REPLIES 5
Reply
Message 1 of 6
mjgky30SA
566 Views, 5 Replies

Can default be set to open in black and white?

Is there a way to change the default for dwf files to open (in Design Review) in black and white only? I know you can change once published but wanted to find a way to make it default to that view. Thanks

5 REPLIES 5
Message 2 of 6
whtank
in reply to: mjgky30SA

Thank you for your question.

 

We cannot apply for this option through Design Review EXE. However, this option has been exposed through API as 'ECompositeViewer.ColorMode Property' in Design Review ActiveX control. You can write a script to embedded this ActiveX control and set color mode as 'Black and White' before opening a new file.

 

Please let me know if this can be of help.



Tank
SW Engineer
PSEB-GE-ACRD-CPG
Autodesk, Inc.

Message 3 of 6
Anonymous
in reply to: whtank

Could you please show how to do it?  I am new in AutoCad.  Thanks.

 

Yakov

Message 4 of 6
herbert.he
in reply to: mjgky30SA

Thank you for your question.

 

Please refer to the page "ECompositeViewer.ColorMode Property" of Autodesk Design Review API documentation for more information.  

 

    ECompViewer = ADViewer.ECompositeViewer;

    ECompViewer.ColorMode = 2; //Set Color Mode to Gray Scale

    var ECompViewer = ADViewer.ECompositeViewer;

    switch(ECompViewer.ColorMode)

    {

        case(0): 

        {

            alert('Canvas color is set to DWF original colors');

            break;

        } 

        case(1): 

        {

            alert('Canvas color is set to Black & White');

            break;

        } 

        case(2): 

        {

            alert('Canvas color is set to Gray Scale');

            break;

        }

     }

 

Any further question please let me know.



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Message 5 of 6
Anonymous
in reply to: mjgky30SA

Herbert, thank you very much for your reply, but I just need to know how to use the code.  If you don't have time please point me in the right direstion where I could read about it.

 

Yakov

Message 6 of 6
herbert.he
in reply to: Anonymous

Thank you for your feedback.

 

You can get details from  API documentation.

 

Any further question please let me know.



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.

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

Post to forums  

Autodesk Design & Make Report