Symbol Pcell Example
Description
This is an example of wrapping the basic generator to create a parameterized symbol. The only parameter supported here is magnification.
pcDefinePCell(
list( ddGetObj("gopdk")
"wgWaypointConnector"
"symbol"
"schematicSymbol"
)
; define the PCcll parameters
(
(mag float 1.0)
)
prog( ()
unless( isCallable('phoDrawWayPointConnectorSymbol)
return()
)
; Call the symbol generator
phoDrawWayPointConnectorSymbol( pcCellView mag
?startPortName "optS"
?endPortName "optE"
)
return(t)
)
)
Related Topics
Photonics Symbol Generator Functions
Return to top