2D Boolean

Introduction

This topic will explain the 2D Boolean functions, describe where to find it, and the optionsfound in it.This topic will also provide quick steps and an example on how to use it, and provide links to related topics.

The 2D Boolean Function

The 2D Boolean functions are used to perform one of three boolean operationson two groups of closed wireframe chains: Add, Subtract, or Intersect.When performing the function, you select two groups of chains that youwant to boolean.

To open 2D Boolean functions, do one of the following:

  • In the Boolean group, of the Create 2D ribbon,click 2D Boolean.

    This will open the 2D Boolean dialog,.The most recently used 2D Boolean function will be active when this icon is selected.If the 2D Boolean functions have not been used in the document, the 2D Boolean - Add function will be active.

  • In the Boolean group, of the Create 2D ribbon,click the down arrow under 2D Boolean, and select 2D Add.

  • In the Boolean group, of the Create 2D ribbon,click the down arrow under 2D Boolean, and select 2D Subtract.

  • In the Boolean group, of the Create 2D ribbon,click the down arrow under 2D Boolean, and select 2D Intersect.

The parameters display in the Data Entry Manager.

Note: No matter which option you selected, you will have access to all the 2D Boolean functions in the Data Entry Manager.

The Data Entry Parameters

The following image shows example geometry selections for the firstand second group.An image of the result is shown below each option.

Type

Add Adds the two groupsof wireframe chains leaving the remaining (outer) boundary of thetwo groups.
Subtract Subtracts thetwo groups of wireframe chains leaving the remaining boundary of thetwo groups.
Intersect Intersectsthe two groups of chains leaving the shared areas of the two.

Important: The orderin which you select the two groups of chains does change the result whenusing Subtract.Pick what you want to keep in the First Geometry Group, and pick what you want to subtract from that in the Second Geometry Group.

First Geometry Group

 

(Delete) - removes the highlighted item from the Selected Geometry list.

(Delete All) - removes all entities from the Selected Geometry list.

The list will display all entities currently selected for the function.

Second Geometry Group

 

(Delete) - removes the highlighted item from the list.

(Delete All)- removes all entities from the list.

This list box will show the entities currently selected for the function.

  • OK - finalizes the function.

  • Cancel - exits the function.

Quick Steps - 2D Boolean

  1. Open the function, and select the booleantype in the Data Entry Manager.

    The First Geometry Group list automatically has focus.

  2. Select the first group of wireframe chains.

    This may be one or more chains.

Tip: You maywant to prepare the geometry in a way that makes it easier to select.For example, you can place each set of chains on a separate layer andthen use Select by Layer while using 2D Boolean.Otherwise, chain selection(hold Shift and click an entity to select the entire chain) is anotherhelpful way to select the chains.

  1. Place the focus on the Second Geometry Group list.

  2. Select the second group of wireframe chains.

    This may be one or more chains.

    The Preview appears.

  3. Confirm the selections to create the final result.

  4. Repeat this process for any other groups of chains.

  5. To close the function, click Cancel.

Example

Part 1) Open the Example File

  1. In the quick access toolbar, click Open.

  2. Navigate to: C:\BobCAD-CAMData\**Current Version**\Examples, and select 2DBoolean Example.bbcd.

  3. With 2DBoolean Example.bbcd displaying in the FileName box, click Open.

    The part opens.


Part 2) Open 2D Boolean

To open 2D Boolean:

  • In the Boolean group, of the Create 2D ribbon,click 2D Boolean.

    This will open the 2D Boolean dialog,.The most recently used 2D Boolean function will be active when this icon is selected.If the 2D Boolean functions have not been used in the document, the 2D Boolean - Add function will be active.

The parameters display in theData Entry Manager, with the focus on the First Geometry Group.

Part 3) Adding Wireframe Groups

In this part, we add the two groups of wireframe chains.

  1. Confirm that the default option, Add,is selected in the Data Entry Manager.

  2. Click to select the circle as the first groupof chains.



    The arc is added to the First Geometry Group.

  3. Click in the Second Geometry Group to give it focus.

  4. Window pick the shapes.



    All geometry is added to the list.

    Since we have also added the large arc to the Second Geometry Group, our preview is not quite right.

  5. Deselect the large arc.



  6. Click OK.



    All geometry is added into a single chain of entities.

  7. Click Cancel to closethe Data Entry Manager.

Part 4) Modifying the Feature Using the CAD Tree

The 2D Boolean function is retained in the CAD Tree.This allows formodifications and more as explained in the CADTree.Next we use the feature to modify the result.

When you cancel the function, the CAD Tree Manager automatically displays.Notice the 2D Boolean feature in the CAD Tree.

  1. Click on the CAD Tree Manager to show the CAD Tree.

  2. In the CADTree, click 2D Booleanto highlight the result of the feature in the graphics area.



  3. Notice under the 2D Boolean feature in tree, are two separate items: Geometry.

    Click each of the Geometry items and noticethat the selected group highlights in the graphics area.

Tip: You canupdate the geometry for the selected groups using the right-click shortcutmenus for each Geometry item.

  1. Right-click 2D Boolean,and click Edit.

    The Data Entry Manager opens and the geometryis preselected for the 2D Boolean function.

    A preview now displays the result of theselected boolean type.



  2. In the Data Entry Manager, click Intersect.

    This updates the preview to show the resultof the Intersect boolean type.You can see that this results in only theshared regions of the two groups.



  3. Click Subtract to updatethe preview.



  4. Click OK to update thefeature.

Note: The Subtractboolean type subtracts the second group from the first, so the order inwhich you select the groups determines the result.For both the Add andIntersect boolean types, the result is the same regardless of the orderin which the groups are selected.

Part 5) Selection Order for Subtract

Next we use the Edit option to modify the geometry selections and showthe difference in the result when reversing the selection order with theSubtract boolean type.

  1. In the CADTree, right-click 2D Boolean,and click Edit.

    This option allows you to completely recreatethe feature, including geometry selection.

  2. Next to each Geometry Group list, click to remove all geometry from each list.

  3. With the focus on the First Geometry Group, hold shift and select each of the outer chains, as seen in the images below.



  4. Click in the Second Geometry Group list to give it focus, and select the large arc.



    The preview appears.

  5. Click OK.



  6. Click Cancel to exit the function.

This concludes the example.

Related Topics

The CADOverview