SketchLines.addAngleChamfer Method

Parent Object: SketchLines
Defined in namespace "adsk::fusion" and the header file is <Fusion/Sketch/SketchLines.h>

Description

Creates a chamfer between two sketch lines. In the case where the two input lines cross each other creating an "X" shape, this results in four quadrants where the chamfer can be placed. The point arguments are used to define which of the four quadrants the chamfer should be created in. The two points define which side of the two lines should be kept and the other end will be trimmed by the chamfer. The easiest way to use this is to use the end points of the lines on the side you want to keep. In the case where the lines don't intersect or connect at the end points, there is only one valid quadrant for the chamfer so the points are ignored.

Syntax

"sketchLines_var" is a variable referencing a SketchLines object.
returnValue = sketchLines_var.addAngleChamfer(firstLine, firstLinePoint, secondLine, secondLinePoint, distance, angle)
"sketchLines_var" is a variable referencing a SketchLines object.

#include <Fusion/Sketch/SketchLines.h>

returnValue = sketchLines_var->addAngleChamfer(firstLine, firstLinePoint, secondLine, secondLinePoint, distance, angle);

Return Value

Type Description
SketchLine Returns the newly created SketchLine object that represents the chamfer or null if the creation failed.

Parameters

Name Type Description
firstLine SketchLine The first line you want to chamfer.
firstLinePoint Point3D A point on the first line that is on the side of the intersection with the second line that you want to keep.
secondLine SketchLine The second line you want to chamfer.
secondLinePoint Point3D A point on the second line that is on the side of the intersection with the first line that you want to keep.
distance double Defines the distance of the start point of the chamfer from the intersection point of the two lines along the first line. The distance is defined in centimeters.
angle double Defines the angle of the chamfer as measured from the first line. The angle is defined in radians.

Samples

Name Description
Sketch Chamfer API Sample Demonstrates creating a new sketch point.
SketchLines.addAngleChamfer Demonstrates the SketchLines.addAngleChamfer method.

Version

Introduced in version March 2021