SketchUp C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Related Functions
SUCRSLocationRef Struct Reference

A Coordinate Reference System (CRS) location object. More...

#include <SketchUpAPI/model/crslocation.h>

Related Functions

(Note that these are not member functions.)

enum SUResult SUCRSLocationCreate (SUCRSLocationRef *location_ref)
 Creates an empty CRS location struct. More...
 
enum SUResult SUCRSLocationRelease (SUCRSLocationRef *location_ref)
 Releases a CRS location object. More...
 
enum SUResult SUCRSLocationSetEastings (SUCRSLocationRef location_ref, double value)
 Sets the eastings value of a CRS location object. More...
 
enum SUResult SUCRSLocationGetEastings (SUCRSLocationRef location_ref, double *value)
 Gets the eastings value of a CRS location object. More...
 
enum SUResult SUCRSLocationSetNorthings (SUCRSLocationRef location_ref, double value)
 Sets the northings value of a CRS location object. More...
 
enum SUResult SUCRSLocationGetNorthings (SUCRSLocationRef location_ref, double *value)
 Gets the northings value of a CRS location object. More...
 
enum SUResult SUCRSLocationSetHeight (SUCRSLocationRef location_ref, double value)
 Sets the orthogonal height value of a CRS location object. More...
 
enum SUResult SUCRSLocationGetHeight (SUCRSLocationRef location_ref, double *value)
 Gets the orthogonal height value of a CRS location object. More...
 
enum SUResult SUCRSLocationSetXAxis (SUCRSLocationRef location_ref, const struct SUVector2D *value)
 Sets the x-axis of a CRS location object. More...
 
enum SUResult SUCRSLocationGetXAxis (SUCRSLocationRef location_ref, struct SUVector2D *value)
 Gets the x-axis of a CRS location object. More...
 
enum SUResult SUCRSLocationSetScale (SUCRSLocationRef location_ref, double value)
 Sets the scale value of a CRS location object. More...
 
enum SUResult SUCRSLocationGetScale (SUCRSLocationRef location_ref, double *value)
 Gets the scale value of a CRS location object. More...
 
enum SUResult SUCRSLocationSetName (SUCRSLocationRef location_ref, const char *value)
 Sets the CRS name of a CRS location object. More...
 
enum SUResult SUCRSLocationGetName (SUCRSLocationRef location_ref, SUStringRef *value)
 Gets the CRS name of a CRS location object. More...
 
enum SUResult SUCRSLocationSetDescription (SUCRSLocationRef location_ref, const char *value)
 Sets the description of a CRS location object. More...
 
enum SUResult SUCRSLocationGetDescription (SUCRSLocationRef location_ref, SUStringRef *value)
 Gets the description of a CRS location object. More...
 
enum SUResult SUCRSLocationSetGeodeticDatum (SUCRSLocationRef location_ref, const char *value)
 Sets the geodetic datum of a CRS location object. More...
 
enum SUResult SUCRSLocationGetGeodeticDatum (SUCRSLocationRef location_ref, SUStringRef *value)
 Gets the geodetic datum of a CRS location object. More...
 
enum SUResult SUCRSLocationSetVerticalDatum (SUCRSLocationRef location_ref, const char *value)
 Sets the vertical datum of a CRS location object. More...
 
enum SUResult SUCRSLocationGetVerticalDatum (SUCRSLocationRef location_ref, SUStringRef *value)
 Gets the vertical datum of a CRS location object. More...
 
enum SUResult SUCRSLocationSetMapProjection (SUCRSLocationRef location_ref, const char *value)
 Sets the map projection of a CRS location object. More...
 
enum SUResult SUCRSLocationGetMapProjection (SUCRSLocationRef location_ref, SUStringRef *value)
 Gets the map projection of a CRS location object. More...
 
enum SUResult SUCRSLocationSetMapZone (SUCRSLocationRef location_ref, const char *value)
 Sets the map zone of a CRS location object. More...
 
enum SUResult SUCRSLocationGetMapZone (SUCRSLocationRef location_ref, SUStringRef *value)
 Gets the map zone of a CRS location object. More...
 
enum SUResult SUCRSLocationSetMapUnit (SUCRSLocationRef location_ref, const char *name, double conversion)
 Sets the map unit of a CRS location object. More...
 
enum SUResult SUCRSLocationGetMapUnit (SUCRSLocationRef location_ref, SUStringRef *name, double *conversion)
 Gets the map unit of a CRS location object. More...
 
enum SUResult SUCRSLocationSetTGLId (SUCRSLocationRef location_ref, const char *value)
 Sets the TGL identifier of a CRS location object. More...
 
enum SUResult SUCRSLocationGetTGLId (SUCRSLocationRef location_ref, SUStringRef *value)
 Gets the TGL identifier of a CRS location object. More...
 
enum SUResult SUCRSLocationSetCalibrationFileName (SUCRSLocationRef location_ref, const char *value)
 Sets the calibration file name of a CRS location object. More...
 
enum SUResult SUCRSLocationGetCalibrationFileName (SUCRSLocationRef location_ref, SUStringRef *value)
 Gets the calibration file name of a CRS location object. More...
 

Detailed Description

A Coordinate Reference System (CRS) location object.

Stores all data properties used to represent a CRS location. Not all properties are mandatory and data validation does not happen until the object is applied to a model via SUModelSetCRSLocationCopy(). This object is not associated with a model but rather a model's CRS location data can be copied to or from it.

Since
SketchUp 2027.0, API 15.0

Friends And Related Function Documentation

enum SUResult SUCRSLocationCreate ( SUCRSLocationRef *  location_ref)
related

Creates an empty CRS location struct.

Constructs a CRS location object and leaves each individual property set to a default value.

You must use SUCRSLocationRelease() on this CRS location object to free its memory.

Since
SketchUp 2027.0, API 15.0
Parameters
[out]location_refThe CRS location object to be created.
Returns
enum SUResult SUCRSLocationGetCalibrationFileName ( SUCRSLocationRef  location_ref,
SUStringRef *  value 
)
related

Gets the calibration file name of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in]location_refThe CRS location object.
[out]valueThe calibration file name string retrieved.
Returns
enum SUResult SUCRSLocationGetDescription ( SUCRSLocationRef  location_ref,
SUStringRef *  value 
)
related

Gets the description of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in]location_refThe CRS location object.
[out]valueThe description string retrieved.
Returns
enum SUResult SUCRSLocationGetEastings ( SUCRSLocationRef  location_ref,
double *  value 
)
related

Gets the eastings value of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in]location_refThe CRS location object.
[out]valueThe eastings value retrieved (meters).
Returns
enum SUResult SUCRSLocationGetGeodeticDatum ( SUCRSLocationRef  location_ref,
SUStringRef *  value 
)
related

Gets the geodetic datum of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in]location_refThe CRS location object.
[out]valueThe geodetic datum string retrieved.
Returns
enum SUResult SUCRSLocationGetHeight ( SUCRSLocationRef  location_ref,
double *  value 
)
related

Gets the orthogonal height value of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in]location_refThe CRS location object.
[out]valueThe height value retrieved (meters).
Returns
enum SUResult SUCRSLocationGetMapProjection ( SUCRSLocationRef  location_ref,
SUStringRef *  value 
)
related

Gets the map projection of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in]location_refThe CRS location object.
[out]valueThe map projection string retrieved.
Returns
enum SUResult SUCRSLocationGetMapUnit ( SUCRSLocationRef  location_ref,
SUStringRef *  name,
double *  conversion 
)
related

Gets the map unit of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in]location_refThe CRS location object.
[out]nameThe map unit name string retrieved.
[out]conversionThe map unit conversion factor to meters retrieved.
Returns
enum SUResult SUCRSLocationGetMapZone ( SUCRSLocationRef  location_ref,
SUStringRef *  value 
)
related

Gets the map zone of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in]location_refThe CRS location object.
[out]valueThe map zone string retrieved.
Returns
enum SUResult SUCRSLocationGetName ( SUCRSLocationRef  location_ref,
SUStringRef *  value 
)
related

Gets the CRS name of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in]location_refThe CRS location object.
[out]valueThe CRS name string retrieved.
Returns
enum SUResult SUCRSLocationGetNorthings ( SUCRSLocationRef  location_ref,
double *  value 
)
related

Gets the northings value of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in]location_refThe CRS location object.
[out]valueThe northings value retrieved (meters).
Returns
enum SUResult SUCRSLocationGetScale ( SUCRSLocationRef  location_ref,
double *  value 
)
related

Gets the scale value of a CRS location object.

The scale converts CRS units to SketchUp's internal units (inches).

Since
SketchUp 2027.0, API 15.0
Parameters
[in]location_refThe CRS location object.
[out]valueThe scale value retrieved.
Returns
enum SUResult SUCRSLocationGetTGLId ( SUCRSLocationRef  location_ref,
SUStringRef *  value 
)
related

Gets the TGL identifier of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in]location_refThe CRS location object.
[out]valueThe TGL identifier string retrieved.
Returns
enum SUResult SUCRSLocationGetVerticalDatum ( SUCRSLocationRef  location_ref,
SUStringRef *  value 
)
related

Gets the vertical datum of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in]location_refThe CRS location object.
[out]valueThe vertical datum string retrieved.
Returns
enum SUResult SUCRSLocationGetXAxis ( SUCRSLocationRef  location_ref,
struct SUVector2D *  value 
)
related

Gets the x-axis of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in]location_refThe CRS location object.
[out]valueThe x-axis unit vector retrieved.
Returns
enum SUResult SUCRSLocationRelease ( SUCRSLocationRef *  location_ref)
related

Releases a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object to be released.
Returns
enum SUResult SUCRSLocationSetCalibrationFileName ( SUCRSLocationRef  location_ref,
const char *  value 
)
related

Sets the calibration file name of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object.
[in]valueThe calibration file name string.
Returns
enum SUResult SUCRSLocationSetDescription ( SUCRSLocationRef  location_ref,
const char *  value 
)
related

Sets the description of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object.
[in]valueThe description string.
Returns
enum SUResult SUCRSLocationSetEastings ( SUCRSLocationRef  location_ref,
double  value 
)
related

Sets the eastings value of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object.
[in]valueThe eastings value (meters).
Returns
enum SUResult SUCRSLocationSetGeodeticDatum ( SUCRSLocationRef  location_ref,
const char *  value 
)
related

Sets the geodetic datum of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object.
[in]valueThe geodetic datum string.
Returns
enum SUResult SUCRSLocationSetHeight ( SUCRSLocationRef  location_ref,
double  value 
)
related

Sets the orthogonal height value of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object.
[in]valueThe height value (meters).
Returns
enum SUResult SUCRSLocationSetMapProjection ( SUCRSLocationRef  location_ref,
const char *  value 
)
related

Sets the map projection of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object.
[in]valueThe map projection string.
Returns
enum SUResult SUCRSLocationSetMapUnit ( SUCRSLocationRef  location_ref,
const char *  name,
double  conversion 
)
related

Sets the map unit of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object.
[in]nameThe map unit name string.
[in]conversionThe map unit conversion factor to meters. Must be greater than zero.
Returns
enum SUResult SUCRSLocationSetMapZone ( SUCRSLocationRef  location_ref,
const char *  value 
)
related

Sets the map zone of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object.
[in]valueThe map zone string.
Returns
enum SUResult SUCRSLocationSetName ( SUCRSLocationRef  location_ref,
const char *  value 
)
related

Sets the CRS name of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object.
[in]valueThe CRS name string. Must not be empty.
Returns
enum SUResult SUCRSLocationSetNorthings ( SUCRSLocationRef  location_ref,
double  value 
)
related

Sets the northings value of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object.
[in]valueThe northings value (meters).
Returns
enum SUResult SUCRSLocationSetScale ( SUCRSLocationRef  location_ref,
double  value 
)
related

Sets the scale value of a CRS location object.

The scale converts CRS units to SketchUp's internal units (inches).

Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object.
[in]valueThe scale value. Must be greater than zero.
Returns
enum SUResult SUCRSLocationSetTGLId ( SUCRSLocationRef  location_ref,
const char *  value 
)
related

Sets the TGL identifier of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object.
[in]valueThe TGL identifier string.
Returns
enum SUResult SUCRSLocationSetVerticalDatum ( SUCRSLocationRef  location_ref,
const char *  value 
)
related

Sets the vertical datum of a CRS location object.

Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object.
[in]valueThe vertical datum string.
Returns
enum SUResult SUCRSLocationSetXAxis ( SUCRSLocationRef  location_ref,
const struct SUVector2D *  value 
)
related

Sets the x-axis of a CRS location object.

The x-axis is expressed as a 2D unit vector and defines the orientation of the CRS axes relative to the model axes. The x and y components correspond to IfcMapConversion::XAxisAbscissa and IfcMapConversion::XAxisOrdinate respectively.

Note
If a non unit vector is provided only the normalized value will be stored.
Since
SketchUp 2027.0, API 15.0
Parameters
[in,out]location_refThe CRS location object.
[in]valueThe x-axis unit vector.
Returns

The documentation for this struct was generated from the following files: