formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Plain Object Construction

fz_dimn_style_create

Description

Creates a dimension style with the given parameters (same as in user interface).

Plugin Prototype

fzrt_error_td fz_dimn_style_create(

fzrt_int

windex,

fz_string_td

name,

fz_string_td

font_name,

fzrt_boolean

size_as_3d,

fzrt_boolean

align_with_view,

fzrt_int

screen_size,

double

world_size,

fz_dimn_style_term_enum

term_type,

double

linear_accuracy,

double

angular_accuracy,

fz_tag_td *

style_tag )

Parameters

windex [Input]

project window index

name [Input]

name for the style, as it will appear in the user interface

font_name [Input, Optional]

font name for the style. If passed as NULL the default font is used

size_as_3d [Input]

If TRUE, the font size is specified in world units. using the world_size argument. If FALSE, the font size is specified in screensize units (Points) using the screen_size argument

align_with_view [Input]

If TRUE, the dimension text is drawn perpendicular to the view (2d on the screen). If FALSE it is drawn in 3d.

screen_size [Input]

The font size in points, if size_as_3d is FALSE

world_size [Input]

The font size in world units (inches, cm), if size_as_3d is TRUE

term_type [Input]

The dimension terminator type (arrow, slash, dot ...)

linear_accuracy [Input]

The linear dimension accuracy. If 0 is passed in, the working units accuracy is used.

angular_accuracy [Input]

The angular dimension accuracy. If 0 is passed in, the working units accuracy is used.

style_tag [Result]

The tag of the new style.

Returns

Error codes

Availability

7.0.0.0

Function Set

fz_model_fset


Defined in

fz_objt_api.h