References an entity, which is an abstract base type for most API types.
More...
#include <SketchUpAPI/model/entity.h>
Inherited by SUAttributeDictionaryRef, SUAxesRef, SUComponentDefinitionRef, SUCurveRef, SUDrawingElementRef, SUEdgeUseRef, SUFontRef, SULayerRef, SULineStyleRef, SULoopRef, SUMaterialRef, SUPolyline3dRef, SUSceneRef, SUStyleRef, SUTextureRef, and SUVertexRef.
|
(Note that these are not member functions.)
|
enum SURefType | SUEntityGetType (SUEntityRef entity) |
| Returns the concrete type of the given entity. More...
|
|
enum SUResult | SUEntityGetID (SUEntityRef entity, int32_t *entity_id) |
| Retrieves the id of the entity. More...
|
|
enum SUResult | SUEntityGetPersistentID (SUEntityRef entity, int64_t *entity_pid) |
| Retrieves the persistent id of the entity. More...
|
|
enum SUResult | SUEntityGetNumAttributeDictionaries (SUEntityRef entity, size_t *count) |
| Retrieves the number of attribute dictionaries of an entity. More...
|
|
enum SUResult | SUEntityGetAttributeDictionaries (SUEntityRef entity, size_t len, SUAttributeDictionaryRef dictionaries[], size_t *count) |
| Retrieves the attribute dictionaries of an entity. More...
|
|
enum SUResult | SUEntityAddAttributeDictionary (SUEntityRef entity, SUAttributeDictionaryRef dictionary) |
| Adds the attribute dictionary to an entity. The given dictionary object must not belong to another entity. In other words, each dictionary should be added to one entity only. More...
|
|
enum SUResult | SUEntityGetAttributeDictionary (SUEntityRef entity, const char *name, SUAttributeDictionaryRef *dictionary) |
| Retrieves the attribute dictionary of an entity that has the given name. More...
|
|
enum SUResult | SUEntityGetModel (SUEntityRef entity, SUModelRef *model) |
| Retrieves the model object associated with the entity. More...
|
|
enum SUResult | SUEntityGetParentEntities (SUEntityRef entity, SUEntitiesRef *entities) |
| Retrieves the entities object which contains the entity. More...
|
|
References an entity, which is an abstract base type for most API types.
Adds the attribute dictionary to an entity. The given dictionary object must not belong to another entity. In other words, each dictionary should be added to one entity only.
- Since
- SketchUp 2018 M0, API 6.0
- Parameters
-
[in] | entity | The entity. |
[in] | dictionary | The dictionary object to be added. If the function is successful, don't call SUAttributeDictionaryRelease on the dictionary because the new entity will take ownership. |
- Returns
-
Retrieves the attribute dictionaries of an entity.
- Parameters
-
[in] | entity | The entity. |
[in] | len | The number of attribute dictionaries to retrieve. |
[out] | dictionaries | The dictionaries retrieved. |
[out] | count | The number of dictionaries retrieved. |
- Returns
-
Retrieves the attribute dictionary of an entity that has the given name.
If a dictionary with the given name does not exist, one is added to the entity.
- Parameters
-
[in] | entity | The entity. |
[in] | name | The name of the retrieved attribute dictionary. Assumed to be UTF-8 encoded. |
[out] | dictionary | The destination of the retrieved dictionary object. |
- Returns
-
Retrieves the id of the entity.
- Parameters
-
[in] | entity | The entity. |
[out] | entity_id | The id retrieved. |
- Returns
-
Retrieves the model object associated with the entity.
- Since
- SketchUp 2018 M0, API 6.0
- Parameters
-
[in] | entity | The entity. |
[out] | model | The model object retrieved. |
- Returns
-
Retrieves the number of attribute dictionaries of an entity.
- Bug:
- Prior to SDK version 9.1 (SketchUp 2021.1) this function might return a count higher than what SUEntityGetNumAttributeDictionaries() will actually return. For example with faces with a positioned material.
- Parameters
-
[in] | entity | The entity. |
[out] | count | The number of attribute dictionaries. |
- Returns
-
Retrieves the entities object which contains the entity.
- Since
- SketchUp 2018 M0, API 6.0
- Parameters
-
[in] | entity | The entity. |
[out] | entities | The entities object retrieved. |
- Returns
-
Retrieves the persistent id of the entity.
- Note
- Only a subset of entity types support PIDs. Refer to the list below for which and when support was added.
SketchUp 2020.1
- Parameters
-
[in] | entity | The entity. |
[out] | entity_pid | The persistent id retrieved. |
- Returns
-
Returns the concrete type of the given entity.
- Parameters
-
- Returns
- The concrete type of the given entity reference.
- SURefType_Unknown if entity is not valid.
The documentation for this struct was generated from the following files: