|
SketchUp C API
|
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... | |
References a container object for all environments in a model.
|
related |
Adds an environment to an environments object.
environment to the model. Do not call SUEnvironmentRelease on environment after calling this method. | [in] | environments | The environments object. |
| [in] | environment | The environment object to add. |
environment or environments is not a valid objectenvironment is already part of the environments object
|
related |
Retrieves every environment associated with an environments object.
| [in] | environments | The environments object. |
| [in] | len | The number of environments to retrieve. |
| [out] | items | The environments retrieved. |
| [out] | count | The number of environments retrieved. |
environments is not a valid objectitems or count is NULL
|
related |
Retrieves the number of environment objects in an environments object.
| [in] | environments | The environments object. |
| [out] | count | The number of environments. |
environments is not a valid objectcount is NULL
|
related |
Retrieves an environment by name.
| [in] | environments | The environments object. |
| [in] | name | The name of the environment object to retrieve. |
| [out] | environment | The environment object with the given name. |
environments is not a valid objectenvironment is NULL
|
related |
Retrieves an environment by persistent ID.
| [in] | environments | The environments object. |
| [in] | pid | The PID of the environment object to retrieve. |
| [out] | environment | The environment object with the given PID. |
environments is not a valid objectenvironment is NULL
|
related |
Retrieves the currently selected environment.
| [in] | environments | The environments object. |
| [out] | environment | The selected environment object. |
environments is not a valid objectenvironment is NULL
|
related |
Removes an environment from an environments object.
| [in] | environments | The environments object. |
| [in] | environment | The environment object to remove. |
environment or environments is not a valid objectenvironment is not part of the environments object
1.8.3.1