return;
}
Reporter bendReporter (3);
bendReporter.Add ("Bend id", id);
bendReporter.SetTabCount (4);
if (factorRadius.
IsOk ())
bendReporter.Add ("Factor Radius", *factorRadius);
bendReporter.Add ("Radius", bend->GetRadius ());
bendReporter.Add ("Width", bend->GetWidth ());
bendReporter.Add ("Height", bend->GetHeight ());
bendReporter.Add ("Shape", bend->GetShape ());
std::optional<double> insulation = bend->GetInsulationThickness ();
insulation.has_value () ? bendReporter.Add ("Insulation thickness", *insulation) : bendReporter.Add ("Does not have insulation.");
bendReporter.Write ();
static Result< Bend > Get(const UniqueID &uniqueId)
Returns a Bend.
Result is the standard return type of API functions.
Definition: Result.hpp:845
E UnwrapErr() const
Unwraps the error value contained in the Result. Trying to UnwrapErr the value while it contains an O...
Definition: Result.hpp:1140
bool IsErr() const
Definition: Result.hpp:945
bool IsOk() const
Definition: Result.hpp:940
void ACAPI_WriteReport(const GS::UniString &format, bool withDial,...)
Writes a report string into the Report Windowot into a custom alert window.
Labeling for (
const UniqueID& bendId : routingSegment->GetBendIds ()) {
const API_Guid labelGuid = PlaceLabelOn (bendId);
GS::Array<API_Guid> connectedLabels;
if (!connectedLabels.Contains (labelGuid))
}
The MEP unique identifier.
Definition: MEPUniqueID.hpp:30
constexpr API_Guid APINULLGuid
Represents an empty API guid.
Definition: API_Guid.hpp:241
API_Guid & GSGuid2APIGuid(GS::Guid &guid)
Converting from GS::Guid to API_Guid.
Definition: API_Guid.hpp:95
GSErrCode ACAPI_Grouping_GetConnectedElements(const API_Guid &guid, const API_ElemType &connectedElemType, GS::Array< API_Guid > *connectedElements, API_ElemFilterFlags filterBits=APIFilt_None, const API_Guid &renovationFilterGuid=APINULLGuid)
Returns a list of elements connected to the given element.
Error type for ACAPI::Result containing an error message and an error code.
Definition: Result.hpp:47
Represents a GS::Guid in the API layer.
Definition: API_Guid.hpp:46