-
Notifications
You must be signed in to change notification settings - Fork 2
/
env
197 lines (165 loc) · 6.54 KB
/
env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# -*- mode: tcl; -*-
# Cadence Allegro paths settings
# For more information see: 'Allegro Layout Editor Environment Variables Reference Product'
# Contents:
#
# Initial
# Cadence Capture setup
# Library
# View
# Visibility schemes
# Other
# Custom shortcuts
# Move
# Visibility
# Placement
# Filter
# Find
# Highlight
# Commands
# * Initial
# NOTE: Do not modify line one of the local env file. Line one contains the source command which
# tells the system to read and execute all the information in the global environment file.
# For more information see: Getting Started with Physical Design/Managing Environment Variables
source $TELENV
# * Cadence Capture setup
# Add XNet options for Cadence Capture Constraint manager: Tools/Options/Xnet
# https://community.cadence.com/cadence_technology_forums/f/pcb-design/38866/export-physical-error/1355582
set CDS_XNET_STATE_UI 1
# * Library
# ALLEGRO_LIB - Environment variable
ifvar ALLEGRO_LIB "set worklib_path $ALLEGRO_LIB" "set worklib_path ."
set worklib_symbol $worklib_path/A
set worklib_symbol $worklib_symbol $worklib_path/B
set worklib_symbol $worklib_symbol $worklib_path/C
set worklib_symbol $worklib_symbol $worklib_path/D
set worklib_symbol $worklib_symbol $worklib_path/E
set worklib_symbol $worklib_symbol $worklib_path/F
set worklib_symbol $worklib_symbol $worklib_path/G
set worklib_symbol $worklib_symbol $worklib_path/H
set worklib_symbol $worklib_symbol $worklib_path/J
set worklib_symbol $worklib_symbol $worklib_path/K
set worklib_symbol $worklib_symbol $worklib_path/L
set worklib_symbol $worklib_symbol $worklib_path/M
set worklib_symbol $worklib_symbol $worklib_path/OTV
set worklib_symbol $worklib_symbol $worklib_path/P
set worklib_symbol $worklib_symbol $worklib_path/Q
set worklib_symbol $worklib_symbol $worklib_path/R
set worklib_symbol $worklib_symbol $worklib_path/S
set worklib_symbol $worklib_symbol $worklib_path/STD
set worklib_symbol $worklib_symbol $worklib_path/T
set worklib_symbol $worklib_symbol $worklib_path/U
set worklib_symbol $worklib_symbol $worklib_path/V
set worklib_symbol $worklib_symbol $worklib_path/W
set worklib_symbol $worklib_symbol $worklib_path/X
set worklib_symbol $worklib_symbol $worklib_path/Y
set worklib_symbol $worklib_symbol $worklib_path/Z
set worklib_padstacks $worklib_path/PADSTACKS/Shape
set worklib_padstacks $worklib_padstacks $worklib_path/PADSTACKS/Surfase-Mount
set worklib_padstacks $worklib_padstacks $worklib_path/PADSTACKS/Through-Hole
set psmpath $worklib_symbol
set psmpath . symbols $worklib_symbol
set padpath $worklib_padstacks
set padpath . symbols $worklib_padstacks
# * View
# ** Visibility schemes
# 'viewpath' - search path for visibility schema files (.color)
set viewpath $viewpath $HOME/pcbenv/view
# ** Other
# Disable 'Start Page' Allegro PCB Designer
set allegro_no_startpage
# * Custom shortcuts
# NOTE:
# '~Char' should press 'Control Key' and 'Char'
# 'SChar' should press 'Shift Key' and 'Char'
# The "button" command can be used to alias the Middle Mouse Wheel(wheel_up/wheel_down) to commands
# ** Move
# https://www.parallel-systems.co.uk/wp-content/uploads/2021/01/PCB_Editor_Tips.pdf
# Move the design across the working area
button Cwheel_up "roam y -$roamInc"
button Cwheel_down "roam y $roamInc"
button Swheel_up "roam x -$roamInc"
button Swheel_down "roam x $roamInc"
# ** Visibility
# SKILL scripts
# Toggle visibility for Etch layers
funckey 1 "toggle_number_visible 1"
funckey 2 "toggle_number_visible 2"
funckey 3 "toggle_number_visible 3"
funckey 4 "toggle_number_visible 4"
funckey 5 "toggle_number_visible 5"
funckey 6 "toggle_number_visible 6"
funckey 7 "toggle_number_visible 7"
funckey 8 "toggle_number_visible 8"
funckey 9 "toggle_number_visible 9"
funckey 0 "toggle_number_visible 10"
funckey ~1 "toggle_number_visible 11"
funckey ~2 "toggle_number_visible 12"
funckey ~3 "toggle_number_visible 13"
funckey ~4 "toggle_number_visible 14"
funckey ~5 "toggle_number_visible 15"
funckey ~6 "toggle_number_visible 16"
# Toggle all Conductor and Plane Etch layers
funckey ] toggle_conductor_layers
funckey ~] toggle_conductor_layers
funckey \ toggle_plane_layers
funckey ~\ toggle_plane_layers
funckey [ toggle_layers
funckey ~[ toggle_layers
button SCwheel_up subclass --
button SCwheel_down subclass -+
# Shadow layers
funckey h "shadow toggle"
funckey gt "grid toggle"
# ** Placement
# Rotate symbol
funckey rr iangle 90
funckey rl iangle -90
# Mirror symbol
funckey mr pop mirror
# https://github.com/FEDEVEL/allegro-configs
# Move symbol where you hover coursor
funckey ms "prepopup;pop dyn_option_select 'Selection set@:@Clear all selections';FORM find all_off;FORM find symbols YES;done;etchedit;prepopup;pop dyn_option_select '@:@Move';move"
funckey mv "prepopup;pop dyn_option_select 'Selection set@:@Clear all selections';FORM find all_off;FORM find vias YES;done;etchedit;prepopup;pop dyn_option_select '@:@Move';move"
# ** Filter
funckey s "FORM find all_off;FORM find symbols YES"
funckey n "FORM find all_off;FORM find nets YES;"
funckey p "FORM find all_off;FORM find pins YES;"
funckey t "FORM find all_off;FORM find text YES;"
funckey v "FORM find all_off;FORM find vias YES;"
funckey c "FORM find all_off;FORM find cline_segs YES;"
funckey e "FORM find all_off;FORM find shapes YES;"
# ** Find
# https://community.cadence.com/cadence_technology_forums/f/ic-packaging-and-sip-design/45517/switching-layers-shortcut-in-apd-v17-2
# https://www.parallel-systems.co.uk/wp-content/uploads/2020/02/PCB_Editor_Tips.pdf
# Find by Query
alias ~E "FORM find find_by_query"
# Find Symbol
alias ~F "prepopup;set prompt;prompt 'Find Ref Des';refdes $prompt;zoom selection"
# alias ~Q "FORM find name_type Symbol (or Pin);FORM find find_list Name;FORM find find_by_name"
# Find Net
alias ~N "prepopup;set prompt;prompt 'Find Net Name';net $prompt;zoom selection"
alias ~W "FORM find name_type Net;FORM find find_list Name;FORM find find_by_name"
# ** Highlight
alias ac "assign color"
alias hg "assign color"
alias uh "dehilight"
alias CSF7 "dehilight all; FORM mini dhlt_all"
# ** Commands
funckey ~G "done"
set enable_command_window_history
# Exit from task
funckey ~Q "pick grid 0 0"
# Toggle echo of scripts
alias echo_on "scriptmode +echo"
alias echo_off "scriptmode -echo"
# Set variable ShowSkillFiles to see loading SKILL files
# set ShowSkillFiles
# TIPS
# - to show Alias/Funckey type on allegro command line: alias
# - to debug problems type on allegro command line: scriptmode +echo
### User Preferences section
### This section is computer generated.
### Please do not modify to the end of the file.
### Place your hand edits above this section.
###