OPS

HomeDocsSupport

OPS

Back to docs

AddNode

Adds a node with specified coordinates in the current model

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

Parameters

  • fCoordX: Node X coordinate in GLOBAL.
  • fCoordY: Node Y coordinate in GLOBAL.
  • fCoordZ: Node Z coordinate in GLOBAL.

Return values

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

Example

# Example usage of AddNode
from openstaad import Geometry

# Instanciar el módulo Geometry
geometry = Geometry()

# Ejecutar la función desde el módulo geometry
node_id = geometry.AddNode(fCoordX, fCoordY, fCoordZ)
What is OPS?GitHubSupport

© 2024 OpenStaad

Built with Reflex