invert_edges()

Deselects selected edges and simultaneously selects unselected edges.

See also: dve_drc()

Syntax

dve_drc (invert_edges (inLayer) [, msgString]);

where:

inLayer A polygon layer
msgString A string value that will be attached to the selected error segments

Example

The following example demonstrates the use of invert_edges() to highlight paths that are within a specified clearance distance.

First, measure the distance between parallel edges and select edges that are within the distance of 12.

decl lyrCond = dve_import_layer ("cond");
decl lyrError101 = dve_export_layer ("error101");
decl lyrEdgesGap = dve_drc (single_clearance (lyrCond) <= 12.0,
DVE_RN_POLARITY, DVE_RV_OUTSIDE, DVE_RN_TEMPLATE, DVE_RV_OPPOSITE,
DVE_RN_EDGE_ANGLES, DVE_RV_PARALLEL, DVE_RN_STRUCTURE, DVE_RV_DIFF_POLYGON);

Next, use invert_edges to invert the error segments: good become bad and bad become good.

decl lyrEdgesInvert= dve_drc (invert_edges (lyrEdgesGap));

Select opposite edges inside the paths:

decl lyrEdges= dve_drc (double_clearance (lyrEdgesGap, lyrEdgesInvert) 26.0,
     DVE_RN_POLARITY, DVE_RV_INSIDE,
     DVE_RN_TEMPLATE, DVE_RV_OPPOSITE,
     DVE_RN_EDGE_ANGLES, DVE_RV_PARALLEL);


Finally, extract the path using quadout:

decl lyrPoly = dve_quadout (lyrEdges);
lyrError101 = dve_drc (all_edges (lyrPoly), "Parallel interconnect < 12.0");

 

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

Contents
Additional Resources