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

References a container object for all environments in a model. More...

#include <SketchUpAPI/model/environments.h>

Related Functions

(Note that these are not member functions.)

enum SUResult SUEnvironmentsGetCount (SUEnvironmentsRef environments, size_t *count)
 Retrieves the number of environment objects in an environments object. More...
 
enum SUResult SUEnvironmentsGetAll (SUEnvironmentsRef environments, size_t len, SUEnvironmentRef items[], size_t *count)
 Retrieves every environment associated with an environments object. More...
 
enum SUResult SUEnvironmentsGetSelectedEnvironment (SUEnvironmentsRef environments, SUEnvironmentRef *environment)
 Retrieves the currently selected environment. More...
 
enum SUResult SUEnvironmentsGetEnvironmentByPersistentID (SUEnvironmentsRef environments, uint64_t pid, SUEnvironmentRef *environment)
 Retrieves an environment by persistent ID. More...
 
enum SUResult SUEnvironmentsGetEnvironmentByName (SUEnvironmentsRef environments, const char *name, SUEnvironmentRef *environment)
 Retrieves an environment by name. More...
 
enum SUResult SUEnvironmentsAdd (SUEnvironmentsRef environments, SUEnvironmentRef environment)
 Adds an environment to an environments object. More...
 
enum SUResult SUEnvironmentsRemove (SUEnvironmentsRef environments, SUEnvironmentRef environment)
 Removes an environment from an environments object. More...
 

Detailed Description

References a container object for all environments in a model.

Since
SketchUp 2025.0, API 13.0

Friends And Related Function Documentation

enum SUResult SUEnvironmentsAdd ( SUEnvironmentsRef  environments,
SUEnvironmentRef  environment 
)
related

Adds an environment to an environments object.

Note
This method transfers ownership of the environment to the model. Do not call SUEnvironmentRelease on environment after calling this method.
Since
SketchUp 2025.0, API 13.0
Parameters
[in]environmentsThe environments object.
[in]environmentThe environment object to add.
Returns
enum SUResult SUEnvironmentsGetAll ( SUEnvironmentsRef  environments,
size_t  len,
SUEnvironmentRef  items[],
size_t *  count 
)
related

Retrieves every environment associated with an environments object.

Since
SketchUp 2025.0, API 13.0
Parameters
[in]environmentsThe environments object.
[in]lenThe number of environments to retrieve.
[out]itemsThe environments retrieved.
[out]countThe number of environments retrieved.
Returns
enum SUResult SUEnvironmentsGetCount ( SUEnvironmentsRef  environments,
size_t *  count 
)
related

Retrieves the number of environment objects in an environments object.

Since
SketchUp 2025.0, API 13.0
Parameters
[in]environmentsThe environments object.
[out]countThe number of environments.
Returns
enum SUResult SUEnvironmentsGetEnvironmentByName ( SUEnvironmentsRef  environments,
const char *  name,
SUEnvironmentRef environment 
)
related

Retrieves an environment by name.

Since
SketchUp 2025.0, API 13.0
Parameters
[in]environmentsThe environments object.
[in]nameThe name of the environment object to retrieve.
[out]environmentThe environment object with the given name.
Returns
enum SUResult SUEnvironmentsGetEnvironmentByPersistentID ( SUEnvironmentsRef  environments,
uint64_t  pid,
SUEnvironmentRef environment 
)
related

Retrieves an environment by persistent ID.

Since
SketchUp 2025.0, API 13.0
Parameters
[in]environmentsThe environments object.
[in]pidThe PID of the environment object to retrieve.
[out]environmentThe environment object with the given PID.
Returns
enum SUResult SUEnvironmentsGetSelectedEnvironment ( SUEnvironmentsRef  environments,
SUEnvironmentRef environment 
)
related

Retrieves the currently selected environment.

Since
SketchUp 2025.0, API 13.0
Parameters
[in]environmentsThe environments object.
[out]environmentThe selected environment object.
Returns
enum SUResult SUEnvironmentsRemove ( SUEnvironmentsRef  environments,
SUEnvironmentRef  environment 
)
related

Removes an environment from an environments object.

Since
SketchUp 2025.0, API 13.0
Parameters
[in]environmentsThe environments object.
[in]environmentThe environment object to remove.
Returns

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