Quantcast
Channel: Mentor Graphics Communities : Document List - All Communities
Viewing all articles
Browse latest Browse all 397

Loading a DxDesigner color scheme file

$
0
0

The attached script loads a DxDesigner color scheme (dxc) file and sets the object colors accordingly.

 

The dxc file is an xml file with the format described in this tech note: http://supportnet.mentor.com/reference/technotes/public/technote.cfm?tn=mg244190

 

The dxc file is parsed with Msxml parser, and for every item in the <schematic> node, the script calls the SetDefaultColor method.

 

The script is run on the shell command line, as follows:

 

     mgcscript ColorScheme.vbs <path_to_dxc_file>

 

DxDesigner must be running for the script to work, if no DxDesigner is running, the script will invoke DxDesigner in the background and will shut it down after setting the colors.

 

Please post a comment below if you have any questions or comments.

 

John


Viewing all articles
Browse latest Browse all 397

Trending Articles