2027 Method
Changes 8
M

BoundaryConditions.CreateLineBoundaryConditions

Description:
Creates a new custom line boundary conditions within the project.
Overloads (2):
CreateLineBoundaryConditions(Document,ElementId,Curve,TranslationRotationValue,Double,TranslationRotationValue,Double,TranslationRotationValue,Double,TranslationRotationValue,Double)
public static BoundaryConditions CreateLineBoundaryConditions(
	Document doc,
	ElementId hostElemId,
	Curve curve,
	TranslationRotationValue X_Translation,
	double X_TranslationSpringModulus,
	TranslationRotationValue Y_Translation,
	double Y_TranslationSpringModulus,
	TranslationRotationValue Z_Translation,
	double Z_TranslationSpringModulus,
	TranslationRotationValue X_Rotation,
	double X_RotationSpringModulus
)
  • doc
    The document in which to create the boundary conditions.
  • hostElemId
    The AnalyticalElement host element for the line boundary conditions.
  • curve
    Curve of the boundary conditions.
  • X_Translation
    A value indicating the X axis translation option.
  • Double
    X_TranslationSpringModulus
    Translation Spring Modulus for X axis. Ignored if X_Translation is not "Spring".
  • Y_Translation
    A value indicating the Y axis translation option.
  • Double
    Y_TranslationSpringModulus
    Translation Spring Modulus for Y axis. Ignored if Y_Translation is not "Spring".
  • Z_Translation
    A value indicating the Z axis translation option.
  • Double
    Z_TranslationSpringModulus
    Translation Spring Modulus for Z axis. Ignored if Z_Translation is not "Spring".
  • X_Rotation
    A value indicating the X axis rotation option.
  • Double
    X_RotationSpringModulus
    Rotation Spring Modulus for X axis. Ignored if X_Rotation is not "Spring".
Return Value BoundaryConditions If successful, returns the newly created boundary conditions with the BoundaryConditionsType = 1 - "Line". Otherwise it returns .
  • The provided curve is not supported. -or- The input curve is not bound. -or- hostElemId is not a valid host for line boundary conditions. -or- Line boundary conditions already exist on the selected hostElemId.
  • A non-optional argument was null
  • A value passed for an enumeration argument is not a member of that enumeration