db_get_wire_attribute()
Returns a wire attribute, given a handle to the wire and an attribute key. Wires and Traces are the same object. A trace is simply a wire with a width > 0. Traces are used in layout to represent actual physical connectivity, while wires are used in both layout and schematic to represent ideal electrical connectivity. Width, bend and miter radius are only relevant to traces.
Syntax:
db_get_wire_attribute(wireHandle, wireAttribute);
where
wireHandle is a handle to a wire.
wireAttribute is the wire attribute, where:
- WIRE_WIDTH = Width of the wire/trace in user units
- WIRE_ID = Unique wire ID number
- WIRE_BEND = Type of wire corner; returns one of these types:
- DB_MITERED_CORNER
- DB_SQUARE_CORNER
- DB_CURVED_CORNER
- WIRE_MITERRADIUS = If curved, the curve radius angle*1000
- WIRE_SEGMENT = Handle to segment list
Example:
if (db_get_dg_attribute(dgHandle, DG_TYPE)==WIRE_DG_TYPE)
{
decl wireHandle = db_get_dg_attribute(dgHandle, DG_DATA);
decl wireWidth = db_get_wire_attribute(wireHandle, WIRE_WIDTH);
}
Where Used:
Schematic, Layout
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()