Archicad 28 C++ API
|
The AccessoryDefault contains the necessary non-geometric data for creating an Accessory element. More...
#include <MEPAccessoryDefault.hpp>
Public Member Functions | |
Result< UniqueID > | Place (const API_Coord3D &coordinate, const Orientation &orientation, const std::optional< API_Guid > &requiredId=std::nullopt) const |
Places an Accessory element based on this Default. | |
Result< UniqueID > | Place (const UniqueID &portOrNodeId, const std::optional< API_Guid > &requiredId=std::nullopt) const |
Places an Accessory element based on this Default and connects it with the provided Port or RoutingNode, if it is possible. | |
![]() | |
std::optional< double > | GetInsulationThickness () const |
uint32_t | GetPortCount () const |
Domain | GetDomain () const |
API_Guid | GetObjectId () const |
Result< Domain > | GetDomainOfPort (uint32_t portIndex) const |
Result< VentilationPortDefault > | GetVentilationPortDefault (uint32_t portIndex) const |
Result< PipingPortDefault > | GetPipingPortDefault (uint32_t portIndex) const |
Result< CableCarrierPortDefault > | GetCableCarrierPortDefault (uint32_t portIndex) const |
template<class ModifierFunc > | |
Result< void > | Modify (ModifierFunc &&modifierFunc) |
Executes the given modifier scope in a NotUndoable command. | |
void | RemoveInsulation () |
Removes the insulation. | |
Result< void > | SetInsulationThickness (double insulationThickness) |
Sets the thickness of insulation on the ElementDefault. | |
void | SetObjectId (const API_Guid &libraryPartId) |
Sets the referenced library part of the ElementDefault. | |
![]() | |
Result< void > | SetAsArchicadDefault () const |
Sets the locally prepared Default settings to the Archicad Default. | |
![]() | |
Object (std::shared_ptr< Impl::ObjectImpl > impl) | |
Constructs a new object. | |
const API_Token & | GetToken () const |
Get the token for this object. | |
Friends | |
class | ACAPI::Impl::ObjectCreator |
Result< AccessoryDefault > | CreateAccessoryDefault (Domain) |
Creates an AccessoryDefault. | |
Additional Inherited Members | |
![]() | |
ElementDefault (std::shared_ptr< Impl::IElementDefaultImpl > impl) | |
Constructs an ElementDefault with the given element default implementation. | |
Modifier (ElementDefault &parent) | |
Constructs a Modifier with the given parent ElementDefault. | |
![]() | |
ElementDefault (std::shared_ptr< Impl::ElementDefaultImpl > impl) | |
Constructs a new ElementDefault. | |
![]() | |
~Object () | |
Default destructor. | |
![]() | |
std::shared_ptr< Impl::ObjectImpl > | mImpl |
Impl object given by constructor. | |
The AccessoryDefault contains the necessary non-geometric data for creating an Accessory element.
Result< UniqueID > ACAPI::MEP::v1::AccessoryDefault::Place | ( | const API_Coord3D & | coordinate, |
const Orientation & | orientation, | ||
const std::optional< API_Guid > & | requiredId = std::nullopt |
||
) | const |
Places an Accessory element based on this Default.
The implementation creates an Undoable Command Scope before executing the placement. This Command Scope is automatically closed after execution. When someone would like to group the placement of several RoutingElements and/or MEP elements together, it is recommended to create a single Command Scope. Doing this prevents the opening and closing of a Command Scope for every single created RoutingElement and/or MEP element, therefore the performance should be improved.
Result< UniqueID > ACAPI::MEP::v1::AccessoryDefault::Place | ( | const UniqueID & | portOrNodeId, |
const std::optional< API_Guid > & | requiredId = std::nullopt |
||
) | const |
Places an Accessory element based on this Default and connects it with the provided Port or RoutingNode, if it is possible.
The implementation creates an Undoable Command Scope before executing the placement. This Command Scope is automatically closed after execution. When someone would like to group the placement of several RoutingElements and/or MEP elements together, it is recommended to create a single Command Scope. Doing this prevents the opening and closing of a Command Scope for every single created RoutingElement and/or MEP element, therefore the performance should be improved.
portOrNodeId | The id of a Port or RoutingNode, which provides the placed Accessory's position and orientation. |
requiredId | The guid to be set for the Accessory - optional parameter |
|
friend |
Creates an AccessoryDefault.
domain | The Domain of the requested AccessoryDefault. It can be ventilation or piping. |