Skill code

S

saud

Guest
While running the Skill code for the schematic, in which a wire is to
be labelled a specific name as follows:


cvId = dbOpenCellViewByType( "sar_adc" "comp_prac1" "schematic" ""
'w )

wireId = schCreateWire( cvId "route" "full" list(-0.75:1 0:1) 0.0625
0.0625 0 )

schCreateWireLabel( cvId wireId (0:1) "net6" "lowerCenter" "R0"
"fixed" 0.1 nil )

For the above code, an error was recieved saying, " *Error*
Invalid value specified for argument "glue". "

Please give me the solution.
 
On May 15, 5:30 am, saud <sau...@gmail.com> wrote:
While running the Skill code for the schematic, in which a wire is to
be labelled a specific name as follows:

cvId = dbOpenCellViewByType( "sar_adc" "comp_prac1" "schematic" ""
'w )

wireId = schCreateWire( cvId "route" "full" list(-0.75:1 0:1) 0.0625
0.0625 0 )

schCreateWireLabel( cvId wireId (0:1) "net6" "lowerCenter" "R0"
"fixed" 0.1 nil )

For the above code, an error was recieved saying, " *Error*
Invalid value specified for argument "glue". "

Please give me the solution.
Because schCreateWire returns a list:
you will need to either use
wireId = car(schCreateWire( cvId "route" "full" list(-0.75:1 0:1)
0.0625 0.0625 0 ))

or

schCreateWireLabel( cvId car(wireId) (0:1) "net6" "lowerCenter" "R0"
"fixed" 0.1 nil )

Terry
 

Welcome to EDABoard.com

Sponsor

Back
Top