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
 
    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);
 
}
  
 
 
◆ 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_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_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
 -  
 
 
 
◆ 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;