Archicad 28 C++ API
|
The RoutingSegment can contain Rigid Segment elements. More...
#include <MEPRoutingSegment.hpp>
Public Member Functions | |
double | GetCrossSectionWidth () const |
double | GetCrossSectionHeight () const |
ConnectorShape | GetCrossSectionShape () const |
Result< uint32_t > | GetCrossSectionReferenceId () const |
std::vector< UniqueID > | GetRigidSegmentIds () const |
UniqueID | GetBeginNodeId () const |
UniqueID | GetEndNodeId () const |
UniqueID | GetRoutingElementId () const |
Domain | GetDomain () const |
RoutingSegmentDefault | PickUpDefault () const |
Picks up and returns the Default of the RoutingSegment. | |
RigidSegmentDefault | GetRigidSegmentDefaultParameters () const |
UniqueID | GetPreferenceTableId () const |
API_AnchorID | GetAnchor () const |
double | GetReferenceLineOffsetX () const |
double | GetReferenceLineOffsetY () const |
double | GetWallThickness () const |
ConnectionStyle | GetConnectionStyle () const |
std::optional< double > | GetFlangeSize () const |
template<typename ModifierFunc > | |
Result< void > | Modify (const ModifierFunc &modifierFunc, const GS::UniString &undoString) |
Executes the passed modifier scope in an Undoable command. | |
Result< void > | SetCrossSectionWidth (double width) |
Sets the width of the RoutingSegment. | |
Result< void > | SetCrossSectionHeight (double height) |
Sets the height of the Routing Segment. | |
Result< void > | SetCrossSectionShape (ConnectorShape shape) |
Sets the shape of the Routing Segment. | |
Result< void > | SetCrossSectionReferenceId (uint32_t referenceId) |
Sets the referenceId of Circular Cross Section in the Routing Segment. | |
Result< void > | Inject (const RoutingSegmentDefault &routingSegmentDefault) |
Injects the given Default settings to the RoutingSegment. | |
Result< void > | SetRigidSegmentDefaultParameters (const RigidSegmentDefault &rigidSegmentDefault) |
Sets the parameters of the RigidSegments. | |
Result< void > | SetPreferenceTableId (const UniqueID &uniqueId) |
Sets the PreferenceTable of the RoutingSegment. | |
void | SetAnchor (API_AnchorID anchor) |
Sets the anchor position of the RoutingSegment. | |
void | SetReferenceLineOffsetX (double offset) |
Sets the offset from the reference line along the X-axis of cross-section's plane. | |
void | SetReferenceLineOffsetY (double offset) |
Sets the offset from the reference line along the Y-axis of cross-section's plane. | |
Result< void > | SetWallThickness (double thickness) |
Sets the wall thickness of the RoutingSegment. | |
Result< void > | SetConnectionStyle (ConnectionStyle connectionStyle) |
Sets the connection style of the RoutingSegment. | |
Result< void > | SetFlangeSize (double flangeSize) |
Sets the flange size (width for Ventilation, diameter for Piping) of the RoutingSegment if its connection style is Flanged. | |
![]() | |
UniqueID | GetElemId () const |
Get unique identifier of the ElementBase object. | |
Result< void > | IsEditable () const |
Checks whether the element is editable. | |
![]() | |
Object (std::shared_ptr< Impl::ObjectImpl > impl) | |
Constructs a new object. | |
const API_Token & | GetToken () const |
Get the token for this object. | |
Static Public Member Functions | |
static Result< RoutingSegment > | Get (const UniqueID &uniqueId) |
Returns a Routing Segment. | |
Additional Inherited Members | |
![]() | |
ElementBase (std::shared_ptr< Impl::ObjectImpl > impl) | |
Constructs a new ElementBase. | |
![]() | |
~Object () | |
Default destructor. | |
![]() | |
std::shared_ptr< Impl::ObjectImpl > | mImpl |
Impl object given by constructor. | |
The RoutingSegment can contain Rigid Segment elements.
This type of element is placed between the corner points of RoutingElement.
|
static |
Returns a Routing Segment.
uniqueId | The UniqueID of the requested RoutingSegment. |
API_AnchorID ACAPI::MEP::v1::RoutingSegment::GetAnchor | ( | ) | const |
UniqueID ACAPI::MEP::v1::RoutingSegment::GetBeginNodeId | ( | ) | const |
ConnectionStyle ACAPI::MEP::v1::RoutingSegment::GetConnectionStyle | ( | ) | const |
double ACAPI::MEP::v1::RoutingSegment::GetCrossSectionHeight | ( | ) | const |
Result< uint32_t > ACAPI::MEP::v1::RoutingSegment::GetCrossSectionReferenceId | ( | ) | const |
ConnectorShape ACAPI::MEP::v1::RoutingSegment::GetCrossSectionShape | ( | ) | const |
double ACAPI::MEP::v1::RoutingSegment::GetCrossSectionWidth | ( | ) | const |
Domain ACAPI::MEP::v1::RoutingSegment::GetDomain | ( | ) | const |
UniqueID ACAPI::MEP::v1::RoutingSegment::GetEndNodeId | ( | ) | const |
std::optional< double > ACAPI::MEP::v1::RoutingSegment::GetFlangeSize | ( | ) | const |
UniqueID ACAPI::MEP::v1::RoutingSegment::GetPreferenceTableId | ( | ) | const |
double ACAPI::MEP::v1::RoutingSegment::GetReferenceLineOffsetX | ( | ) | const |
double ACAPI::MEP::v1::RoutingSegment::GetReferenceLineOffsetY | ( | ) | const |
RigidSegmentDefault ACAPI::MEP::v1::RoutingSegment::GetRigidSegmentDefaultParameters | ( | ) | const |
std::vector< UniqueID > ACAPI::MEP::v1::RoutingSegment::GetRigidSegmentIds | ( | ) | const |
UniqueID ACAPI::MEP::v1::RoutingSegment::GetRoutingElementId | ( | ) | const |
double ACAPI::MEP::v1::RoutingSegment::GetWallThickness | ( | ) | const |
Result< void > ACAPI::MEP::v1::RoutingSegment::Inject | ( | const RoutingSegmentDefault & | routingSegmentDefault | ) |
Injects the given Default settings to the RoutingSegment.
routingSegmentDefault | The Default which will be injected. |
Result< void > ACAPI::MEP::v1::RoutingSegment::Modify | ( | const ModifierFunc & | modifierFunc, |
const GS::UniString & | undoString | ||
) |
Executes the passed modifier scope in an Undoable command.
modifierFunc | The modifier scope (lambda, std::function or function pointer) the caller wants to execute. |
undoString | The text which appears in the undo queue of Archicad after executing the command. |
RoutingSegmentDefault ACAPI::MEP::v1::RoutingSegment::PickUpDefault | ( | ) | const |
Picks up and returns the Default of the RoutingSegment.
void ACAPI::MEP::v1::RoutingSegment::SetAnchor | ( | API_AnchorID | anchor | ) |
Sets the anchor position of the RoutingSegment.
anchor | The value to be set. |
Result< void > ACAPI::MEP::v1::RoutingSegment::SetConnectionStyle | ( | ConnectionStyle | connectionStyle | ) |
Sets the connection style of the RoutingSegment.
connectionStyle | The value to be set. |
Result< void > ACAPI::MEP::v1::RoutingSegment::SetCrossSectionHeight | ( | double | height | ) |
Sets the height of the Routing Segment.
height | The value to be set. |
Result< void > ACAPI::MEP::v1::RoutingSegment::SetCrossSectionReferenceId | ( | uint32_t | referenceId | ) |
Sets the referenceId of Circular Cross Section in the Routing Segment.
referenceId | The referenceId of the row from the Segment PreferenceTable. Only the valid row's ReferenceId can be set. |
Result< void > ACAPI::MEP::v1::RoutingSegment::SetCrossSectionShape | ( | ConnectorShape | shape | ) |
Sets the shape of the Routing Segment.
shape | The value to be set. |
Result< void > ACAPI::MEP::v1::RoutingSegment::SetCrossSectionWidth | ( | double | width | ) |
Sets the width of the RoutingSegment.
width | The value to be set. |
Result< void > ACAPI::MEP::v1::RoutingSegment::SetFlangeSize | ( | double | flangeSize | ) |
Sets the flange size (width for Ventilation, diameter for Piping) of the RoutingSegment if its connection style is Flanged.
flangeSize | The value to be set. |
Sets the PreferenceTable of the RoutingSegment.
uniqueId | The UniqueID of the PreferenceTable. |
void ACAPI::MEP::v1::RoutingSegment::SetReferenceLineOffsetX | ( | double | offset | ) |
Sets the offset from the reference line along the X-axis of cross-section's plane.
offset | The value to be set. |
void ACAPI::MEP::v1::RoutingSegment::SetReferenceLineOffsetY | ( | double | offset | ) |
Sets the offset from the reference line along the Y-axis of cross-section's plane.
offset | The value to be set. |
Result< void > ACAPI::MEP::v1::RoutingSegment::SetRigidSegmentDefaultParameters | ( | const RigidSegmentDefault & | rigidSegmentDefault | ) |
Sets the parameters of the RigidSegments.
rigidSegmentDefault | The Default to be set. One should pay attention to the parameter, it has to belong to the same domain than the object it is called for. |
Result< void > ACAPI::MEP::v1::RoutingSegment::SetWallThickness | ( | double | thickness | ) |
Sets the wall thickness of the RoutingSegment.
thickness | The value to be set. |