DistanceExtentDefinition.create Method

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

Description

Statically creates a new DistanceExtentDefinition object. This is used as input when defining the extents of a feature to be a specified distance.

Syntax

This is a static method.
returnValue = adsk.fusion.DistanceExtentDefinition.create(distance)
This is a static method.
#include <Fusion/Features/DistanceExtentDefinition.h>

returnValue = adsk::fusion::DistanceExtentDefinition::create(distance);
This is a static method.
returnValue = adsk.fusion.DistanceExtentDefinition.create(distance);

Return Value

Type Description
DistanceExtentDefinition Returns the newly created DistanceExtentDefinition or null in the case of failure.

Parameters

Name Type Description
distance ValueInput A ValueInput that defines the distance of the extrusion.

Samples

Name Description
Extrude Feature API Sample

Demonstrates creating a new extrude feature.

Before running: No open document is required; the script creates a new design (or additional documents) as it runs.

The script uses the timeline (<code>rollTo</code>) to inspect feature history.

Manage Participant Bodies API Sample

Demonstrates how to manage participant During Cut operation. Same API can be used to manage participants During intersection also.

Before running: No open document is required; the script creates a new design (or additional documents) as it runs.

Version

Introduced in version November 2016