Guest
I have two skill code programs to work with the Create Path
command. One starts the path command with the metal layer "biased"
or set for me. So, if I want to start a path in metal 1, I press
ctrl and 1. The second skill code I have is to "transition" from
metal to metal. If I have a path started on Metal 1 and want to go
to Metal 2, I press Alt and 2. Skill is below.
I would like to combine these. Is there a way to "see" if the path
command is activated or in use? That way if I press ctrl and 2 and
the path command is active, I am asking for a transition else start
the command "biased" to metal two. So, I think I just need to know
how to "know" if the path command is started and use a conditional
statement.
I am new to skill programming, if I said something stupid let me
know
Thank you in advance for any help,
Eric
=======================
;bias skill
procedure(m3bias()
hiReplayFile("/home/fitzsied/c05hma_atran/m3bias.rec")
)
procedure(m2bias()
hiReplayFile("/home/fitzsied/c05hma_atran/m2bias.rec")
)
procedure(m1bias()
hiReplayFile("/home/fitzsied/c05hma_atran/m1bias.rec")
)
hiSetBindKeys( "Layout" list(
list("Ctrl<Key>1" "m1bias()");
list("Ctrl<Key>2" "m2bias()");
list("Ctrl<Key>3" "m3bias()");
))
=================================
;transition skill
procedure(ABlayerChange(layer)
le0PathForm->changePathLayer->value =
car(
hiMakeLPChoiceList(
techGetTechFile(geGetEditCellView())
list(list(layer "drawing"))
)
)
)
procedure(m3trans()
ABlayerChange("metal3")
)
procedure(m2trans()
ABlayerChange("metal2")
)
procedure(m1trans()
ABlayerChange("metal1")
)
procedure(m0trans()
ABlayerChange("poly")
)
hiSetBindKeys( "Layout" list(
list("Alt<Key>0" "m0trans()");
list("Alt<Key>1" "m1trans()");
list("Alt<Key>2" "m2trans()");
list("Alt<Key>3" "m3trans()");
))
command. One starts the path command with the metal layer "biased"
or set for me. So, if I want to start a path in metal 1, I press
ctrl and 1. The second skill code I have is to "transition" from
metal to metal. If I have a path started on Metal 1 and want to go
to Metal 2, I press Alt and 2. Skill is below.
I would like to combine these. Is there a way to "see" if the path
command is activated or in use? That way if I press ctrl and 2 and
the path command is active, I am asking for a transition else start
the command "biased" to metal two. So, I think I just need to know
how to "know" if the path command is started and use a conditional
statement.
I am new to skill programming, if I said something stupid let me
know
Thank you in advance for any help,
Eric
=======================
;bias skill
procedure(m3bias()
hiReplayFile("/home/fitzsied/c05hma_atran/m3bias.rec")
)
procedure(m2bias()
hiReplayFile("/home/fitzsied/c05hma_atran/m2bias.rec")
)
procedure(m1bias()
hiReplayFile("/home/fitzsied/c05hma_atran/m1bias.rec")
)
hiSetBindKeys( "Layout" list(
list("Ctrl<Key>1" "m1bias()");
list("Ctrl<Key>2" "m2bias()");
list("Ctrl<Key>3" "m3bias()");
))
=================================
;transition skill
procedure(ABlayerChange(layer)
le0PathForm->changePathLayer->value =
car(
hiMakeLPChoiceList(
techGetTechFile(geGetEditCellView())
list(list(layer "drawing"))
)
)
)
procedure(m3trans()
ABlayerChange("metal3")
)
procedure(m2trans()
ABlayerChange("metal2")
)
procedure(m1trans()
ABlayerChange("metal1")
)
procedure(m0trans()
ABlayerChange("poly")
)
hiSetBindKeys( "Layout" list(
list("Alt<Key>0" "m0trans()");
list("Alt<Key>1" "m1trans()");
list("Alt<Key>2" "m2trans()");
list("Alt<Key>3" "m3trans()");
))