formZ SDK | 5.0 API Reference | Project | Modeling | Attributes

fz_objt_attr_get_field_count

Description

Gets the number of fields of a plugin or user defined attribute. The attribute is identified the prototype pointer, which can be retrieved from the attributes name by calling . For a plugin attribute, the number of fields is determined by the plugin's fz_attr_cbak_get_field_count callback function. Therefore, a plugin attribute may choose not to publish all its fields (as seen in the attribute's editor dialog). For user defined attributes, the number of fields is the same as the fields shown in the Attributes Manager dialog.

Plugin Prototype

fzrt_error_td fz_objt_attr_get_field_count(

fz_attr_proto_ptr

attr_proto,

fzrt_int *

nfields )

Parameters

attr_proto [Input]

The attribute prototype pointer

nfields [Result]

The number of fields for the given attribute

Returns

error

Availability

5.0.0.0

Function Set

fz_objt_attr_fset


Defined in

fz_objt_attr_api.h