RebarShapeCreate(Document, RebarShapeDefinition, RebarShapeMultiplanarDefinition, RebarStyle, StirrupTieAttachmentType, Int32, RebarShapeTerminationsData) Method |
Create a new instance of a Rebar Shape, which defines the shape of a rebar.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntaxpublic static RebarShape Create(
Document doc,
RebarShapeDefinition definition,
RebarShapeMultiplanarDefinition multiplanarDefinition,
RebarStyle style,
StirrupTieAttachmentType attachmentType,
int higherEnd,
RebarShapeTerminationsData rebarShapeTerminationsData
)
Public Shared Function Create (
doc As Document,
definition As RebarShapeDefinition,
multiplanarDefinition As RebarShapeMultiplanarDefinition,
style As RebarStyle,
attachmentType As StirrupTieAttachmentType,
higherEnd As Integer,
rebarShapeTerminationsData As RebarShapeTerminationsData
) As RebarShape
public:
static RebarShape^ Create(
Document^ doc,
RebarShapeDefinition^ definition,
RebarShapeMultiplanarDefinition^ multiplanarDefinition,
RebarStyle style,
StirrupTieAttachmentType attachmentType,
int higherEnd,
RebarShapeTerminationsData^ rebarShapeTerminationsData
)
static member Create :
doc : Document *
definition : RebarShapeDefinition *
multiplanarDefinition : RebarShapeMultiplanarDefinition *
style : RebarStyle *
attachmentType : StirrupTieAttachmentType *
higherEnd : int *
rebarShapeTerminationsData : RebarShapeTerminationsData -> RebarShape
Parameters
- doc Document
-
A document to contain the RebarShape.
- definition RebarShapeDefinition
-
The definition of the rebar shape, as a set of curves in a plane
driven by parameters.
- multiplanarDefinition RebarShapeMultiplanarDefinition
-
If not , the created RebarShape will be a 3D shape. The shape
is built out of the planar RebarShapeDefinition, with additional
out-of-plane segments defined by the RebarShapeMultiplanarDefinition
object. Not supported in conjunction with RebarShapeDefinitionByArc
of type Spiral or LappedCircle.
- style RebarStyle
-
Whether the shape is to be used as a standard bar or a stirrup/tie.
- attachmentType StirrupTieAttachmentType
-
When the style is stirrup/tie, specify whether it will attach to the
interior of cover (cover is measured to the stirrups), or to the
exterior of cover (cover is measured to the standard bars).
Ignored when the style is Standard.
- higherEnd Int32
-
When the rebar crosses itself, one end will be "lifted" to avoid self-intersection.
Specify which end should be lifted: 0 for start, 1 for end.
- rebarShapeTerminationsData RebarShapeTerminationsData
-
Data about Rebar Shape terminations.
Return Value
RebarShape
A new RebarShape instance.
ExceptionsException | Condition |
---|
ArgumentException |
definition is linked to a Document other than doc.
-or-
A multiplanar definition is specified when the given RebarShapeDefinition
does not support it. The following RebarShapeDefinitions do not support
multiplanar: a simple line; spiral; lapped circle.
-or-
The DepthParamId property of multiplanarDefinition
is invalid or has not been added to definition.
-or-
The rebarShapeTerminationsData was not created using the input document.
|
ArgumentNullException |
A non-optional argument was null
|
ArgumentOutOfRangeException |
higherEnd must be 0 or 1.
-or-
A value passed for an enumeration argument is not a member of that enumeration
|
See Also