Skip to Content
FASTSUITE E2API ReferencePython APIAPI DomainsToolpathInterpolation Handler

Interpolation Handler

Quick Facts

PropertyValue
ClassCENPyOlpInterpolationHandler
Modulecenpylib.CENPyOlpInterpolationHandler
Packagecenpylib
ReleaseR2025.2.4
Methods14

Quick Start

# Boilerplate Example interpolationHandler = ... # obtained from the runtime context result = interpolationHandler.IsInterpolated(tpElement, 0)

Method Index

MethodReturnsSummary
CreatePathInterpolationintCreate path interpolations between given toolpath elements.
DeletePathInterpolationintDelete path interpolations between given toolpath elements.
SwitchPathInterpolationTypeintSwitch path interpolations types for given toolpath elements between Relative and Absolute,
AddPathInterpolationSupportintAdd given toolpath element as support for the specified types of path interpolations.
RemovePathInterpolationSupportintRemove given toolpath element as support for the specified types of path interpolations.
CreateSurfaceInterpolationintCreate surface interpolations between given toolpath tracks.
DeleteSurfaceInterpolationintDelete surface interpolations between given toolpath tracks.
SwitchSurfaceInterpolationTypeintSwitch surface interpolations types for given toolpath tracks between Relative and Absolute,
AddSurfaceInterpolationSupportintAdd given toolpath track as support for the specified types of surface interpolations.
RemoveSurfaceInterpolationSupportintRemove given toolpath track as support for the specified types of surface interpolations.
IsInterpolatedboolCheck whether or not the given toolpath element has the path interpolation of the given type.
IsInterpolatedboolCheck whether or not the given track has the surface interpolation of the given type.
IsSupportboolCheck whether or not the given toolpath element is a support of any kind for a particular interpolation type.
IsSupportboolCheck whether or not the given track is a support of any kind for a particular interpolation type.

Lifecycle

CreatePathInterpolation

def CreatePathInterpolation(startTpElement: CENPyOlpTpElement, endTpElement: CENPyOlpTpElement, types: list) -> int

Create path interpolations between given toolpath elements.

Parameters:

NameTypeDescription
startTpElementCENPyOlpTpElementStart toolpath element.
endTpElementCENPyOlpTpElementEnd toolpath element.
typeslistOne or more types of interpolation to create.

Returns: int — ERR_NO_ERROR (0) if successful, error code otherwise.

CreateSurfaceInterpolation

def CreateSurfaceInterpolation(startTrack: CENPyOlpTrack, endTrack: CENPyOlpTrack, types: list) -> int

Create surface interpolations between given toolpath tracks.

Parameters:

NameTypeDescription
startTrackCENPyOlpTrackStart track.
endTrackCENPyOlpTrackEnd track.
typeslistOne or more types of interpolation to create.

Returns: int — ERR_NO_ERROR (0) if successful, error code otherwise.

Query Methods

IsInterpolated

def IsInterpolated(tpElement: CENPyOlpTpElement, type: int) -> bool

Check whether or not the given toolpath element has the path interpolation of the given type.

Parameters:

NameTypeDescription
tpElementCENPyOlpTpElementReference toolpath element.
typeintType of interpolation to check for.

Returns: bool — True if the toolpath element has interpolation of the given type, otherwise False.

IsInterpolated

def IsInterpolated(track: CENPyOlpTrack, type: int) -> bool

Check whether or not the given track has the surface interpolation of the given type. Track is considered as interpolated if its event based start toolpath element has interpolation.

Parameters:

NameTypeDescription
trackCENPyOlpTrackReference track.
typeintType of interpolation to check for.

Returns: bool — True if the toolpath element has interpolation of the given type, otherwise False.

IsSupport

def IsSupport(tpElement: CENPyOlpTpElement, type: int) -> bool

Check whether or not the given toolpath element is a support of any kind for a particular interpolation type.

Parameters:

NameTypeDescription
tpElementCENPyOlpTpElementReference toolpath element.
typeintType of interpolation to check for.

Returns: bool — True if the toolpath element is a support, otherwise False.

IsSupport

def IsSupport(track: CENPyOlpTrack, type: int) -> bool

Check whether or not the given track is a support of any kind for a particular interpolation type. Track is considered as a support if its event based start toolpath element is a support.

Parameters:

NameTypeDescription
trackCENPyOlpTrackReference toolpath element.
typeintType of interpolation to check for.

Returns: bool — True if the track is a support, otherwise False.

Mutation Methods

DeletePathInterpolation

def DeletePathInterpolation(startTpElement: CENPyOlpTpElement, endTpElement: CENPyOlpTpElement, types: list) -> int

Delete path interpolations between given toolpath elements.

Parameters:

NameTypeDescription
startTpElementCENPyOlpTpElementStart toolpath element.
endTpElementCENPyOlpTpElementEnd toolpath element.
typeslistOne or more types of interpolation to delete.

Returns: int — ERR_NO_ERROR (0) if successful, error code otherwise.

AddPathInterpolationSupport

def AddPathInterpolationSupport(tpElement: CENPyOlpTpElement, types: list) -> int

Add given toolpath element as support for the specified types of path interpolations.

Parameters:

NameTypeDescription
tpElementCENPyOlpTpElementReference toolpath element.
typeslistOne or more types of interpolation to add support to.

Returns: int — ERR_NO_ERROR (0) if successful, error code otherwise.

RemovePathInterpolationSupport

def RemovePathInterpolationSupport(tpElement: CENPyOlpTpElement, types: list) -> int

Remove given toolpath element as support for the specified types of path interpolations.

Parameters:

NameTypeDescription
tpElementCENPyOlpTpElementReference toolpath element.
typeslistOne or more types of interpolation to remove support from.

Returns: int — ERR_NO_ERROR (0) if successful, error code otherwise.

DeleteSurfaceInterpolation

def DeleteSurfaceInterpolation(startTrack: CENPyOlpTrack, endTrack: CENPyOlpTrack, types: list) -> int

Delete surface interpolations between given toolpath tracks.

Parameters:

NameTypeDescription
startTrackCENPyOlpTrackStart track.
endTrackCENPyOlpTrackEnd track.
typeslistOne or more types of interpolation to delete.

Returns: int — ERR_NO_ERROR (0) if successful, error code otherwise.

AddSurfaceInterpolationSupport

def AddSurfaceInterpolationSupport(track: CENPyOlpTrack, types: list) -> int

Add given toolpath track as support for the specified types of surface interpolations.

Parameters:

NameTypeDescription
trackCENPyOlpTrackReference track.
typeslistOne or more types of interpolation to add support to.

Returns: int — ERR_NO_ERROR (0) if successful, error code otherwise.

RemoveSurfaceInterpolationSupport

def RemoveSurfaceInterpolationSupport(track: CENPyOlpTrack, types: list) -> int

Remove given toolpath track as support for the specified types of surface interpolations.

Parameters:

NameTypeDescription
trackCENPyOlpTrackReference track.
typeslistOne or more types of interpolation to remove support from.

Returns: int — ERR_NO_ERROR (0) if successful, error code otherwise.

Utilities

SwitchPathInterpolationType

def SwitchPathInterpolationType(startTpElement: CENPyOlpTpElement, endTpElement: CENPyOlpTpElement, types: list) -> int

Switch path interpolations types for given toolpath elements between Relative and Absolute, or between JoltSmooth and JoltFix.

Parameters:

NameTypeDescription
startTpElementCENPyOlpTpElementStart toolpath element.
endTpElementCENPyOlpTpElementEnd toolpath element.
typeslistOne or more current types of interpolation that should be switched.

Returns: int — ERR_NO_ERROR (0) if successful, error code otherwise.

SwitchSurfaceInterpolationType

def SwitchSurfaceInterpolationType(startTrack: CENPyOlpTrack, endTrack: CENPyOlpTrack, types: list) -> int

Switch surface interpolations types for given toolpath tracks between Relative and Absolute, or between JoltSmooth and JoltFix.

Parameters:

NameTypeDescription
startTrackCENPyOlpTrackStart track.
endTrackCENPyOlpTrackEnd track.
typeslistOne or more current types of interpolation that should be switched.

Returns: int — ERR_NO_ERROR (0) if successful, error code otherwise.

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?