I am beginner at the skill language, and I am making the script which generate symbol and schematic automatically in Skill.
anyway, when I made symbol, by the below code
schCreatePin(cvSchem OpinId port "output" nil x_o:y_o+dy "R90")
the pins I made dosen't have 'Display' option in its Object property.
So, I also want to change this 'display property' into 'value' by code.
I found lots of website, but I couldn't figure out it.
I tried like below code, but it doesn't work.
Would you resolve this problem?
I tried creating using the following code (from schCreatePin documentation):
inputCVId = dbOpenCellViewByType( "basic" "ipin" "symbol" "" 'r )pinId = schCreatePin( (geGetEditCellView) inputCVId "I1" "input" nil 0:0 "R0" )
It created a pin with its label displayed
However you might have a different setup (or instantiate a different kind of pin?)I hope the following functions might help you:
(defun get_schematic_pins (@optional (sch_cv (geGetEditCellView))) "Return pins from SCH_CV" (setof inst sch_cv->instances inst->pin))(defun get_schematic_pin_name_display (pin) "Return PIN name associated text display" (car (exists obj pin->children (and obj->objType=="textDisplay" obj->text=="name"))))(defun display_schematic_pin_name (pin @optional (visible t)) "Show or hide PIN name associated text display according to VISIBLE toggle" (let ((text_display (get_pin_name_display pin))) ;; Make sure text_display was well fetched (assert text_display "Unable to fetch %A name text display" pin) (schSetPropertyDisplay ?object text_display ?visibility (if visible 'value 'off))))
You should be able to use them like this:
;; Display all pin names in current cellview(foreach pin (get_schematic_pins) (display_schematic_pin_name pin));; Display name of pin created before using schCreatePin(display_schematic_pin_name pinId)
Hope this helps
Thank for reply, but What I wanted was putting label on not 'schematic pin' but 'symbolic pin'.
So, I used schCreateSymbolPin rather than schCreatPin.
If I use just 'schCreateSymbolPin' , then the label (the name of each pin) is not visible, so I want modify the 'Display' option in its Object Property from 'off' to 'value'.
I also tried applying the 'schSetPropertyDisplay' but it dosen't wok, but of course, I might do wrong ..lol