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(). |
deleteMe | Deletes the rule from the design or library. If the rule is in the library and set as the default rule, you cannot delete it. If the rule is in a design and is used by a component you cannot delete it. |
Name | Description |
clearance | The clearance used for plastic features. When using a float to set the value, it is defined in centimeters. When using a string to set the expression, the units can be defined as part of the expression or it defaults to the units associated with the rule if no units are specified. |
draftAngle | The draft angle used for plastic features. When using a float to set the value, it is defined in radians. When using a string to set the expression it uses degrees. |
isDefault | This gets and sets which rule in a library is the default rule. This is only valid for rules in a library and will fail for rules in a design. |
isUsed | Indicates if this rule is currently being used by a component. This is only valid for rules in a design. |
isValid | Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference. |
knifeEdgeThreshold | The minimal thickness where an edge is considered a knife edge. This is used by the Design Advice command when analyzing the part for manufacturability. When using a float to set the value, it is defined in centimeters. When using a string to set the expression, the units can be defined as part of the expression or it defaults to the units associated with the rule if no units are specified. |
material | Gets and sets the material assigned to this plastic rule |
maximumThickness | The maximum thickness of the part in centimeters. This is used by the Design Advice command when analyzing the part for manufacturability. |
minimumDraftAngle | The minimum draft angle allowed in radians. This is used by the Design Advice command when analyzing the part for manufacturability. |
minimumThickness | The minimum thickness of the part in centimeters. This is used by the Design Advice command when analyzing the part for manufacturability. |
name | The name of the plastic rule. When setting the name, it must be unique with respect to other plastic rules in the design or library. |
nominalRadius | The nominal radius used for plastic features. When using a float to set the value, it is defined in centimeters. When using a string to set the expression, the units can be defined as part of the expression or it defaults to the units associated with the rule if no units are specified. |
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(): |
parentDesign | Returns the parent design for a plastic rule in a design or it returns null if the plastic rule is in the library. |
revealHeight | The reveal height used for plastic features. When using a float to set the value, it is defined in centimeters. When using a string to set the expression, the units can be defined as part of the expression or it defaults to the units associated with the rule if no units are specified. |
thickness | The thickness used for plastic features. This value must be within the range specified by the minimumThickness and maximumThickness properties. This is used by the plastic commands when a wall thickness is needed. When using a float to set the value, it is defined in centimeters. When using a string to set the expression, the units can be defined as part of the expression or it defaults to the units associated with the rule if no units are specified. |
thicknessVariation | The maximum thickness of the part. This is used by the Design Advice command when analyzing the part for manufacturability. When using a float to set the value, it is defined in centimeters. When using a string to set the expression, the units can be defined as part of the expression or it defaults to the units associated with the rule if no units are specified. |
units | Gets the units this rule uses to display values in the dialog. Rules currently only use mm or inch and the units are permanently associated with a rule and cannot be modified. |