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
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.
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, 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
Thank you for your feedback.
You can get details from API documentation.
Any further question please let me know.