get_port_location()遇到的问题
-
官方解释
Based on the location and any rotation and/or mirroring of this
component, return the location of the named port.Parameters:
name (str): Name of portReturns:
Location (x,y) of the port,
orNone
if the port is not enabled or does not exist. -
我新建了一个resistor的组件,打开properties,按照里面的ports的name:A,B试着代入,发现报错。
execute <command name="get-port-location" scope="UserCmp" sequence-