ThreadInfo Object

Derived from: Base Object
Defined in namespace "adsk::fusion" and the header file is <Fusion/Features/ThreadInfo.h>

Description

This class defines the methods and properties that define the type and size of a thread. This object is used to create new thread features and to query and edit existing thread features. A new ThreadInfo object is created by using the ThreadFeatures.createThreadInfo method. If the ThreadInfo object is obtained from an existing thread feature, modifying properties on the ThreadInfo object will modify the feature.

Methods

Name Description
classType Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType().

Properties

Name Description
isInternal Returns and sets if the thread is an internal or external thread. A value of true indicates an internal thread. It defaults to true.
isValid Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference.
majorDiameter Returns the value that defines the major diameter. The units are centimeters.
minorDiameter Returns the value that defines the minor diameter. The units are centimeters.
objectType This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object.

It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType():
pitchDiameter Returns the value that defines the pitch diameter. The units are centimeters.
threadAngle Returns the value that defines the thread angle. The units are degrees.
threadClass Returns and sets the string that defines the thread class.
threadDesignation Returns and sets the string that defines the thread designation.
threadPitch Returns the value that defines the thread pitch. The units are centimeters.
threadSize Returns the string that defines the thread size. This is
threadType Returns and sets the string that defines the thread type.

Accessed From

ThreadFeature.threadInfo, ThreadFeatureInput.threadInfo, ThreadFeatures.createThreadInfo

Samples

Name Description
Thread Feature API Sample Demonstrates creating a new thread feature.

Version

Introduced in version January 2015