The ElementDefault contains the necessary non-geometric data for creating a MEP element.
More...
#include <OpeningDefault.hpp>
|
| OpeningDefault (std::shared_ptr< Impl::OpeningDefaultImpl > impl) |
| Constructs an OpeningDefault with the given element default implementation.
|
|
| ~Object () |
| Default destructor.
|
|
The ElementDefault contains the necessary non-geometric data for creating a MEP element.
- Since
- Archicad 29
◆ OpeningDefault()
ACAPI::Element::OpeningDefault::OpeningDefault |
( |
std::shared_ptr< Impl::OpeningDefaultImpl > | impl | ) |
|
|
protected |
Constructs an OpeningDefault with the given element default implementation.
- Parameters
-
◆ Create()
◆ GetExtrusionParameters()
- Returns
- Returns the extrusion geometry of the opening.
◆ GetFloorPlanParameters()
- Returns
- Returns the floorplan parameters of the opening.
◆ Modify()
template<class ModifierFunc >
Result< void > ACAPI::Element::OpeningDefault::Modify |
( |
ModifierFunc && | modifierFunc | ) |
|
Executes the given modifier scope in a NotUndoable command.
- Parameters
-
modifierFunc | The modifier scope (lambda, std::function or function pointer) the caller wants to execute. |
- Returns
- Returns an error if the process of modification fails for some reason, otherwise nothing.
◆ Place()
Puts an opening in an element at a given point.
The implementation creates an Undoable Command Scope before executing the placement. This Command Scope is automatically closed after execution.
If the input point is not on the parent element's surface, the opening will be placed on the closest point on the surface, projected perpendicularly.
- Parameters
-
parentElemId | The parent element's unique ID. |
inputPoint | The point where the opening will be placed. |
- Returns
- If executed with success, returns the newly placed opening's unique ID, otherwise Error.
◆ PlacePolygonal()
Result< UniqueID > ACAPI::Element::OpeningDefault::PlacePolygonal |
( |
const UniqueID & | parentElemId, |
|
|
const API_Coord3D & | inputPoint, |
|
|
const Geometry::Polygon2D & | polygon ) const |
Puts an opening in an element at a given point.
The implementation creates an Undoable Command Scope before executing the placement. This Command Scope is automatically closed after execution.
If the input point is not on the parent element's surface, the opening will be placed on the closest point on the surface, projected perpendicularly.
The created opening will be custom, and use the polygon given as parameter even if the default was set to rectangular or circular.
- Parameters
-
parentElemId | The parent element's unique ID. |
inputPoint | The point where the opening will be placed. |
polygon | The shape of the opening. |
- Returns
- If executed with success, returns the newly placed opening's unique ID, otherwise Error.
◆ CreateOpeningDefault [1/2]
◆ CreateOpeningDefault [2/2]
Creates an OpeningDefault from the given base element default.
- Parameters
-
defaultElem | The base element default which will be converted to an OpeningDefault. |
- Since
- Archicad 29
- Returns
- If the given base element default refers to an Opening, returns a copy of the OpeningDefault, otherwise Error.