2027 Method
Changes 0
M

StructuralConnectionType.Create

Description:
Create a new StructuralConnectionType, allowing the specified annotation FamilySymbol to be applied to structural members.
public static StructuralConnectionType Create(
	Document doc,
	StructuralConnectionApplyTo applyTo,
	string name,
	ElementId familySymbolId
)
  • doc
  • applyTo
    Specify which type of member this connection type can be applied to.
  • String
    name
    A name for the connection type. It must be unique within the document.
  • familySymbolId
    The id of an annotation FamilySymbol. InvalidElementId is allowed. Otherwise, the FamilySymbol must be in the category "Connection Symbols" (OST_StructConnectionSymbols) and have its "Apply To" parameter set to match the applyTo argument.
Return Value StructuralConnectionType StructuralConnectionType
  • familySymbolId is the id of some element that is not a FamilySymbol, is not of the category "Connection Symbols" (OST_StructConnectionSymbols), or has its "Apply To" parameter not equal to applyTo.
  • A non-optional argument was null
  • A value passed for an enumeration argument is not a member of that enumeration