PCB Walk-through 10: 3D Modeling and Collision Detection

November 8, 2021

This tutorial demonstrates complete STEP Model mapping and collision detection within the 3D Canvas in OrCAD PCB Designer 17.4 (2021).  After you complete this tutorial, you will be able to:

  • Map 3D Models to PCB footprints
  • Add mechanical housing and models
  • Perform collision detection
  • Cross-probe between 2D and 3D to resolve collisions

To follow along, continue working with the design completed in PCB Walkthrough 9 or open the provided board file in the folder directory, PCB Walkthrough 10_3D Modeling.   

Note: To change the view to replicate what is shown in the video, select the Color button from the toolbar. Change the colors to the following:

Stack-up: Select All except Powerplane_1 and Bottom

Area: Select All

Geometry: Select All except Dimension
Components: Select All
Manufacturing: Remove All

Drawing Format: Remove All

Click OK to close the Color Window.

  1. Select the Move button from the toolbar and select the USB Connector, X1.
  2. In the Command Window, type x 20 46 and Enter.

Note: This move is required for proper integration with the mechanical enclosure. If any changes are made to the board, manufacturing artwork and documentation will require regeneration.

  1. Select Y1 and click to place on the PCB Canvas to ensure there is no interference with the USB Connector, X1.
  2. Select the Delete button on the toolbar and select traces that have been unconnected due moving the components.
  3. Select Route > Connect from the menu and route the unconnected traces. Right click and select Done.
  4. Select the 3D button from the toolbar or Display > 3D Canvas from the menu.

Note: When first selecting the 3D Canvas, the 3D Canvas Filter will be activated. Here you can select which portions of the design are included in the 3D representation. Within the 3D canvas, you can select which layers are visible in the visibility tab. You can select which models are visible in the symbols tab. By default, any components without 3D models are represented with a boundary shape. To change this, select Setup > Preferences > Symbol Representation and select the desired display for each symbol.

  1. In the 3D canvas, select the 3D Mapper tab.

Note:  If this window is not activated, select View > Windows > 3D Mapper.

  1. In the Map To Window, select Footprint and choose 1210 from the list of components.
  2. Select Primary as the Model Type.
  3. Browse for the model file and select 1210_AVX.step.
  4. Complete the STEP Mapping for all the components using the table below:

Note: No adjustments need to be made for these step models as they are automatically aligned to the PCB footprints.

Package

Step Model

 
 

1210

1210_AVX.step

 

0402-CAP

0402_AVX.step

 

0402-RES

RC0402N_YAG.step

 

1X06_Lock

conn1x6.step

 

CRYSTAL-SMD

crystal4.step

 

LED_LNJ

LED_LNJ.step

 

SOP65P490X110-9N

LT1965EMS8E#PBF.stp

 

SQFP-S-10X10-64

QFP64-16X16_P0_5.step

 

 
  1. Complete the STEP Mapping for the following components by adjusting the rotation and offset according to the table below:

Package

Step Model

Rotation

Offset

X

Y

Z

X

Y

Z

USB-MicroB

USB_MicroAB.STEP

0

0

0

-3.6

3

2.25

XTEND-DIGI-MODEM

xtend_digi_modem.step

90

180

0

31.15

18.2881

5

Note: The 3D Mapper includes several options for quick and efficient model mapping including automatic mapping, manual mapping, mapping to the top or bottom of the board, and more.

  1. Under Map To, select Mechanical. Double-click Create Mechanical Model.

  1. Double-click the newly created model to change the name. Enter the name STEP3D_MECH_USB and Enter or click outside the text box.
  2. Map USB.STEP to the new mechanical package using the table below:

Package

Step Model

Rotation

Offset

X

Y

Z

X

Y

Z

STEP3D_MECH_USB

USB.STEP

90

90

0

20

58.75

5.5

 

Note: Select View > Camera from the menu to change the view and ensure the STEP file is mapped correctly. To rotate the board in the 3D Canvas, hold down the SHIFT key on the keyboard and press the middle mouse button.

  1. Double-click Create Mechanical Model.
  2. Enter the name STEP3D_MECH_ENCLOSURE and Enter or click outside the text box.
  3. Map Enclosure.STEP to the new mechanical package using the table below:

Package

Step Model

Rotation

Offset

X

Y

Z

X

Y

Z

STEP_3D_MECH_ENCLOSURE

Enclosure.STEP

90

0

0

50.5

25

4

 

Note: To turn visibility on/off for mechanical symbols and components in the design select View > Windows > Symbols from the menu. To adjust the transparency of the mechanical models, select Setup > Preferences > Symbol Representation from the menu.

  1. Select the Collision Detection tab and select Calculate.

Note: If this tab is not visible, select View > Windows > Collision Detection from the menu.

  1. Right click on an item and select Locate or select an item from the list to highlight the component in the 3D view.

Note: The Locate command will make the component flash for easy detection. Enable the cutting plane to view a cross section of the PCB to help determine collision and design structure issues. Right click the 3D Canvas and select Cutting Plane. Check Enable Cutting Plane. Adjust the Offset and Tilt in the X, Y, and Z directions for more detail. Right click and select Done when finished.

  1. Select Setup > Preferences from the menu.

  1. Select Interactive and check Enable 2D/3D Interactive. Click OK.

Note: To rotate the board hold down the shift key and middle mouse button or you can choose preset views by selecting View > Camera in the menu. 

  1. Set up a split screen between the PCB Canvas and the 3D Canvas.
  2. Click to move the connector JP2 in the PCB to line up with the existing cutout on the enclosure.

Note: The changes will appear automatically in the 3D view once the part is placed.

  1. Re-route the connections.

Note: Delete the existing traces. In the Design Window, select Interconnect > Manual Routing > Add Connect. Click to place the trace. Right click and select Done when finished. In the Design Workflow, select Display Status to confirm the routing.

  1. In the Collision Detection tab, select Calculate.

 

Note: The errors have been resolved and only the collision between X1 and the USB is reported.

  1. Back in the PCB Canvas, select File > Save (CTRL-S) from the menu or the Save button on the toolbar. Select YES to overwrite the design.
  2. In the 3D Canvas, select File > Export.

  1. Select PDF 3D as the file type.
  2. Name the file and click OK.
Previous Article
Quick Tutorial: How to Redo Reference Designators on the PCB
Quick Tutorial: How to Redo Reference Designators on the PCB

Next Article
PCB Walk-through 9: Manufacturing Export
PCB Walk-through 9: Manufacturing Export