TimelineObject.rollTo Method

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

Description

Rolls the timeline by repositioning the marker to either before or after this object. This method will fail if this is a timelineGroup object and the group is expanded.

Syntax

"timelineObject_var" is a variable referencing a TimelineObject object.

returnValue = timelineObject_var.rollTo(rollBefore)
"timelineObject_var" is a variable referencing a TimelineObject object.

#include <Fusion/Fusion/TimelineObject.h>

returnValue = timelineObject_var->rollTo(rollBefore);
"timelineObject_var" is a variable referencing a TimelineObject object.

returnValue = timelineObject_var.rollTo(rollBefore);

Return Value

Type Description
boolean Returns true if the move was successful

Parameters

Name Type Description
rollBefore boolean Set rollBefore to true to reposition the marker before this object or to false to reposition the marker after this object

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.

Fillet Feature Edit API Sample

Demonstrates editing a fillet feature.
To successfully run this sample you can use this file or create a new model with the described fillet feature.

  1. Create a new model and add a block feature.
  2. Create a single fillet feature that defines three different fillets. The fillets need to be created in a way where they don't interact with one another. The easiest way is to create the fillets only on the vertical edges of the box.
    1. Create a constant radius fillet with a radius that is about 1/4 the size of the box.
    2. Create a chord length fillet whose radius is also about 1/4 the size of the box.
    3. Create a variable radius fillet with one intermediate radius and the radii are about 1/4 the size of the box and less.
Running the sample script will modify various settings of each fillet and change the edge each fillet is applied to.

Ruled Surface Feature API Sample

Demonstrates creating a new ruled surface feature.

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

Version

Introduced in version August 2014