Question

I need assistance setting up the skill files that utilizes the mouse wheel to increase and decrease global and shape transparencies. I have a global and shape.il files but I am unable to set up the environment properly for it to to work.


Solution

To set up your skill files that utilize the mouse wheel that increases and decreases global and shape transparencies, you need to load the global_transparency.il and shape_transparency.il files in your allegro.ilinit file.   

If you have an allegro.ilinint file in your pcbenv directory you can place the SKILL files there.


To load files into the allegro.ilinit file:

  1. Exit the PCB Editor if it is running.
  2. Using Windows File Explorer enter %home% into the location box as shown in the screen image that follows.
  3. Press your keyboard Enter key to show the location of your home directory.
    Note: Your pcbenv folder is located in your Home directory.
  4. Open the pcbenv folder and locate the allegro.ilinit file.
  5. Edit the file and add the following two lines.
    load "./global_transparency.il"
    load "./shape_transparency.il"
  6. Save the file. 
  7. Open the env file that is also located in the pcbenv directory.
  8. Add the following lines the the env file after line 2:  

#################################################

# Mouse wheel settings for Global and Shape transparency

# Dependencies: global_transparency.il and shape_transparency.il

#################################################

#Decrease global transparency

button Swheel_up gtp

#Increase global transparency

button Swheel_down gtm

#Decrease shape transparency

button SCwheel_up stp

#Increase shape transparency
button SCwheel_down stm


9. After the editor opens, you may type any of the following commands into the command window. This enables you to use the middle mouse button to control transparency. 

gtp

gtm

stp

stm


These commands that change the transparency and are called when you roll the mouse button with the shift and ctrl-shift keys pressed. 

gtp - Global Transparency Plus

gtm - Global Transparency Minus

stp - Shape Transparency Plus

stm - Shape Transparency Minus.