The OFFSETPOLYLINE Spreadsheet Function allows for vector points to be entered, from a polyline token, for example, and the function then returns the vector coordinates offset by the desired amount.
The OFFSETPOLYLINE function is formatted as such:
There are a couple of different ways to go about utilizing the OFFSETPOLYLINE function. In this example, the Edit Design Data interface is used to demonstrate the process, but the function can be just as easily used through Part Properties.
Skip to the bottom of this page for a video demonstrating this process.
Start with the Misc. Starter Part and add a Polyline Token with a Lead-In and Lead-Out.
Select Edit Design Data > select the Misc. Starter Part > select the Prompts tab.
Create a new Prompt named "Offset Route." For more information on adding prompts, see Tutorial: Add a Custom Prompt. After the prompt has been added and the name is defined, right-click in the Value cell of the new prompt and select Insert Function.
Select OFFSETPOLYLINE from the Function List.
From this window, all of the necessary parameters for the OFFSETPOLYLINE function can be entered. For more information on working in the Function Arguments window, see Using Formula Editor. The OFFSETPOLYLINE function can be entered manually in the cell if preferred.
This function looks like:
If done correctly, the Offset Route prompt's value should now be seen as a red (formula-driven) set of vectors.
Return to the CutParts tab of the Edit Design Data window > scroll to your PLINE5 Machine Token 1 > copy the token, ensuring that all of the parameters are selected, and paste it into the blank Machine Token 2 cell.
Change Parameter 1 of Machine Token 2 to:
This change replaces the original vectors with the offset vectors. If everything has been done correctly, a new set of red vectors are displayed in Parameter 1 of Machine Token 2. Comparing these vectors with the original vectors in Machine Token 1 reveals that the Y value has been offset by 1, the amount entered for the Offset Value parameter in Figure 04 above.
Select Save, Close, & Redraw and the Misc. Starter Part is redrawn with the new offset route added.
Return to the Edit Design Data interface. Change the second option of the Parameter 4 column from "0" to "1" for both machine tokens. This change identifies each rectangular polyline section as a "Region," which is pocketed.
Return to the Prompts Tab. Edit the Offset Route prompt's value (the OFFSETPOLYLINE Function). This time, enter "0" for Parameter 6. Enter the z depth used in the vectors of the original PLINE for Parameter 7. Enter a new, deeper depth for Parameter 8.
Save, Close, & Redraw. Observe the two pockets. The first pocket remains the same depth, equal to the value entered in Parameter 7 above. The pocket offset from the first has a new depth equal to the value of Parameter 8.
Parameter 6 is used when there is a bulge added to the Polyline. Add a bulge to the original PLINE and create a new prompt named "Offset Bulge Values." Copy the OFFSETPOLYLINE function from the Offset Route prompt, and paste it into the Value cell of the new prompt. Change Parameter 6 to "1" and enter the original PLINE's new bulge values for Parameter 2.
Back in the CutParts tab, enter the following into Parameter 2 of the Offset PLINE:
Save, Close, & Redraw. The result should look something like Figure 11.