View Categories

Geometry: Node

6 min read

AddMultipleNodes #

This function adds multiple nodes with a specified array of node coordinates.

Parameters:

  • [in] faCoordinates: A VARIANT array of dimensions m * 3 containing coordinates of nodes: [Xi, Yi, Zi].

VBA Syntax:


AddNode #

This function adds a node with specified coordinates in the current model and returns the automatically assigned node number ID.

Parameters:

  • [in] fCoordX: Nodal coordinate X in GLOBAL.
  • [in] fCoordY: Nodal coordinate Y in GLOBAL.
  • [in] fCoordZ: Nodal coordinate Z in GLOBAL.

Return Values:

  • Node number ID assigned to the created node.
  • 0: OK.
  • -2004: Unable to add node.

VBA Syntax:


ClearNodeSelection #

This function unselects all node items.

VBA Syntax:


CreateMultipleNodes #

This function creates multiple nodes with specified node number IDs.

Parameters:

  • [in] nNodeIdArray: Integer array containing node IDs: [IDi].
  • [in] dCoordArray: Double array containing node coordinates [Xi, Yi, Zi].

VBA Syntax:


CreateNode #

This function creates a node with the specified coordinates in the structure.

Parameters:

  • [in] nNodeNo: Node number ID to be assigned to the newly created node.
  • [in] fCoordX: Nodal coordinate X in GLOBAL.
  • [in] fCoordY: Nodal coordinate Y in GLOBAL.
  • [in] fCoordZ: Nodal coordinate Z in GLOBAL.

VBA Syntax:


DeleteNode #

This function deletes a specified node.

Parameters:

  • [in] nNodeNo: Node number ID to be deleted.

VBA Syntax:


GetLastNodeNo #

This function returns the node number ID of the last node in the model.

Return Values:

  • The number of the highest node ID in the model.
  • -1: General error.

VBA Syntax:


GetNodeCoordinates #

This function returns the coordinates of a specified node.

Parameters:

  • [in] nNodeNo: Node number ID.
  • [out] fCoordX: Nodal coordinate X in GLOBAL.
  • [out] fCoordY: Nodal coordinate Y in GLOBAL.
  • [out] fCoordZ: Nodal coordinate Z in GLOBAL.

VBA Syntax:


GetNodeCount #

This function returns the total number of nodes in the current model.

Return Values:

  • The total number of nodes.

VBA Syntax:

GetNodeDistance #

This function returns the distance between two specified nodes.

Parameters:

  • [in] nNodeNoA: Node number ID of one node.
  • [in] nNodeNoB: Node number ID of the other node.

Return Values:

  • The distance as a double.
  • -1: Cannot find either node.

VBA Syntax:


GetNodeIncidence #

This function returns the coordinates of the specified node.

Parameters:

  • [in] nNodeNo: Node number ID.
  • [out] fCoordX: Nodal coordinate X in GLOBAL.
  • [out] fCoordY: Nodal coordinate Y in GLOBAL.
  • [out] fCoordZ: Nodal coordinate Z in GLOBAL.

Return Values:

  • 0: OK.
  • -1: General error.
  • -2001: Cannot find the node.

VBA Syntax:' Get coordinates of node #10.
Dim RetVal As VARIANT = OSGeometryUI.GetNodeIncidence(10, fCoordX, fCoordY, fCoordZ)


GetNodeIncidence_CIS2 #

This function returns the coordinates and unique string ID (GUID) of the specified node.

Parameters:

  • [in] nNodeNo: Node number ID.
  • [out] szName: Unique string ID (GUID).
  • [out] fCoordX: Nodal coordinate X in GLOBAL.
  • [out] fCoordY: Nodal coordinate Y in GLOBAL.
  • [out] fCoordZ: Nodal coordinate Z in GLOBAL.

Return Values:

  • 0: OK.
  • -1: General error.
  • -2001: Cannot find the node.

VBA Syntax:


GetNodeList #

This function returns the list of all node number IDs in the current model.

Parameters:

  • [out] nNodeList: VARIANT array of LONG type for storing returned node number IDs.

VBA Syntax:


GetNodeNumber #

This function returns the number ID of the node at specified coordinates.

Parameters:

  • [in] fCoordX: Nodal coordinate X in GLOBAL.
  • [in] fCoordY: Nodal coordinate Y in GLOBAL.
  • [in] fCoordZ: Nodal coordinate Z in GLOBAL.

Return Values:

  • Node number ID.
  • -1: Cannot find the node.

VBA Syntax:


GetNodeUniqueID #

This function returns the unique string ID (GUID) for the specified node.

Parameters:

  • [in] nNodeNo: Node number ID.

Return Values:

  • The unique string ID for the node.
  • An empty string if the node is not found.

VBA Syntax:


GetNoOfSelectedNodes #

This function returns the number of selected nodes.

Return Values:

  • The number of selected nodes.

VBA Syntax:


GetSelectedNodes #

This function returns a list of selected node number IDs.

Parameters:

  • [out] naNodeNos: Returned selected node number IDs as a VARIANT array.
  • [in] nIsSorted: Selection order (1 for sorted, 0 for order of selection).

VBA Syntax:


IsOrphanNode #

This function checks if the specified node is an orphan node.

Parameters:

  • [in] varNodeNo: Node number ID.

Return Values:

  • 1: True (the node is an orphan node).
  • 0: False (the node is not an orphan node).

VBA Syntax:


MergeNodes #

This function merges multiple nodes into a single node. All members and elements connected to the nodes will be reconnected to the specified node.

Parameters:

  • [in] varNodeNo: Node number ID to be assigned to the merged node.
  • [in] nNodeIdArray: Array of node numbers to be merged (must contain more than one node).

Return Values:

  • 1: Merging is successful.
  • 0: Merging is unsuccessful.

VBA Syntax:


SelectMultipleNodes #

This function selects multiple nodes in the current model.

Parameters:

  • [in] naNodeNos: Node number IDs as a VARIANT array.

VBA Syntax:


SelectNode #

This function selects the specified node in the current model.

Parameters:

  • [in] nNodeNo: Node number ID.

VBA Syntax:


SetNodeCoordinate #

This function sets or replaces the coordinates of the specified node.

Parameters:

  • [in] nNodeNo: Node number ID.
  • [in] fCoordX: New coordinate X in GLOBAL.
  • [in] fCoordY: New coordinate Y in GLOBAL.
  • [in] fCoordZ: New coordinate Z in GLOBAL.

VBA Syntax:


SetNodeUniqueID #

This function assigns a unique string ID (GUID) to the specified node.

Parameters:

  • [in] nNodeNo: Node number ID.
  • [in] szName: Unique string ID.

VBA Syntax: