de_boolean_logical()

Performs boolean operations on shapes placed on different layers in a layout presentation. Returns: none.

Syntax:

de_boolean_logical(operator, inLayer1, inLayer2, outLayer, rmLayer1, rmLayer2, applyToSelect[, winInstH]);

where

operator is a string that specifies the boolean operation to be performed. The choices are "AND", "OR", "XOR", and "DIFF".

inLayer1 and inLayer2 are integers that specify the layers containing the shapes to perform the boolean operation on.

outLayer is an integer that specifies the layer to contain the results of the boolean operation.

rmLayer1 and rmLayer2 are boolean flags that specify whether the input shapes are to be deleted or not. Choices are:

  • TRUE = delete the shapes.
  • FALSE = do not delete the shapes.

applyToSelect is a boolean flag that specifies whether the boolean operation is only to be performed on the input layers that have been selected. Choices are:

  • TRUE = use only those shapes in the operation that have been selected in the input layers.
  • FALSE = use all shapes in the input layers.

winInstH is an optional parameter. It is the handle to the window containing the layout representation to use for the boolean operation. If unspecified, the current window is used.

Example:
de_set_layer(1);
de_add_rectangle(-200, -50, 0, 50);
de_set_layer(2);
de_add_circle(0, 0, 50);
de_boolean_logical("AND", 1, 2, 3, TRUE, TRUE, FALSE);

Where Used:

Layout

 

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

Contents
Additional Resources