FastenerAssy Class

class NXOpen.Tooling.FastenerAssy

Bases: NXOpen.Builder

Represents a NXOpen.Tooling.FastenerAssy

To create a new instance of this class, use NXOpen.Tooling.FastenerAssyCollection.CreateBuilder()

Default values.

Property Value
ComponentPatternBuilder.PatternService.AlongPathDefinition.XOnPathSpacing.NCopies.Value 2
ComponentPatternBuilder.PatternService.AlongPathDefinition.XOnPathSpacing.SpaceType Offset
ComponentPatternBuilder.PatternService.AlongPathDefinition.XPathOption Offset
ComponentPatternBuilder.PatternService.AlongPathDefinition.YDirectionOption Section
ComponentPatternBuilder.PatternService.AlongPathDefinition.YOnPathSpacing.NCopies.Value 1
ComponentPatternBuilder.PatternService.AlongPathDefinition.YPathOption Offset
ComponentPatternBuilder.PatternService.AlongPathDefinition.YSpacing.NCopies.Value 1
ComponentPatternBuilder.PatternService.AlongPathDefinition.YSpacing.PitchDistance.Value 10 (millimeters part), 1 (inches part)
ComponentPatternBuilder.PatternService.AlongPathDefinition.YSpacing.SpaceType Offset
ComponentPatternBuilder.PatternService.AlongPathDefinition.YSpacing.SpanDistance.Value 100 (millimeters part), 10 (inches part)
ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.NCopies.Value 12
ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.PitchAngle.Value 30
ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.PitchDistance.Value 10 (millimeters part), 1 (inches part)
ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.SpaceType Offset
ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.SpanAngle.Value 360 (millimeters part), 360 (inches part)
ComponentPatternBuilder.PatternService.CircularDefinition.AngularSpacing.UsePitchOption Angle
ComponentPatternBuilder.PatternService.CircularDefinition.CreateLastStaggered true
ComponentPatternBuilder.PatternService.CircularDefinition.HorizontalRef.RotationAngle.Value 0 (millimeters part), 0 (inches part)
ComponentPatternBuilder.PatternService.CircularDefinition.IncludeSeedToggle true
ComponentPatternBuilder.PatternService.CircularDefinition.RadialSpacing.NCopies.Value 1
ComponentPatternBuilder.PatternService.CircularDefinition.StaggerType None
ComponentPatternBuilder.PatternService.HelixDefinition.AnglePitch.Value 30
ComponentPatternBuilder.PatternService.HelixDefinition.CountOfInstances.Value 6
ComponentPatternBuilder.PatternService.HelixDefinition.DirectionType Righthand
ComponentPatternBuilder.PatternService.HelixDefinition.DistancePitch.Value 10 (millimeters part), 0.4 (inches part)
ComponentPatternBuilder.PatternService.HelixDefinition.HelixPitch.Value 50 (millimeters part), 2 (inches part)
ComponentPatternBuilder.PatternService.HelixDefinition.HelixSpan.Value 100 (millimeters part), 4 (inches part)
ComponentPatternBuilder.PatternService.HelixDefinition.NumberOfTurns.Value 2
ComponentPatternBuilder.PatternService.HelixDefinition.SizeOption CountAngleDistance
ComponentPatternBuilder.PatternService.PatternFill.FillMargin.Value 0 (millimeters part), 0 (inches part)
ComponentPatternBuilder.PatternService.PatternFill.FillOptions None
ComponentPatternBuilder.PatternService.PatternFill.SimplifiedBoundaryToggle False
ComponentPatternBuilder.PatternService.PatternOrientation.AlongOrientationOption NormalToPath
ComponentPatternBuilder.PatternService.PatternOrientation.CircularOrientationOption FollowPattern
ComponentPatternBuilder.PatternService.PatternOrientation.FollowFaceProjDirOption PatternPlaneNormal
ComponentPatternBuilder.PatternService.PatternOrientation.GeneralOrientationOption Fixed
ComponentPatternBuilder.PatternService.PatternOrientation.HelixOrientationOption FollowPattern
ComponentPatternBuilder.PatternService.PatternOrientation.LinearOrientationOption Fixed
ComponentPatternBuilder.PatternService.PatternOrientation.MirrorOrientationOption FollowPattern
ComponentPatternBuilder.PatternService.PatternOrientation.OrientationOption Fixed
ComponentPatternBuilder.PatternService.PatternOrientation.PolygonOrientationOption FollowPattern
ComponentPatternBuilder.PatternService.PatternOrientation.SpiralOrientationOption FollowPattern
ComponentPatternBuilder.PatternService.PatternType Linear
ComponentPatternBuilder.PatternService.PolygonDefinition.NumberOfSides.Value 6
ComponentPatternBuilder.PatternService.PolygonDefinition.PolygonSizeOption Inscribed
ComponentPatternBuilder.PatternService.PolygonDefinition.PolygonSpacing.NCopies.Value 4
ComponentPatternBuilder.PatternService.PolygonDefinition.PolygonSpacing.PitchDistance.Value 25 (millimeters part), 1 (inches part)
ComponentPatternBuilder.PatternService.PolygonDefinition.PolygonSpacing.SpaceType Offset
ComponentPatternBuilder.PatternService.PolygonDefinition.PolygonSpacing.SpanAngle.Value 360
ComponentPatternBuilder.PatternService.PolygonDefinition.RadialSpacing.NCopies.Value 1
ComponentPatternBuilder.PatternService.PolygonDefinition.RadialSpacing.PitchDistance.Value 25 (millimeters part), 1 (inches part)
ComponentPatternBuilder.PatternService.PolygonDefinition.RadialSpacing.SpanDistance.Value 100 (millimeters part), 4 (inches part)
ComponentPatternBuilder.PatternService.RectangularDefinition.CreateLastStaggered true
ComponentPatternBuilder.PatternService.RectangularDefinition.SimplifiedLayoutType Square
ComponentPatternBuilder.PatternService.RectangularDefinition.StaggerType None
ComponentPatternBuilder.PatternService.RectangularDefinition.XSpacing.NCopies.Value 2
ComponentPatternBuilder.PatternService.RectangularDefinition.YSpacing.NCopies.Value 1
ComponentPatternBuilder.PatternService.SpiralDefinition.DirectionType Lefthand
ComponentPatternBuilder.PatternService.SpiralDefinition.NumberOfTurns.Value 1 (millimeters part), 1 (inches part)
ComponentPatternBuilder.PatternService.SpiralDefinition.RadialPitch.Value 50 (millimeters part), 2 (inches part)
ComponentPatternBuilder.PatternService.SpiralDefinition.SizeSpiralType NumberOfTurns
ComponentPatternBuilder.PatternService.SpiralDefinition.TotalAngle.Value 360 (millimeters part), 360 (inches part)

New in version NX5.0.0.

Properties

Property Description
ComponentPatternBuilder Returns or sets the current component pattern builder
PositioningFeature Returns or sets the positioning feature that needed for fastener assembly
Tag Returns the Tag for this object.

Methods

Method Description
AddParentNewPart Adds new part for the parent node
AddRemovalHoleIndex Add the removal hole index in the fastener setup data
AddScrewArray Adds stack array
AddTopNode Adds top node for the fastener assembly
AdjustFastenerLength Adjusts the fastener assembly length
Commit Commits any edits that have been applied to the builder.
CreateArrayHole Creates array hole data for the fastener assembly
CreateFastenerConstraints Creates fastener assembly constraint
CreatePatternComponent Create the pattern component when the positioining pattern sketch feature is not exsit; edit pattern component when the positioining pattern feature is exsit
CreatePositioningFeatureOnPoint Create positioning feature on the given position
CreateReusableBuilder Creates new reusable builder
CreateReusablePocket Creates reusable pocket
CreateSameAssemblyData Creates the same assembly data type
DeleteArrayHole Deletes array hole data for the fastener assembly
DeleteReusablePocket Deletes reusable pocket
Destroy Deletes the builder, and cleans up any objects created by the builder.
EraseAssemblyData Erases the assembly data
EraseFastenerAssembly Erases fastener assembly
EraseFastenerAssemblyData Erases the fastener assembly data, including the hole data and assembly data in the fastener setup data
EraseFastenerSetupData Erases the data (hole and assembly data) in fastener assembly
EraseStackArray Erases stack array
FindPositioningFeatureSet Find the positioning feature set by pattern sketch
GetCommittedObjects For builders that create more than one object, this method returns the objects that are created by commit.
GetFastenerMode Gets the fastener mode
GetFastenerSelectionType Gets the selection type for the hole in the fastener assembly
GetObject Returns the object currently being edited by this builder.
GetReusablePocketBuilder Gets the reusable pocket builder
InitPocketBuilder Inits pocket builder
OffsetPositioningFeature Offset the positioning feature
ReadAssemblyConfigure Reads fastener assembly configuration data from the hole data
RemoveFastenerConstraints Removes fastener assembly constraint
RemoveSelectedHole Removes the selected hole from the fastener setup data
RenameParentNode Renames the parent node
SaveDropPointPosition Keep the first drop point position
SaveUdoData Saves UDO data for fastener assembly
SelectScrewSize Selects the screw size
SetAssemblyExtentLength Sets the extent length for the fastener assembly data
SetBlindHole Sets the blind hole for the hole in the fastener assembly
SetCreatePocket Sets the flag to indicate whether to create pocket when adding the fastener
SetDefaultPlanarFaces Sets the default planar face for the hole in the fastener assembly
SetFastenerExtentLength Sets the extent length for the hole in the fastener assembly
SetFastenerMode Sets the fastener mode
SetFastenerSelectionType Sets the selection type for the hole in the fastener assembly
SetHoleDatumCsys Sets the datum CSYS for the hole in the fastener assembly
SetHoleDefaultCylindricalFace Sets the default cylindrical face for the hole in the fastener assembly
SetHoleDiameter Sets the diameter for the hole in the fastener assembly
SetHoleDirection Sets the direction for the hole in the fastener assembly
SetHoleFaces Sets the faces for the hole in the fastener assembly
SetHoleHeight Sets the height for the hole in the fastener assembly
SetHoleOriginDiameter Sets the origin diameter for the hole in the fastener assembly
SetHoleOriginHeight Sets the origin height for the hole in the fastener assembly
SetHoleOriginPosition Sets the origin position for the hole in the fastener assembly
SetHolePosition Sets the position for the hole in the fastener assembly
SetHoleSideCylindricalFaces Sets the side cylindrical faces for the hole in the fastener assembly
SetInstanceFeatureFaces Sets the instance feature face for the hole in the fastener assembly
SetItemName Adds item description for the part
SetReusablePocketBuilder Sets the reusable pocket builder
SetReuseBuilder Sets the reuse builder
SetSidePlanarFaces Sets the side planar faces for the hole in the fastener assembly
ShowResults Updates the model to reflect the result of an edit to the model for all builders that support showing results.
SubstituteFastenerStack Substitutes fastener stack
UpdateDefaultStandard Updates default standard hole data for the fastener assembly configuration
UpdateFastenerLength Updates the fastener length
UpdateFastenerStacks Updates fastener stacks
UpdateHoleData Updates the hole data
UpdateHolePostion Updates the hole positon for position method
UpdateStackPosition Updates the fastener assembly after changing stacks or changing stack properties
UpdateTopBottomStacks Updates fastener assembly according to the new extends
Validate Validate whether the inputs to the component are sufficient for commit to be called.

Enumerations

FastenerAssyHoleOperation Enumeration Represents the action on the hole menu of the fastener assembly.
FastenerAssyModeMethod Enumeration Represents adding and editing modes for the fastener assembly
FastenerAssySelectionObjectMethod Enumeration Represents selection object type
FastenerAssySelectionTypeMethod Enumeration Represents selection type for position and hole
FastenerAssyStackTypeMethod Enumeration Represents screw_array type

Property Detail

ComponentPatternBuilder

FastenerAssy.ComponentPatternBuilder

Returns or sets the current component pattern builder

-------------------------------------

Getter Method

Signature ComponentPatternBuilder

Returns:The reusable component pattern builder
Return type:NXOpen.Assemblies.ComponentPatternBuilder

New in version NX11.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ComponentPatternBuilder

Parameters:patternComponentBuilderTag (NXOpen.Assemblies.ComponentPatternBuilder) – The reusable component pattern builder

New in version NX11.0.0.

License requirements: None.

PositioningFeature

FastenerAssy.PositioningFeature

Returns or sets the positioning feature that needed for fastener assembly

-------------------------------------

Getter Method

Signature PositioningFeature

Returns:Positioning feature
Return type:NXOpen.Sketch

New in version NX11.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature PositioningFeature

Parameters:sketch (NXOpen.Sketch) – Positioning feature

New in version NX11.0.0.

License requirements: None.

Method Detail

AddParentNewPart

FastenerAssy.AddParentNewPart

Adds new part for the parent node

Signature AddParentNewPart(fileName, index, parentNode)

Parameters:
  • fileName (str) – New fastener assembly parent node name
  • index (int) – The hole index in the fastener assembly
  • parentNode (bool) – Whether the fastener assembly node is parent

New in version NX9.0.0.

License requirements: None.

AddRemovalHoleIndex

FastenerAssy.AddRemovalHoleIndex

Add the removal hole index in the fastener setup data

Signature AddRemovalHoleIndex(index)

Parameters:index (int) – The hole index in the fastener assembly to be removed

New in version NX9.0.0.

License requirements: None.

AddScrewArray

FastenerAssy.AddScrewArray

Adds stack array

Signature AddScrewArray(krxFile, lengthMatch, libPath, libName, fullPath, index, type)

Parameters:
  • krxFile (str) – The krx file of the stack
  • lengthMatch (str) – The length match from fastener data and given node
  • libPath (str) – Ask fastener library path
  • libName (str) – Ask fastener library name
  • fullPath (str) – Stack file full path
  • index (int) – The hole index in the fastener assembly
  • type (NXOpen.Tooling.FastenerAssyStackTypeMethod) – The stack type method

New in version NX9.0.0.

License requirements: None.

AddTopNode

FastenerAssy.AddTopNode

Adds top node for the fastener assembly

Signature AddTopNode(point, direction, selObject, index)

Parameters:
  • point (NXOpen.Point3d) – The point of the fastener to assemble
  • direction (NXOpen.Point3d) – The direciton of the fastener to assemble
  • selObject (NXOpen.NXObject) – The default cylindrical face of the hole data, selObject type should be FACE
  • index (int) – The hole index in the fastener assembly
Returns:

Output the instance of the parent node

Return type:

NXOpen.NXObject

New in version NX9.0.0.

License requirements: None.

AdjustFastenerLength

FastenerAssy.AdjustFastenerLength

Adjusts the fastener assembly length

Signature AdjustFastenerLength(parentIndex, childIndex, nodeType)

Parameters:

New in version NX9.0.0.

License requirements: None.

CreateArrayHole

FastenerAssy.CreateArrayHole

Creates array hole data for the fastener assembly

Signature CreateArrayHole(index)

Parameters:index (int) – the hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

CreateFastenerConstraints

FastenerAssy.CreateFastenerConstraints

Creates fastener assembly constraint

Signature CreateFastenerConstraints(index)

Parameters:index (int) – the hole index in the fastener assembly to create constraints

New in version NX9.0.0.

License requirements: None.

CreatePatternComponent

FastenerAssy.CreatePatternComponent

Create the pattern component when the positioining pattern sketch feature is not exsit; edit pattern component when the positioining pattern feature is exsit

Signature CreatePatternComponent(createPattern)

Parameters:createPattern (bool) – Flag to decide whether to create pattern component or edit, set flag as true to create and set flag false to edit

New in version NX11.0.0.

License requirements: None.

CreatePositioningFeatureOnPoint

FastenerAssy.CreatePositioningFeatureOnPoint

Create positioning feature on the given position

Signature CreatePositioningFeatureOnPoint(selobj, inputPosition, centerFace)

Parameters:
  • selobj (NXOpen.NXObject) – top or bottom face
  • inputPosition (NXOpen.Point3d) – The input position
  • centerFace (bool) – whether to use face center as location

New in version NX11.0.0.

License requirements: None.

CreateReusableBuilder

FastenerAssy.CreateReusableBuilder

Creates new reusable builder

Signature CreateReusableBuilder(parentIndex, childIndex, nodeType)

Parameters:
Returns:

the new NXOpen.Tooling.AddReusablePart instance

Return type:

NXOpen.Tooling.AddReusablePart

New in version NX9.0.0.

License requirements: None.

CreateReusablePocket

FastenerAssy.CreateReusablePocket

Creates reusable pocket

Signature CreateReusablePocket(commit)

Parameters:commit (bool) – whether to create pocket

New in version NX9.0.0.

License requirements: None.

CreateSameAssemblyData

FastenerAssy.CreateSameAssemblyData

Creates the same assembly data type

Signature CreateSameAssemblyData(addedIndex, index)

Parameters:
  • addedIndex (int) – find the the hole index with the same parameter and node type in the fastener assembly
  • index (int) – the hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

DeleteArrayHole

FastenerAssy.DeleteArrayHole

Deletes array hole data for the fastener assembly

Signature DeleteArrayHole(index)

Parameters:index (int) – the hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

DeleteReusablePocket

FastenerAssy.DeleteReusablePocket

Deletes reusable pocket

Signature DeleteReusablePocket()

New in version NX9.0.0.

License requirements: None.

EraseAssemblyData

FastenerAssy.EraseAssemblyData

Erases the assembly data

Signature EraseAssemblyData(parentIndex)

Parameters:parentIndex (int) – parent index

New in version NX9.0.0.

License requirements: None.

EraseFastenerAssembly

FastenerAssy.EraseFastenerAssembly

Erases fastener assembly

Signature EraseFastenerAssembly(parentInx, removeParent, removeScrew, removeStack, removeArray, removeBuilder, initscrewBuilder, initstackBuilder, removeData)

Parameters:
  • parentInx (int) – parent index
  • removeParent (bool) – whether to remove parent instance
  • removeScrew (bool) – whether to remove screw
  • removeStack (bool) – whether to remove top stack and bottom stack
  • removeArray (bool) – whether to remove component array
  • removeBuilder (bool) – whether to remove builder
  • initscrewBuilder (bool) – whether to initialize screw builder
  • initstackBuilder (bool) – whether to initialize stack builder
  • removeData (bool) – whether to remove data

New in version NX9.0.0.

License requirements: None.

EraseFastenerAssemblyData

FastenerAssy.EraseFastenerAssemblyData

Erases the fastener assembly data, including the hole data and assembly data in the fastener setup data

Signature EraseFastenerAssemblyData(index)

Parameters:index (int) – The hole index in the fastener assembly to be removed

New in version NX9.0.0.

License requirements: None.

EraseFastenerSetupData

FastenerAssy.EraseFastenerSetupData

Erases the data (hole and assembly data) in fastener assembly

Signature EraseFastenerSetupData()

New in version NX9.0.0.

License requirements: None.

EraseStackArray

FastenerAssy.EraseStackArray

Erases stack array

Signature EraseStackArray(parentIndex, inx, type)

Parameters:

New in version NX9.0.0.

License requirements: None.

FindPositioningFeatureSet

FastenerAssy.FindPositioningFeatureSet

Find the positioning feature set by pattern sketch

Signature FindPositioningFeatureSet()

Returns:Positioning feature set
Return type:NXOpen.Features.Feature

New in version NX11.0.0.

License requirements: None.

GetFastenerMode

FastenerAssy.GetFastenerMode

Gets the fastener mode

Signature GetFastenerMode()

Returns:
Return type:NXOpen.Tooling.FastenerAssyModeMethod

New in version NX9.0.0.

License requirements: None.

GetFastenerSelectionType

FastenerAssy.GetFastenerSelectionType

Gets the selection type for the hole in the fastener assembly

Signature GetFastenerSelectionType()

Returns:The selection type to add the fastener assembly
Return type:NXOpen.Tooling.FastenerAssySelectionTypeMethod

New in version NX9.0.0.

License requirements: None.

GetReusablePocketBuilder

FastenerAssy.GetReusablePocketBuilder

Gets the reusable pocket builder

Signature GetReusablePocketBuilder()

Returns:The reusable component pocket builder
Return type:NXOpen.Tooling.ReusablePocketBuilder

New in version NX9.0.0.

License requirements: None.

InitPocketBuilder

FastenerAssy.InitPocketBuilder

Inits pocket builder

Signature InitPocketBuilder()

New in version NX9.0.0.

License requirements: None.

OffsetPositioningFeature

FastenerAssy.OffsetPositioningFeature

Offset the positioning feature

Signature OffsetPositioningFeature(offsetValue)

Parameters:offsetValue (float) – the offset distance of the positionging feature

New in version NX11.0.0.

License requirements: None.

ReadAssemblyConfigure

FastenerAssy.ReadAssemblyConfigure

Reads fastener assembly configuration data from the hole data

Signature ReadAssemblyConfigure(holeNum, partOcc)

Parameters:

New in version NX9.0.0.

License requirements: None.

RemoveFastenerConstraints

FastenerAssy.RemoveFastenerConstraints

Removes fastener assembly constraint

Signature RemoveFastenerConstraints(index)

Parameters:index (int) – the hole index in the fastener assembly to delete constraints

New in version NX9.0.0.

License requirements: None.

RemoveSelectedHole

FastenerAssy.RemoveSelectedHole

Removes the selected hole from the fastener setup data

Signature RemoveSelectedHole()

New in version NX9.0.0.

License requirements: None.

RenameParentNode

FastenerAssy.RenameParentNode

Renames the parent node

Signature RenameParentNode(index, newname)

Parameters:
  • index (int) – parent node index in fastener assembly
  • newname (str) – new name for the parent node

New in version NX9.0.0.

License requirements: None.

SaveDropPointPosition

FastenerAssy.SaveDropPointPosition

Keep the first drop point position

Signature SaveDropPointPosition(tempPnt)

Parameters:tempPnt (NXOpen.Point3d) – the first drop point position in hole data

New in version NX11.0.0.

License requirements: None.

SaveUdoData

FastenerAssy.SaveUdoData

Saves UDO data for fastener assembly

Signature SaveUdoData()

New in version NX9.0.0.

License requirements: None.

SelectScrewSize

FastenerAssy.SelectScrewSize

Selects the screw size

Signature SelectScrewSize(inx, diameter, origindiameter, selDiameter)

Parameters:
  • inx (int) – parent index
  • diameter (float) – diameter in hole data
  • origindiameter (float) – origin diameter in hole data
  • selDiameter (bool) – whether to select diameter

New in version NX9.0.0.

License requirements: None.

SetAssemblyExtentLength

FastenerAssy.SetAssemblyExtentLength

Sets the extent length for the fastener assembly data

Signature SetAssemblyExtentLength(index, extentLength)

Parameters:
  • index (int) – hole index in fastener assembly
  • extentLength (float) – The extent Length of the fastener assembly

New in version NX9.0.0.

License requirements: None.

SetBlindHole

FastenerAssy.SetBlindHole

Sets the blind hole for the hole in the fastener assembly

Signature SetBlindHole(inx, blindhole)

Parameters:
  • inx (int) – parent index
  • blindhole (bool) – whether the hole is blind hole

New in version NX10.0.0.

License requirements: None.

SetCreatePocket

FastenerAssy.SetCreatePocket

Sets the flag to indicate whether to create pocket when adding the fastener

Signature SetCreatePocket(create)

Parameters:create (bool) – Whether the fastener assembly is created pocket

New in version NX9.0.0.

License requirements: None.

SetDefaultPlanarFaces

FastenerAssy.SetDefaultPlanarFaces

Sets the default planar face for the hole in the fastener assembly

Signature SetDefaultPlanarFaces(defaultPlanarFace, inx)

Parameters:
  • defaultPlanarFace (NXOpen.NXObject) – The default planar face of the hole data, defaultPlanarFace type should be FACE
  • inx (int) – The hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

SetFastenerExtentLength

FastenerAssy.SetFastenerExtentLength

Sets the extent length for the hole in the fastener assembly

Signature SetFastenerExtentLength(extentLength)

Parameters:extentLength (float) – The extent Length of the fastener assembly

New in version NX9.0.0.

License requirements: None.

SetFastenerMode

FastenerAssy.SetFastenerMode

Sets the fastener mode

Signature SetFastenerMode(modeMethod)

Parameters:modeMethod (NXOpen.Tooling.FastenerAssyModeMethod) –

New in version NX9.0.0.

License requirements: None.

SetFastenerSelectionType

FastenerAssy.SetFastenerSelectionType

Sets the selection type for the hole in the fastener assembly

Signature SetFastenerSelectionType(selectionType)

Parameters:selectionType (NXOpen.Tooling.FastenerAssySelectionTypeMethod) – The selection type to add the fastener assembly

New in version NX9.0.0.

License requirements: None.

SetHoleDatumCsys

FastenerAssy.SetHoleDatumCsys

Sets the datum CSYS for the hole in the fastener assembly

Signature SetHoleDatumCsys(datumCsys, index)

Parameters:
  • datumCsys (NXOpen.NXObject) – The datum csys of the hole data
  • index (int) – The hole index in the fastener assembly, datumCsys type should be Axis

New in version NX12.0.0.

License requirements: None.

SetHoleDefaultCylindricalFace

FastenerAssy.SetHoleDefaultCylindricalFace

Sets the default cylindrical face for the hole in the fastener assembly

Signature SetHoleDefaultCylindricalFace(defaultCylFaces, index)

Parameters:
  • defaultCylFaces (NXOpen.NXObject) – The default cylindrical faces of the hole data, defaultCylFaces type should be FACE
  • index (int) – The hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

SetHoleDiameter

FastenerAssy.SetHoleDiameter

Sets the diameter for the hole in the fastener assembly

Signature SetHoleDiameter(diameter, index)

Parameters:
  • diameter (float) – The diameter of the hole data
  • index (int) – The hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

SetHoleDirection

FastenerAssy.SetHoleDirection

Sets the direction for the hole in the fastener assembly

Signature SetHoleDirection(direction, index)

Parameters:
  • direction (NXOpen.Point3d) – The direcion of the hole data
  • index (int) – The hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

SetHoleFaces

FastenerAssy.SetHoleFaces

Sets the faces for the hole in the fastener assembly

Signature SetHoleFaces(holeFace, index)

Parameters:
  • holeFace (NXOpen.NXObject) – The hole face of the hole data, holeFace type is FACE
  • index (int) – The hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

SetHoleHeight

FastenerAssy.SetHoleHeight

Sets the height for the hole in the fastener assembly

Signature SetHoleHeight(height, index)

Parameters:
  • height (float) – The height of the hole data
  • index (int) – The hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

SetHoleOriginDiameter

FastenerAssy.SetHoleOriginDiameter

Sets the origin diameter for the hole in the fastener assembly

Signature SetHoleOriginDiameter(originDiameter, index)

Parameters:
  • originDiameter (float) – The origin diameter of the hole data
  • index (int) – The hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

SetHoleOriginHeight

FastenerAssy.SetHoleOriginHeight

Sets the origin height for the hole in the fastener assembly

Signature SetHoleOriginHeight(originheight, index)

Parameters:
  • originheight (float) – The origin height of the hole data
  • index (int) – The hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

SetHoleOriginPosition

FastenerAssy.SetHoleOriginPosition

Sets the origin position for the hole in the fastener assembly

Signature SetHoleOriginPosition(originposition, index)

Parameters:
  • originposition (NXOpen.Point3d) – The origin position of the hole data
  • index (int) – The hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

SetHolePosition

FastenerAssy.SetHolePosition

Sets the position for the hole in the fastener assembly

Signature SetHolePosition(position, index)

Parameters:
  • position (NXOpen.Point3d) – The position of the hole data
  • index (int) – The hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

SetHoleSideCylindricalFaces

FastenerAssy.SetHoleSideCylindricalFaces

Sets the side cylindrical faces for the hole in the fastener assembly

Signature SetHoleSideCylindricalFaces(sideCylFace, index)

Parameters:
  • sideCylFace (NXOpen.NXObject) – The side cylinderical Face of the hole data
  • index (int) – The hole index in the fastener assembly, sideCylFace type should be FACE

New in version NX9.0.0.

License requirements: None.

SetInstanceFeatureFaces

FastenerAssy.SetInstanceFeatureFaces

Sets the instance feature face for the hole in the fastener assembly

Signature SetInstanceFeatureFaces(instanceFeature, inx)

Parameters:
  • instanceFeature (NXOpen.NXObject) – The instance feature face of the hole data, instanceFeature type should be FACE
  • inx (int) – The hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

SetItemName

FastenerAssy.SetItemName

Adds item description for the part

Signature SetItemName(partName, itemName)

Parameters:
  • partName (str) – The part name
  • itemName (str) – Item name

New in version NX9.0.0.

License requirements: None.

SetReusablePocketBuilder

FastenerAssy.SetReusablePocketBuilder

Sets the reusable pocket builder

Signature SetReusablePocketBuilder(pocketTag)

Parameters:pocketTag (NXOpen.Tooling.ReusablePocketBuilder) – The reusable component pocket builder

New in version NX9.0.0.

License requirements: None.

SetReuseBuilder

FastenerAssy.SetReuseBuilder

Sets the reuse builder

Signature SetReuseBuilder(index, nodeType, childIndex, partOcc)

Parameters:

New in version NX9.0.0.

License requirements: None.

SetSidePlanarFaces

FastenerAssy.SetSidePlanarFaces

Sets the side planar faces for the hole in the fastener assembly

Signature SetSidePlanarFaces(sidePlanarFace, index)

Parameters:
  • sidePlanarFace (NXOpen.NXObject) – The side planar face of the hole data, sidePlanarFace type should be FACE
  • index (int) – The hole index in the fastener assembly

New in version NX9.0.0.

License requirements: None.

SubstituteFastenerStack

FastenerAssy.SubstituteFastenerStack

Substitutes fastener stack

Signature SubstituteFastenerStack(parentIndex, childIndex, nodeType, partFile, krxFile, libName, pathInLib, lengthMatch, fullPath)

Parameters:
  • parentIndex (int) – parent node index in the fastener assembly
  • childIndex (int) – child node index in the fastener assembly
  • nodeType (NXOpen.Tooling.FastenerAssyStackTypeMethod) – the stack type method
  • partFile (str) – part file
  • krxFile (str) – krx file
  • libName (str) – library name
  • pathInLib (str) – library path
  • lengthMatch (str) – the length match from fastener data and given node
  • fullPath (str) – screw file full path

New in version NX9.0.0.

License requirements: None.

UpdateDefaultStandard

FastenerAssy.UpdateDefaultStandard

Updates default standard hole data for the fastener assembly configuration

Signature UpdateDefaultStandard(index, standard, form, type)

Parameters:
  • index (int) – The hole index in hole map data
  • standard (str) – The default hole standard type in the assembly configuration
  • form (str) – The default hole form in the assembly configuration
  • type (str) – The default hole screw type in the assembly configuration

New in version NX9.0.0.

License requirements: None.

UpdateFastenerLength

FastenerAssy.UpdateFastenerLength

Updates the fastener length

Signature UpdateFastenerLength(adjustLength)

Parameters:adjustLength (bool) – Whether to adjust length in the fastener assembly

New in version NX9.0.0.

License requirements: None.

UpdateFastenerStacks

FastenerAssy.UpdateFastenerStacks

Updates fastener stacks

Signature UpdateFastenerStacks(parentIndex, updateScrew, updatePocket)

Parameters:
  • parentIndex (int) – parent index
  • updateScrew (bool) – whether to update screw
  • updatePocket (bool) – whether to update pocket

New in version NX9.0.0.

License requirements: None.

UpdateHoleData

FastenerAssy.UpdateHoleData

Updates the hole data

Signature UpdateHoleData(inx, originheight, originPoint, threadhole, blindhole)

Parameters:
  • inx (int) – parent index
  • originheight (float) – origin height in hole data
  • originPoint (NXOpen.Point3d) – origin point in hole data
  • threadhole (bool) – whether the hole is thread hole
  • blindhole (bool) – whether the hole is blind hole

New in version NX9.0.0.

License requirements: None.

UpdateHolePostion

FastenerAssy.UpdateHolePostion

Updates the hole positon for position method

Signature UpdateHolePostion(parentIndex, dirOne, tempPnt, pointOne, height, orignHeight, offSetDistance)

Parameters:
  • parentIndex (int) – parent node index
  • dirOne (NXOpen.Point3d) – direction in hole data
  • tempPnt (NXOpen.Point3d) – position in hole data
  • pointOne (NXOpen.Point3d) – origin position in hole data
  • height (float) – height in hole data
  • orignHeight (float) – origin height in hole data
  • offSetDistance (float) – offset distance in hole data

New in version NX9.0.0.

License requirements: None.

UpdateStackPosition

FastenerAssy.UpdateStackPosition

Updates the fastener assembly after changing stacks or changing stack properties

Signature UpdateStackPosition(parentIndex, childIndex, nodeType, deltaLength)

Parameters:

New in version NX9.0.0.

License requirements: None.

UpdateTopBottomStacks

FastenerAssy.UpdateTopBottomStacks

Updates fastener assembly according to the new extends

Signature UpdateTopBottomStacks(index, type, isSameFace, face)

Parameters:

New in version NX9.0.0.

License requirements: None.

Validate

FastenerAssy.Validate

Validate whether the inputs to the component are sufficient for commit to be called.

If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.

Signature Validate()

Returns:Was self validation successful
Return type:bool

New in version NX3.0.1.

License requirements: None.