db_get_port_attribute()

Returns the value of the port attribute. If the attribute is not found, the function returns NULL.

Syntax:

db_get_port_attribute(portHandle, portAttribute);

where

portHandle is the handle to the port

portAttribute is the attribute type for the port, where:

  • PORT_LOCATION = Location handle: for x,y and angle of port
  • PORT_NUMBER = Port number; an integer
  • PORT_SELECT = Flag whether port is selected
  • PORT_SELECT_CHANGED = Flag whether port selection had changed
  • PORT_NAME = Name of the port; a string
  • PORT_POWER = Power of the port
  • PORT_PROPERTY = Head of the property list

Example:
decl portHandle = db_get_symbol_attribute(symbolHandle, SYMB_PORT_HEAD);
decl select = db_get_port_attribute(portHandle, PORT_SELECT);
Where Used:

Schematic, Layout

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources