Ovis_Entity_Objhandle_Get()
Abstract
Retrieves the object handle of the site associated with an entity.
Syntax
Ovis_Entity_Objhandle_Get (ent_ptr)
| Argument | Type | Description |
|---|---|---|
ent_ptr |
OvisT_Entity * |
Entity |
Return Type
EtsT_Obj_Handle
ETS object handle.
Header
ovis_entity.h
Details
This function retrieves the object handle for the Ovis entity. It can only be used in the context of an ETS function call.
Example
OvisT_Entity * entity;
EtsT_Obj_Handle handle;
/* … entity created at some point */
handle = Ovis_Entity_Objhandle_Get (entity);
Errors
- Entity is NIL.
Reference
- Use the function
Ovis_Entity_Objid_Get()to perform the same action in the context of a simulation.