engiGetEntityAttributePosition

Get a position in a step file record where the value of the attribute is stored for simple instance or for component of complex instance. In case of complex entities 'entity' is a component of the complex entity. The position is 0-based. Returns -1 if the attribute has no slot to store value (inverse, pure derived or irrelevant attribute) or when 'entity' is a complex entity.

Syntax

//
//   Strong typing definition
//
int_t                       engiGetEntityAttributePosition(
                                    SdaiEntity              entity,
                                    SdaiAttr                attribute,
                                    bool                    forSimpleInstance
                                );


//
//   Weak typing definition
//
int_t   __declspec(dllexport) __stdcall   engiGetEntityAttributePosition(
                                                                                    int_t                   entity,
                                                                                    void                    * attribute,
                                                                                    bool                    forSimpleInstance
                                                                                );
    

Property entity

Size: 64 bit / 8 byte (value)
...

Property attribute

Size: 64 bit / 8 byte (reference)
...

Property forSimpleInstance

Size: 8 bit / 1 byte (value)
???.