[PCB_FORUM] Re: Converting Colors



George,

The 16.0 ISR was updated after the 16.0 original release. The script
recording was not storing information based on the class/subclasses
changed and instead saved the grid location in the form. That made
scripts limited.
 
The ISR scripts will record a color change like this:
 
color192 
setwindow cvf.dialog
cvf layer_mode
setwindow pcb
generaledit 
setwindow cvf.dialog
cvf select_color_cell 38
cvf layers_color board_geometry/ncroute_path 39
cvf okay
setwindow pcb


The same thing in the early 16.0 version recorded this way and you 
didn't know what it really touched:

color192 
generaledit 
setwindow cvf.dialog
cvf select_color_cell 38
cvf layer_grid_clr 3 218 70 55255
cvf okay


Is this what you are referring to?

Regards,
Barbara Seeger - Cadence Design Systems - 978-262-6578

 
> From: george.h.patrick@xxxxxxxxxxxxx
> 
> 
> I am having a problem with scripting color palette changes in Allegro 16.x.  
The number used in the scripting is very large, and I can't find how it's 
calculated.  Has anyone else tackled this yet?
> 
> I thought at first it was the color values used by Microsoft in some of their 
form stuff,  where the number is: (Red)+(256*Green)+(65536*Blue).  In this, 
black is 0 and white is 16777215.
> 
> This is not the case in this scheme.  Does anyone know how to calculate this? 
>  
It is going to be very un-fun to have to record a script to manually enter the 
colors my users are used to :{
> 
> --
> George Patrick
> Tektronix, Inc.
> Central Engineering, EDS Applications Support
> P.O. Box 500, M/S 39-512
> Beaverton, OR 97077-0001
> * 503-627-5272 (voice)     * 503-627-5587 (fax)
> http://www.tektronix.com<http://www.tektronix.com/>    
http://www.pcb-designer.com<http://www.pcb-designer.com/>
> 
> "Off-Grid and Proud of it!"
> 

-----------------------------------------------------------
To subscribe/unsubscribe: 
Send a message to icu-pcb-forum-request@xxxxxxxxxxxxx
with a subject of subscribe or unsubscribe

To view the archives of this list go to 
http://www.freelists.org/archives/icu-pcb-forum/

Problems or Questions:
Send an email to icu-pcb-forum-admins@xxxxxxxxxxxxx
-----------------------------------------------------------

Other related posts: