Guest
Hi All,
Andrew gave me some code, which I changed slightly, to place Text on
all Instances in a heirarchy. I ran into a case where I have
"Symbolic" vias that are getting Text placed on them. When I select
one of the vias and perform Edit Instance Properties, the View is
symbolic. I think the safest thing would be to label with text only
"layout" views.
I have tried to do this, but I couldn't get it.
Any help would be greatly appreciated.
Thank you in advance,
Eric
procedure(AllCustomNamesDeviceText(@key (cv geGetEditCellView())
(layerName "text") (height EFHeightAns) (orient EFOrientationAns)
(justification EFJustificatonAns) (font EFFontAns))
let( (label)
foreach(mapcar inst cv~>instances
unless(leIsContact(inst); This strips out vias made with Create
Contact. We are not using IC61
label=dbCreateLabel(
cv
layerName
list((leftEdge(inst)+rightEdge(inst))/2 (topEdge(inst)+bottomEdge
(inst))/2)
EFCustomLabelAns; From the form, "Enter Custom Label"
justification
orient
font
height
) ; dbCreateLabel
leAttachFig(label inst)
label
) ; leIsContact
) ; foreach
) ; let
) ; procedure
Andrew gave me some code, which I changed slightly, to place Text on
all Instances in a heirarchy. I ran into a case where I have
"Symbolic" vias that are getting Text placed on them. When I select
one of the vias and perform Edit Instance Properties, the View is
symbolic. I think the safest thing would be to label with text only
"layout" views.
I have tried to do this, but I couldn't get it.
Any help would be greatly appreciated.
Thank you in advance,
Eric
procedure(AllCustomNamesDeviceText(@key (cv geGetEditCellView())
(layerName "text") (height EFHeightAns) (orient EFOrientationAns)
(justification EFJustificatonAns) (font EFFontAns))
let( (label)
foreach(mapcar inst cv~>instances
unless(leIsContact(inst); This strips out vias made with Create
Contact. We are not using IC61
label=dbCreateLabel(
cv
layerName
list((leftEdge(inst)+rightEdge(inst))/2 (topEdge(inst)+bottomEdge
(inst))/2)
EFCustomLabelAns; From the form, "Enter Custom Label"
justification
orient
font
height
) ; dbCreateLabel
leAttachFig(label inst)
label
) ; leIsContact
) ; foreach
) ; let
) ; procedure