SpotWeld Class — NXOpen Python API Reference 12.0.0 documentation

# SpotWeld Class

class `NXOpen.CAE.Connections.``SpotWeld`

  Bases: `NXOpen.CAE.Connections.IConnection`, `NXOpen.CAE.Connections.IMaterial`, `NXOpen.CAE.Connections.ITolerance`, `NXOpen.CAE.Connections.IDiameter`, `NXOpen.CAE.Connections.IHeight`, `NXOpen.CAE.Connections.IFlangesContainer`, `NXOpen.CAE.Connections.ILocationsContainer`, `NXOpen.CAE.Connections.ILocationsSinglePointContainer`, `NXOpen.CAE.Connections.ILocationsMultiPointContainer`, `NXOpen.CAE.Connections.ILocationsWithDiscretizationContainer`, `NXOpen.CAE.Connections.ILineOffset`, `NXOpen.CAE.Connections.ILineDiscretization`

  Spot Weld connection.

  Use this interface to set/get properties and parameters of the spot weld connection. .. versionadded:: NX12.0.0

# Properties

Property | Description
--- | ---
Coefficient | Returns the coefficient for formula defined diameter
Color | Returns or sets the color of the object.
Diameter | Returns the connection diameter
DiameterType | Returns or sets the diameter type
DistanceFromStart | Returns the line Discretization distance from start
DistanceToEnd | Returns the line Discretization distance to end
Height | Returns the height value
HeightType | Returns or sets the height type
IsBlanked | Returns the blank status of this object.
IsOccurrence | Returns whether this object is an occurrence or not.
JournalIdentifier | Returns the identifier that would be recorded in a journal for this object.
Layer | Returns or sets the layer that the object is in.
LengthStep | Returns the line Discretization length step
LineFont | Returns or sets the line font of the object.
LineWidth | Returns or sets the line width of the object.
Material | Returns or sets the connection material
MaxAngleBetweenNormals | Returns the maximum angle of normals with the projection surface
MaxDistCGToElemCG | Returns the maximum distance from definition point to center of support element
MaxLengthStep | Returns the line Discretization max length step
MaxNormalDistCGToFlanges | Returns the maximum normal distance from definition point to center of element
Name | Returns the custom name of the object.
NameLocation | Returns the location of the object’s name.
NumberOfFlanges | Returns or sets the number of flanges.
OwningComponent | Returns the owning component, if this object is an occurrence.
OwningPart | Returns the owning part of this object
ProjectTolerance | Returns the projection tolerance
Prototype | Returns the prototype of this object if it is an occurrence.
TableFile | Returns or sets the table file used to compute the diameter
Tag | Returns the Tag for this object.
UseMaxLengthStep | Returns or sets the usage of max length stepype
UseOriginalNodesOfConnection | Returns or sets the usage of original nodes of connection
UserDescription | Returns or sets the connection user description

# Methods

Method | Description
--- | ---
AddFlangeEntities | Add entities to flange.
AddLocationCoordinates | Adds a coordinates location to connection location list
AddLocationCurve | Adds a curve location to connection location list
AddLocationFeEdges | Adds Fe Edges to connection location list
AddLocationNode | Adds a node location to connection location list
AddLocationPoint | Adds a point location to connection location list
AddLocationSelectionRecipe | Adds a Selection Recipe to connection location list
AddLocationSeriesOfCoordinates | Adds a series of coordinates location to connection location list
AddLocationSeriesOfNodes | Adds a series of nodes location to connection location list
AddLocationSeriesOfPoints | Adds a series of points location to connection location list
Blank | Blanks the object.
CanHaveNoMaterial | Use this function to check if the connction supports having no material
CanInheritMaterial | Use this function to check if the connction supports inherited material
ConvertLocationToCoordinatesType | Convert a location to coordinates.
CreateAttributeIterator | Create an attribute iterator
DeleteAllAttributesByType | Deletes all attributes of a specific type.
DeleteAttributeByTypeAndTitle | Deletes an attribute by type and title.
DeleteUserAttribute | Deletes the first attribute encountered with the given Type, Title.
DeleteUserAttributes | Deletes the attributes on the object, if any, that satisfy the given iterator
FindObject | Finds the `NXOpen.NXObject` with the given identifier as recorded in a journal.
GetAttributeTitlesByType | Gets all the attribute titles of a specific type.
GetBooleanUserAttribute | Gets a boolean attribute by Title and array Index.
GetComputationalTimeUserAttribute | Gets a time attribute by Title and array Index.
GetFlangeEntities | Gets entities from flange.
GetIntegerAttribute | Gets an integer attribute by title.
GetIntegerUserAttribute | Gets an integer attribute by Title and array Index.
GetLocation | Get a node location to connection location list
GetMaxNumberOfFlanges | Retrieve the max number of flanges supported by this connection
GetMinNumberOfFlanges | Retrieve the minimmum number of flanges supported by this connection
GetNextUserAttribute | Gets the next attribute encountered on the object, if any, that satisfies the given iterator.
GetNumberOfDefinitions | Gets the number of line offset definitions
GetNumberOfLocations | Get a node location to connection location list
GetOffsetDistance | Gets the line offset distance
GetOffsetVector | Gets the line offset vector
GetPdmReferenceAttributeValue | Gets the value of PDM Reference attribute for given object.
GetRealAttribute | Gets a real attribute by title.
GetRealUserAttribute | Gets a real attribute by Title and array Index.
GetReferenceAttribute | Gets the reference string (not the calculated value) of a string attribute that uses a reference string.
GetStringAttribute | Gets a string attribute value by title.
GetStringUserAttribute | Gets a string attribute by Title and array Index.
GetSupportedDiameterTypes | Gets supported diameter types of connection.
GetSupportedHeightTypes | Gets supported height types of connection.
GetTimeAttribute | Gets a time attribute by title.
GetTimeUserAttribute | Gets a time attribute by Title and array Index.
GetUserAttribute | Gets the first attribute encountered on the object, if any, with a given Title, Type and array Index.
GetUserAttributeAsString | Gets the first attribute encountered on the object, if any, with a given title, type and array index.
GetUserAttributeCount | Gets the count of set attributes on the object, if any, that satisfy the given iterator.
GetUserAttributeLock | Determine the lock of the given attribute.
GetUserAttributeSize | Gets the size of the first attribute encountered on the object, if any, with a given Title and Type.
GetUserAttributeSourceObjects | Returns an array of objects from which this object presents attributes.
GetUserAttributes | Gets all the attributes that have been set on the given object, if any, that satisfy the given iterator.
GetUserAttributesAsStrings | Gets all the attributes that have been set on the given object.
HasUserAttribute | Determines if an attribute exists on the object, that satisfies the given iterator
Highlight | Highlights the object.
IsInheritedMaterial | Use this function to check if the connection inherits material from flanges
MoveLocation | Move the location by number of positions
Print | Prints a representation of this object to the system log file.
RedisplayObject | Redisplays the object in all views.
RemoveFlangeEntities | Remove entities from flange.
RemoveLocation | Remove a location from connection location list
RemoveViewDependency | Remove dependency on all views from an object.
SetAttribute | Creates or modifies an integer attribute.
SetBooleanUserAttribute | Creates or modifies a boolean attribute with the option to update or not.
SetInheritedMaterial | Use this function to set inherited material to connection
SetName | Sets the custom name of the object.
SetNameLocation | Sets the location of the object’s name.
SetOffsetVector | Sets the line offset vector
SetPdmReferenceAttribute | Sets the value of PDM Reference attribute on the object.
SetReferenceAttribute | Creates or modifies a string attribute which uses a reference string.
SetTimeAttribute | Creates or modifies a time attribute.
SetTimeUserAttribute | Creates or modifies a time attribute with the option to update or not.
SetUserAttribute | Creates or modifies an attribute with the option to update or not.
SetUserAttributeLock | Lock or unlock the given attribute.
Unblank | Unblanks the object.
Unhighlight | Unhighlights the object.

# Property Detail

## Coefficient

`SpotWeld.``Coefficient`

  Returns the coefficient for formula defined diameter

  `-------------------------------------`

  Getter Method

  Signature `Coefficient`

  Returns: |
  Return type: | `NXOpen.Expression`

  New in version NX12.0.0.

  License requirements: None.

## Diameter

`SpotWeld.``Diameter`

  Returns the connection diameter

  `-------------------------------------`

  Getter Method

  Signature `Diameter`

  Returns: |
  Return type: | `NXOpen.Expression`

  New in version NX12.0.0.

  License requirements: None.

## DiameterType

`SpotWeld.``DiameterType`

  Returns or sets the diameter type

  `-------------------------------------`

  Getter Method

  Signature `DiameterType`

  Returns: |
  Return type: | `NXOpen.CAE.Connections.DiameterType`

  New in version NX12.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `DiameterType`

  Parameters: | diameterType (`NXOpen.CAE.Connections.DiameterType`) –

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## DistanceFromStart

`SpotWeld.``DistanceFromStart`

  Returns the line Discretization distance from start

  `-------------------------------------`

  Getter Method

  Signature `DistanceFromStart`

  Returns: |
  Return type: | `NXOpen.Expression`

  New in version NX12.0.0.

  License requirements: None.

## DistanceToEnd

`SpotWeld.``DistanceToEnd`

  Returns the line Discretization distance to end

  `-------------------------------------`

  Getter Method

  Signature `DistanceToEnd`

  Returns: |
  Return type: | `NXOpen.Expression`

  New in version NX12.0.0.

  License requirements: None.

## Height

`SpotWeld.``Height`

  Returns the height value

  `-------------------------------------`

  Getter Method

  Signature `Height`

  Returns: |
  Return type: | `NXOpen.Expression`

  New in version NX12.0.0.

  License requirements: None.

## HeightType

`SpotWeld.``HeightType`

  Returns or sets the height type

  `-------------------------------------`

  Getter Method

  Signature `HeightType`

  Returns: |
  Return type: | `NXOpen.CAE.Connections.HeightType`

  New in version NX12.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `HeightType`

  Parameters: | heightType (`NXOpen.CAE.Connections.HeightType`) – Diameter type

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## IsOccurrence

`SpotWeld.``IsOccurrence`

  Returns whether this object is an occurrence or not.

  `-------------------------------------`

  Getter Method

  Signature `IsOccurrence`

  Returns: | This object is an occurrence
  Return type: | bool

  New in version NX3.0.0.

  License requirements: None.

## JournalIdentifier

`SpotWeld.``JournalIdentifier`

  Returns the identifier that would be recorded in a journal for this object.

  This may not be the same across different releases of the software.

  `-------------------------------------`

  Getter Method

  Signature `JournalIdentifier`

  Returns: |
  Return type: | str

  New in version NX3.0.0.

  License requirements: None.

## LengthStep

`SpotWeld.``LengthStep`

  Returns the line Discretization length step

  `-------------------------------------`

  Getter Method

  Signature `LengthStep`

  Returns: |
  Return type: | `NXOpen.Expression`

  New in version NX12.0.0.

  License requirements: None.

## Material

`SpotWeld.``Material`

  Returns or sets the connection material

  `-------------------------------------`

  Getter Method

  Signature `Material`

  Returns: | The connection material
  Return type: | `NXOpen.PhysicalMaterial`

  New in version NX12.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `Material`

  Parameters: | material (`NXOpen.PhysicalMaterial`) – The connection material

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## MaxAngleBetweenNormals

`SpotWeld.``MaxAngleBetweenNormals`

  Returns the maximum angle of normals with the projection surface

  `-------------------------------------`

  Getter Method

  Signature `MaxAngleBetweenNormals`

  Returns: |
  Return type: | `NXOpen.Expression`

  New in version NX11.0.0.

  License requirements: None.

## MaxDistCGToElemCG

`SpotWeld.``MaxDistCGToElemCG`

  Returns the maximum distance from definition point to center of support element

  `-------------------------------------`

  Getter Method

  Signature `MaxDistCGToElemCG`

  Returns: |
  Return type: | `NXOpen.Expression`

  New in version NX11.0.0.

  License requirements: None.

## MaxLengthStep

`SpotWeld.``MaxLengthStep`

  Returns the line Discretization max length step

  `-------------------------------------`

  Getter Method

  Signature `MaxLengthStep`

  Returns: |
  Return type: | `NXOpen.Expression`

  New in version NX12.0.0.

  License requirements: None.

## MaxNormalDistCGToFlanges

`SpotWeld.``MaxNormalDistCGToFlanges`

  Returns the maximum normal distance from definition point to center of element

  `-------------------------------------`

  Getter Method

  Signature `MaxNormalDistCGToFlanges`

  Returns: |
  Return type: | `NXOpen.Expression`

  New in version NX11.0.0.

  License requirements: None.

## Name

`SpotWeld.``Name`

  Returns the custom name of the object.

  `-------------------------------------`

  Getter Method

  Signature `Name`

  Returns: |
  Return type: | str

  New in version NX3.0.0.

  License requirements: None.

## NumberOfFlanges

`SpotWeld.``NumberOfFlanges`

  Returns or sets the number of flanges.

  When changing the number of flanges this is not applied till an update is performed by calling `Update.DoUpdate()`

  `-------------------------------------`

  Getter Method

  Signature `NumberOfFlanges`

  Returns: |
  Return type: | int

  New in version NX12.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `NumberOfFlanges`

  Parameters: | numberOfFlanges (int) –

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## OwningComponent

`SpotWeld.``OwningComponent`

  Returns the owning component, if this object is an occurrence.

  `-------------------------------------`

  Getter Method

  Signature `OwningComponent`

  Returns: |
  Return type: | `NXOpen.Assemblies.Component`

  New in version NX3.0.0.

  License requirements: None.

## OwningPart

`SpotWeld.``OwningPart`

  Returns the owning part of this object

  `-------------------------------------`

  Getter Method

  Signature `OwningPart`

  Returns: | The owning part of this object or null if it does not have an owner
  Return type: | `NXOpen.BasePart`

  New in version NX3.0.0.

  License requirements: None.

## ProjectTolerance

`SpotWeld.``ProjectTolerance`

  Returns the projection tolerance

  `-------------------------------------`

  Getter Method

  Signature `ProjectTolerance`

  Returns: |
  Return type: | `NXOpen.Expression`

  New in version NX11.0.0.

  License requirements: None.

## Prototype

`SpotWeld.``Prototype`

  Returns the prototype of this object if it is an occurrence.

  `-------------------------------------`

  Getter Method

  Signature `Prototype`

  Returns: | The prototype of this object or null if this object is not an occurrence
  Return type: | `NXOpen.INXObject`

  New in version NX3.0.0.

  License requirements: None.

## TableFile

`SpotWeld.``TableFile`

  Returns or sets the table file used to compute the diameter

  `-------------------------------------`

  Getter Method

  Signature `TableFile`

  Returns: |
  Return type: | str

  New in version NX12.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `TableFile`

  Parameters: | tableFile (str) – Full path to the diameter table file.

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## UseMaxLengthStep

`SpotWeld.``UseMaxLengthStep`

  Returns or sets the usage of max length stepype

  `-------------------------------------`

  Getter Method

  Signature `UseMaxLengthStep`

  Returns: |
  Return type: | bool

  New in version NX12.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `UseMaxLengthStep`

  Parameters: | use (bool) –

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## UseOriginalNodesOfConnection

`SpotWeld.``UseOriginalNodesOfConnection`

  Returns or sets the usage of original nodes of connection

  `-------------------------------------`

  Getter Method

  Signature `UseOriginalNodesOfConnection`

  Returns: |
  Return type: | bool

  New in version NX12.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `UseOriginalNodesOfConnection`

  Parameters: | use (bool) –

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

# Method Detail

## AddFlangeEntities

`SpotWeld.``AddFlangeEntities`

  Add entities to flange.

  Changes are not applied till an update is performed by calling `Update.DoUpdate()`

  Signature `AddFlangeEntities(flangeIndex, entities)`

  Parameters:

  - flangeIndex (int) –
  - entities (list of `NXOpen.TaggedObject`) – Flange entities

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## AddLocationCoordinates

`SpotWeld.``AddLocationCoordinates`

  Adds a coordinates location to connection location list

  Signature `AddLocationCoordinates(indexOfDefinition, coordinates)`

  Parameters:

  - indexOfDefinition (int) – The index of definition
  - coordinates (`NXOpen.Point3d`) – Coordinates

  Returns: | The created coordinates type location
  Return type: | `NXOpen.CAE.Connections.CoordinatesLocation`

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## AddLocationCurve

`SpotWeld.``AddLocationCurve`

  Adds a curve location to connection location list

  Signature `AddLocationCurve(indexOfDefinition, curve)`

  Parameters:

  - indexOfDefinition (int) –
  - curve (`NXOpen.IBaseCurve`) – Curve used for location creation

  Returns: | The created curve type location
  Return type: | `NXOpen.CAE.Connections.CurveLocation`

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## AddLocationFeEdges

`SpotWeld.``AddLocationFeEdges`

  Adds Fe Edges to connection location list

  Signature `AddLocationFeEdges(indexOfDefinition, edges)`

  Parameters:

  - indexOfDefinition (int) –
  - edges (list of `NXOpen.CAE.FEElemEdge`) – Edges used for location

  Returns: | The created edge group type location
  Return type: | `NXOpen.CAE.Connections.FeEdgesLocation`

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## AddLocationNode

`SpotWeld.``AddLocationNode`

  Adds a node location to connection location list

  Signature `AddLocationNode(indexOfDefinition, node)`

  Parameters:

  - indexOfDefinition (int) – The index of definition
  - node (`NXOpen.CAE.FENode`) – Node used for location

  Returns: | The node type location
  Return type: | `NXOpen.CAE.Connections.NodeLocation`

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## AddLocationPoint

`SpotWeld.``AddLocationPoint`

  Adds a point location to connection location list

  Signature `AddLocationPoint(indexOfDefinition, point)`

  Parameters:

  - indexOfDefinition (int) – The index of definition
  - point (`NXOpen.Point`) – Point used for location creation

  Returns: | The created point type location
  Return type: | `NXOpen.CAE.Connections.PointLocation`

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## AddLocationSelectionRecipe

`SpotWeld.``AddLocationSelectionRecipe`

  Adds a Selection Recipe to connection location list

  Signature `AddLocationSelectionRecipe(indexOfDefinition, selectionRecipe)`

  Parameters:

  - indexOfDefinition (int) – The index of definition
  - selectionRecipe (`NXOpen.CAE.SelectionRecipe`) – Selection Recipe used for location creation

  Returns: | The created selection recipe type location
  Return type: | `NXOpen.CAE.Connections.SelectionRecipeLocation`

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## AddLocationSeriesOfCoordinates

`SpotWeld.``AddLocationSeriesOfCoordinates`

  Adds a series of coordinates location to connection location list

  Signature `AddLocationSeriesOfCoordinates(indexOfDefinition, coordinates)`

  Parameters:

  - indexOfDefinition (int) –
  - coordinates (list of `NXOpen.Point3d`) – The location coordinates

  Returns: | The coord series type location
  Return type: | `NXOpen.CAE.Connections.CoordinatesSeriesLocation`

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## AddLocationSeriesOfNodes

`SpotWeld.``AddLocationSeriesOfNodes`

  Adds a series of nodes location to connection location list

  Signature `AddLocationSeriesOfNodes(indexOfDefinition, nodes)`

  Parameters:

  - indexOfDefinition (int) – The index of definition
  - nodes (list of `NXOpen.CAE.FENode`) – Nodes used for location

  Returns: | The node series type location
  Return type: | `NXOpen.CAE.Connections.NodeSeriesLocation`

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## AddLocationSeriesOfPoints

`SpotWeld.``AddLocationSeriesOfPoints`

  Adds a series of points location to connection location list

  Signature `AddLocationSeriesOfPoints(indexOfDefinition, points)`

  Parameters:

  - indexOfDefinition (int) – The index of definition
  - points (list of `NXOpen.Point`) – Points used for location

  Returns: | The point series type location
  Return type: | `NXOpen.CAE.Connections.PointSeriesLocation`

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## CanHaveNoMaterial

`SpotWeld.``CanHaveNoMaterial`

  Use this function to check if the connction supports having no material

  Signature `CanHaveNoMaterial()`

  Returns: |
  Return type: | bool

  New in version NX12.0.0.

  License requirements: None.

## CanInheritMaterial

`SpotWeld.``CanInheritMaterial`

  Use this function to check if the connction supports inherited material

  Signature `CanInheritMaterial()`

  Returns: |
  Return type: | bool

  New in version NX12.0.0.

  License requirements: None.

## ConvertLocationToCoordinatesType

`SpotWeld.``ConvertLocationToCoordinatesType`

  Convert a location to coordinates.

  The location is given by its index

  Signature `ConvertLocationToCoordinatesType(indexOfDefinition, index)`

  Parameters:

  - indexOfDefinition (int) – The index of definition
  - index (int) – The location index

  Returns: | The created coordinates type location
  Return type: | `NXOpen.CAE.Connections.Location`

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## FindObject

`SpotWeld.``FindObject`

  Finds the `NXOpen.NXObject` with the given identifier as recorded in a journal.

  An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.

  An exception will be thrown if no object can be found with the given journal identifier.

  Signature `FindObject(journalIdentifier)`

  Parameters: | journalIdentifier (str) – Journal identifier of the object
  Returns: |
  Return type: | `NXOpen.INXObject`

  New in version NX3.0.0.

  License requirements: None.

## GetFlangeEntities

`SpotWeld.``GetFlangeEntities`

  Gets entities from flange.

  These can be meshes, elements, groups.

  Signature `GetFlangeEntities(flangeIndex)`

  Parameters: | flangeIndex (int) –
  Returns: | Flange entities
  Return type: | list of `NXOpen.TaggedObject`

  New in version NX12.0.0.

  License requirements: None.

## GetLocation

`SpotWeld.``GetLocation`

  Get a node location to connection location list

  Signature `GetLocation(indexOfDefinition, indexOfLocation)`

  Parameters:

  - indexOfDefinition (int) – The index of definition
  - indexOfLocation (int) – The location index

  Returns: | The location
  Return type: | `NXOpen.CAE.Connections.Location`

  New in version NX12.0.0.

  License requirements: None.

## GetMaxNumberOfFlanges

`SpotWeld.``GetMaxNumberOfFlanges`

  Retrieve the max number of flanges supported by this connection

  Signature `GetMaxNumberOfFlanges()`

  Returns: |
  Return type: | int

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## GetMinNumberOfFlanges

`SpotWeld.``GetMinNumberOfFlanges`

  Retrieve the minimmum number of flanges supported by this connection

  Signature `GetMinNumberOfFlanges()`

  Returns: |
  Return type: | int

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## GetNumberOfDefinitions

`SpotWeld.``GetNumberOfDefinitions`

  Gets the number of line offset definitions

  Signature `GetNumberOfDefinitions()`

  Returns: | The number of definitions
  Return type: | int

  New in version NX12.0.0.

  License requirements: None.

## GetNumberOfLocations

`SpotWeld.``GetNumberOfLocations`

  Get a node location to connection location list

  Signature `GetNumberOfLocations(indexOfDefinition)`

  Parameters: | indexOfDefinition (int) – The index of definition
  Returns: | The number of locations
  Return type: | int

  New in version NX12.0.0.

  License requirements: None.

## GetOffsetDistance

`SpotWeld.``GetOffsetDistance`

  Gets the line offset distance

  Signature `GetOffsetDistance(lindeDefinitionIndex)`

  Parameters: | lindeDefinitionIndex (int) –
  Returns: |
  Return type: | `NXOpen.Expression`

  New in version NX12.0.0.

  License requirements: None.

## GetOffsetVector

`SpotWeld.``GetOffsetVector`

  Gets the line offset vector

  Signature `GetOffsetVector(lindeDefinitionIndex)`

  Parameters: | lindeDefinitionIndex (int) –
  Returns: |
  Return type: | `NXOpen.Direction`

  New in version NX12.0.0.

  License requirements: None.

## GetSupportedDiameterTypes

`SpotWeld.``GetSupportedDiameterTypes`

  Gets supported diameter types of connection.

  Signature `GetSupportedDiameterTypes()`

  Returns: | Supported CSys Types
  Return type: | list of `NXOpen.CAE.Connections.DiameterType`

  New in version NX12.0.0.

  License requirements: None.

## GetSupportedHeightTypes

`SpotWeld.``GetSupportedHeightTypes`

  Gets supported height types of connection.

  Signature `GetSupportedHeightTypes()`

  Returns: | Supported CSys Types
  Return type: | list of `NXOpen.CAE.Connections.HeightType`

  New in version NX12.0.0.

  License requirements: None.

## IsInheritedMaterial

`SpotWeld.``IsInheritedMaterial`

  Use this function to check if the connection inherits material from flanges

  Signature `IsInheritedMaterial()`

  Returns: |
  Return type: | bool

  New in version NX12.0.0.

  License requirements: None.

## MoveLocation

`SpotWeld.``MoveLocation`

  Move the location by number of positions

  Signature `MoveLocation(indexOfDefinition, indexOfLocation, numberOfPositions)`

  Parameters:

  - indexOfDefinition (int) – The index of definition
  - indexOfLocation (int) – The index of location
  - numberOfPositions (int) – The number of positions to move the location

  Returns: | The operation result
  Return type: | bool

  New in version NX12.0.0.

  License requirements: None.

## Print

`SpotWeld.``Print`

  Prints a representation of this object to the system log file.

  Signature `Print()`

  New in version NX3.0.0.

  License requirements: None.

## RemoveFlangeEntities

`SpotWeld.``RemoveFlangeEntities`

  Remove entities from flange.

  Changes are not applied till an update is performed by calling `Update.DoUpdate()`

  Signature `RemoveFlangeEntities(flangeIndex, entities)`

  Parameters:

  - flangeIndex (int) –
  - entities (list of `NXOpen.TaggedObject`) – Flange entities

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## RemoveLocation

`SpotWeld.``RemoveLocation`

  Remove a location from connection location list

  Signature `RemoveLocation(indexOfDefinition, indexOfLocation)`

  Parameters:

  - indexOfDefinition (int) – The index of definition
  - indexOfLocation (int) – The location index

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## SetInheritedMaterial

`SpotWeld.``SetInheritedMaterial`

  Use this function to set inherited material to connection

  Signature `SetInheritedMaterial()`

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)

## SetName

`SpotWeld.``SetName`

  Sets the custom name of the object.

  NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object. If it is, the changes will be overridden when the part is updated.

  Signature `SetName(name)`

  Parameters: | name (str) –

  New in version NX3.0.0.

  License requirements: None.

## SetOffsetVector

`SpotWeld.``SetOffsetVector`

  Sets the line offset vector

  Signature `SetOffsetVector(lindeDefinitionIndex, offsetvector)`

  Parameters:

  - lindeDefinitionIndex (int) –
  - offsetvector (`NXOpen.Direction`) –

  New in version NX12.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”)