Archicad 28 C++ API
|
The PipeBranchPreferenceTable contains cross section and geometry related information for Pipe branches. More...
#include <MEPPipeBranchPreferenceTable.hpp>
Public Member Functions | |
bool | Exists () const |
Result< void > | IsEditable () const |
Checks whether the table is editable. | |
GS::UniString | GetName () const |
uint32_t | GetSize () const |
Result< uint32_t > | GetMainAxisReferenceId (uint32_t index) const |
Result< uint32_t > | GetBranchAxisReferenceId (uint32_t index) const |
Result< bool > | IsRowValid (uint32_t index) const |
A row is considered valid if both diameters, the length, the branchOffset and the connectionLength contains non-zero values, description is optional. | |
Result< bool > | IsRowValidByReferenceIds (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId) const |
A row is considered valid if both diameters, the length, the branchOffset and the connectionLength contains non-zero values, description is optional. | |
Result< double > | GetMainAxisDiameter (uint32_t index) const |
Result< double > | GetMainAxisDiameterByReferenceIds (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId) const |
Result< double > | GetBranchAxisDiameter (uint32_t index) const |
Result< double > | GetBranchAxisDiameterByReferenceIds (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId) const |
Result< double > | GetLength (uint32_t index) const |
Result< double > | GetLengthByReferenceIds (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId) const |
Result< double > | GetBranchOffset (uint32_t index) const |
Result< double > | GetBranchOffsetByReferenceIds (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId) const |
Result< double > | GetConnectionLength (uint32_t index) const |
Result< double > | GetConnectionLengthByReferenceIds (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId) const |
Result< GS::UniString > | GetDescription (uint32_t index) const |
Result< GS::UniString > | GetDescriptionByReferenceIds (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId) const |
template<typename ModifierFunc > | |
Result< void > | Modify (const ModifierFunc &modifierFunc, const GS::UniString &undoString) |
Executes the passed modifier scope in an Undoable command. | |
void | SetName (const GS::UniString &tableName) |
Sets the name of the table. | |
Result< uint32_t > | AddNewRow (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId) |
Inserts a new row into the table. | |
Result< void > | DeleteRow (uint32_t index) |
Deletes a row from the table. | |
Result< void > | DeleteRowByReferenceIds (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId) |
Deletes a row from the table. | |
Result< void > | SetMainAxisDiameter (uint32_t index, double diameter) |
Sets the main axis diameter value of a table's row. | |
Result< void > | SetMainAxisDiameterByReferenceIds (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId, double diameter) |
Sets the main axis diameter value of a table's row. | |
Result< void > | SetBranchAxisDiameter (uint32_t index, double diameter) |
Sets the branch axis diameter value of a table's row. | |
Result< void > | SetBranchAxisDiameterByReferenceIds (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId, double diameter) |
Sets the branch axis diameter value of a table's row. | |
Result< void > | SetLength (uint32_t index, double length) |
Sets the length value of a table's row. | |
Result< void > | SetLengthByReferenceIds (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId, double length) |
Sets the diameter value of a table's row. | |
Result< void > | SetBranchOffset (uint32_t index, double branchOffset) |
Sets the branch offset value of a table's row. | |
Result< void > | SetBranchOffsetByReferenceIds (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId, double branchOffset) |
Sets the branch offset value of a table's row. | |
Result< void > | SetConnectionLength (uint32_t index, double connectionLength) |
Sets the connection length value of a table's row. | |
Result< void > | SetConnectionLengthByReferenceIds (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId, double connectionLength) |
Sets the connection length value of a table's row. | |
Result< void > | SetDescription (uint32_t index, const GS::UniString &description) |
Sets the description of a table's row. | |
Result< void > | SetDescriptionByReferenceIds (uint32_t mainAxisReferenceId, uint32_t branchAxisReferenceId, const GS::UniString &description) |
Sets the description of a table's row. | |
![]() | |
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< PipeBranchPreferenceTable > | Get (const UniqueID &uniqueId) |
Returns a PipeBranchPreferenceTable. | |
Protected Member Functions | |
Modifier (PipeBranchPreferenceTable &parent) | |
Constructs a Modifier with the given PipeBranchPreferenceTable. | |
![]() | |
~Object () | |
Default destructor. | |
Additional Inherited Members | |
![]() | |
std::shared_ptr< Impl::ObjectImpl > | mImpl |
Impl object given by constructor. | |
The PipeBranchPreferenceTable contains cross section and geometry related information for Pipe branches.
The table uses the keys defined by the PipeReferenceSet. To consider a table row usable and valid, it should have all its fields filled, beside its description, which is optional.
Result< uint32_t > ACAPI::MEP::v1::PipeBranchPreferenceTable::AddNewRow | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId | ||
) |
Inserts a new row into the table.
mainAxisReferenceId | The main axis referenceId of the new row. It must be a referenceId that is defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the new row. It must be a referenceId that is defined in the PipeReferenceSet. |
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::DeleteRow | ( | uint32_t | index | ) |
Deletes a row from the table.
index | The index of the row. Index starts from 0. |
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::DeleteRowByReferenceIds | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId | ||
) |
Deletes a row from the table.
mainAxisReferenceId | The main axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
bool ACAPI::MEP::v1::PipeBranchPreferenceTable::Exists | ( | ) | const |
|
static |
Returns a PipeBranchPreferenceTable.
uniqueId | The UniqueID of the requested PipeBranchPreferenceTable. |
Result< double > ACAPI::MEP::v1::PipeBranchPreferenceTable::GetBranchAxisDiameter | ( | uint32_t | index | ) | const |
index | The index of the row. Index starts from 0. |
Result< double > ACAPI::MEP::v1::PipeBranchPreferenceTable::GetBranchAxisDiameterByReferenceIds | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId | ||
) | const |
mainAxisReferenceId | The main axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
Result< uint32_t > ACAPI::MEP::v1::PipeBranchPreferenceTable::GetBranchAxisReferenceId | ( | uint32_t | index | ) | const |
index | The index of the row. Index starts from 0. |
Result< double > ACAPI::MEP::v1::PipeBranchPreferenceTable::GetBranchOffset | ( | uint32_t | index | ) | const |
index | The index of the row. Index starts from 0. |
Result< double > ACAPI::MEP::v1::PipeBranchPreferenceTable::GetBranchOffsetByReferenceIds | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId | ||
) | const |
mainAxisReferenceId | The main axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
Result< double > ACAPI::MEP::v1::PipeBranchPreferenceTable::GetConnectionLength | ( | uint32_t | index | ) | const |
index | The index of the row. Index starts from 0. |
Result< double > ACAPI::MEP::v1::PipeBranchPreferenceTable::GetConnectionLengthByReferenceIds | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId | ||
) | const |
mainAxisReferenceId | The main axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
Result< GS::UniString > ACAPI::MEP::v1::PipeBranchPreferenceTable::GetDescription | ( | uint32_t | index | ) | const |
index | The index of the row. Index starts from 0. |
Result< GS::UniString > ACAPI::MEP::v1::PipeBranchPreferenceTable::GetDescriptionByReferenceIds | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId | ||
) | const |
mainAxisReferenceId | The main axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
Result< double > ACAPI::MEP::v1::PipeBranchPreferenceTable::GetLength | ( | uint32_t | index | ) | const |
index | The index of the row. Index starts from 0. |
Result< double > ACAPI::MEP::v1::PipeBranchPreferenceTable::GetLengthByReferenceIds | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId | ||
) | const |
mainAxisReferenceId | The main axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
Result< double > ACAPI::MEP::v1::PipeBranchPreferenceTable::GetMainAxisDiameter | ( | uint32_t | index | ) | const |
index | The index of the row. Index starts from 0. |
Result< double > ACAPI::MEP::v1::PipeBranchPreferenceTable::GetMainAxisDiameterByReferenceIds | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId | ||
) | const |
mainAxisReferenceId | The main axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
Result< uint32_t > ACAPI::MEP::v1::PipeBranchPreferenceTable::GetMainAxisReferenceId | ( | uint32_t | index | ) | const |
index | The index of the row. Index starts from 0. |
GS::UniString ACAPI::MEP::v1::PipeBranchPreferenceTable::GetName | ( | ) | const |
uint32_t ACAPI::MEP::v1::PipeBranchPreferenceTable::GetSize | ( | ) | const |
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::IsEditable | ( | ) | const |
Checks whether the table is editable.
Result< bool > ACAPI::MEP::v1::PipeBranchPreferenceTable::IsRowValid | ( | uint32_t | index | ) | const |
A row is considered valid if both diameters, the length, the branchOffset and the connectionLength contains non-zero values, description is optional.
index | The index of the row. Index starts from 0. |
Result< bool > ACAPI::MEP::v1::PipeBranchPreferenceTable::IsRowValidByReferenceIds | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId | ||
) | const |
A row is considered valid if both diameters, the length, the branchOffset and the connectionLength contains non-zero values, description is optional.
mainAxisReferenceId | The main axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
|
protected |
Constructs a Modifier with the given PipeBranchPreferenceTable.
parent | The given PipeBranchPreferenceTable. |
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::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. |
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::SetBranchAxisDiameter | ( | uint32_t | index, |
double | diameter | ||
) |
Sets the branch axis diameter value of a table's row.
index | The index of the row. Index starts from 0. |
diameter | The value to be set. Must be a non-zero positive number. |
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::SetBranchAxisDiameterByReferenceIds | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId, | ||
double | diameter | ||
) |
Sets the branch axis diameter value of a table's row.
mainAxisReferenceId | The main axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
diameter | The value to be set. Must be a non-zero positive number. |
If there isn't any row with the given pair of referenceIds, but both the referenceIds are defined in the PipeReferenceSet, it will insert the row.
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::SetBranchOffset | ( | uint32_t | index, |
double | branchOffset | ||
) |
Sets the branch offset value of a table's row.
index | The index of the row. Index starts from 0. |
branchOffset | The value to be set. Must be a non-zero positive number. |
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::SetBranchOffsetByReferenceIds | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId, | ||
double | branchOffset | ||
) |
Sets the branch offset value of a table's row.
mainAxisReferenceId | The main axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchOffset | The value to be set. Must be a non-zero positive number. |
If there isn't any row with the given pair of referenceIds, but both the referenceIds are defined in the PipeReferenceSet, it will insert the row.
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::SetConnectionLength | ( | uint32_t | index, |
double | connectionLength | ||
) |
Sets the connection length value of a table's row.
index | The index of the row. Index starts from 0. |
connectionLength | The value to be set. Must be a non-zero positive number. |
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::SetConnectionLengthByReferenceIds | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId, | ||
double | connectionLength | ||
) |
Sets the connection length value of a table's row.
mainAxisReferenceId | The main axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
connectionLength | The value to be set. Must be a non-zero positive number. |
If there isn't any row with the given pair of referenceIds, but both the referenceIds are defined in the PipeReferenceSet, it will insert the row.
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::SetDescription | ( | uint32_t | index, |
const GS::UniString & | description | ||
) |
Sets the description of a table's row.
index | The index of the row. Index starts from 0. |
description | The description to be set. |
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::SetDescriptionByReferenceIds | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId, | ||
const GS::UniString & | description | ||
) |
Sets the description of a table's row.
mainAxisReferenceId | The main axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
description | The description to be set. |
If there isn't any row with the given pair of referenceIds, but both the referenceIds are defined in the PipeReferenceSet, it will insert the row.
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::SetLength | ( | uint32_t | index, |
double | length | ||
) |
Sets the length value of a table's row.
index | The index of the row. Index starts from 0. |
length | The value to be set. Must be a non-zero positive number. |
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::SetLengthByReferenceIds | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId, | ||
double | length | ||
) |
Sets the diameter value of a table's row.
mainAxisReferenceId | The main axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
length | The value to be set. Must be a non-zero positive number. |
If there isn't any row with the given pair of referenceIds, but both the referenceIds are defined in the PipeReferenceSet, it will insert the row.
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::SetMainAxisDiameter | ( | uint32_t | index, |
double | diameter | ||
) |
Sets the main axis diameter value of a table's row.
index | The index of the row. Index starts from 0. |
diameter | The value to be set. Must be a non-zero positive number. |
Result< void > ACAPI::MEP::v1::PipeBranchPreferenceTable::SetMainAxisDiameterByReferenceIds | ( | uint32_t | mainAxisReferenceId, |
uint32_t | branchAxisReferenceId, | ||
double | diameter | ||
) |
Sets the main axis diameter value of a table's row.
mainAxisReferenceId | The main axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
branchAxisReferenceId | The branch axis referenceId of the row. The table only contains the referenceIds that are defined in the PipeReferenceSet. |
diameter | The value to be set. Must be a non-zero positive number. |
If there isn't any row with the given pair of referenceIds, but both the referenceIds are defined in the PipeReferenceSet, it will insert the row.
void ACAPI::MEP::v1::PipeBranchPreferenceTable::SetName | ( | const GS::UniString & | tableName | ) |
Sets the name of the table.
tableName | The name to be set. |