Functions related to the Survey Point.
More...
Functions related to the Survey Point.
◆ ACAPI_SurveyPoint_GetSurveyPointTransformation()
GSErrCode ACAPI_SurveyPoint_GetSurveyPointTransformation |
( |
API_Tranmat * |
apiSPTransformation | ) |
|
Returns the transformation matrix that transforms points given in the Project Origin's coordinate system into the Survey Point's coordinate system.
- Since
- Archicad 25
- Parameters
-
apiSPTransformation | [out] the calculated transformation matrix |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - apiSPTransformation is nullptr
- Example
if (ACAPI_Environment (APIEnv_GetSurveyPointTransformationID, &tm) == NoError) {
coordInSPSystem.
x = tm.tmx[0]*pointInProject.
x + tm.tmx[1]*pointInProject.
y + tm.tmx[2]*pointInProject.
z + tm.tmx[3];
coordInSPSystem.
y = tm.tmx[4]*pointInProject.
x + tm.tmx[5]*pointInProject.
y + tm.tmx[6]*pointInProject.
z + tm.tmx[7];
coordInSPSystem.
z = tm.tmx[8]*pointInProject.
x + tm.tmx[9]*pointInProject.
y + tm.tmx[10]*pointInProject.
z + tm.tmx[11];
ACAPI_WriteReport (
"Point coordinates in the Survey Point's coordinate system: x=%lf, y=%lf, z=%lf",
false, coordInSPSystem.
x, coordInSPSystem.
y, coordInSPSystem.
z);
}
void ACAPI_WriteReport(const GS::UniString &format, bool withDial,...)
Writes a report string into the Report Windowot into a custom alert window.
Real (Cartesian) 3D coordinates of a three-dimensional space.
Definition: APIdefs_Base.h:108
double x
The x factor.
Definition: APIdefs_Base.h:113
double z
The z factor.
Definition: APIdefs_Base.h:125
double y
The y factor.
Definition: APIdefs_Base.h:119
A 3*4 transformation matrix.
Definition: APIdefs_Base.h:418
◆ ACAPI_SurveyPoint_IsSurveyPointLocked()
GSErrCode ACAPI_SurveyPoint_IsSurveyPointLocked |
( |
bool * |
isSurveyPointLocked | ) |
|
Returns the lock state of the Survey Point.
- Since
- Archicad 25
- Parameters
-
isSurveyPointLocked | [out] Lock state of the Survey Point |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - The passed parameter is nullptr
- Example
bool isSurveyPointLocked = false;
ACAPI_Environment (APIEnv_IsSurveyPointLockedID, &isSurveyPointLocked);
◆ ACAPI_SurveyPoint_IsSurveyPointVisible()
GSErrCode ACAPI_SurveyPoint_IsSurveyPointVisible |
( |
bool * |
spVisibility | ) |
|
Checks if the survey point is visible.
- Since
- Archicad 25
- Parameters
-
spVisibility | [out] Survey point visibility |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - spVisibility is nullptr
- Example
bool spVisibility = true;
ACAPI_Environment (APIEnv_IsSurveyPointVisibleID, &spVisibility);
◆ ACAPI_SurveyPoint_SetSurveyPointLocked()
GSErrCode ACAPI_SurveyPoint_SetSurveyPointLocked |
( |
bool * |
lockedState | ) |
|
Locks or Unlocks the Survey Point.
- Since
- Archicad 25
- Parameters
-
lockedState | [in] Lock state of the Survey Point |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - The passed parameter is nullptr
- Example
bool lockedState = true;
ACAPI_Environment (APIEnv_SetSurveyPointLockedID, &lockedState);
◆ ACAPI_SurveyPoint_SetSurveyPointVisibility()
GSErrCode ACAPI_SurveyPoint_SetSurveyPointVisibility |
( |
bool * |
spVisibility | ) |
|
Sets the visibility of the survey point.
- Since
- Archicad 25
- Parameters
-
spVisibility | [in] New survey point visibility |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - spVisibility is nullptr
- Example
bool spVisibility = true;
ACAPI_Environment (APIEnv_SetSurveyPointVisibilityID, &spVisibility);