uf_sket.h (查看源代码)
概述
Open C API interface to the sketcher.
The sketch functions in this file enable you to:
. Create an empty sketch.
. Initialize (activate) and terminate (deactivate) an existing sketch.
. Add/Extract geometric objects to a sketch.
. Mirror geometries.
. Create, query and delete dimensions and geometric constraints.
. Update a sketch.
. Interrogate a sketch including its orientation, origin, solved status,...,etc.
. Query constraint's type and constraints associated with a geometry.
. Query the type and status of a sketch dimension.
. Get all the geometries, expressions, dimensions, and geometric constraints
for a sketch.
. Get all sketches associated with a face or a feature.
. Get all features associated with a sketch.
. Query/Edit current sketch preference settings.
Each sketch routine either returns a zero (no error) or an error code.
Use UF_get_fail_message to obtain the error message string. Currently,
the support for extracted sketches is limited to those that are noted
as "supports extracted sketches" below.
Public Routines
===================
-- for all sketches
UF_SKET_ask_dim_status
UF_SKET_ask_face_sketches
UF_SKET_ask_sketch_info (supports extracted sketches)
UF_SKET_ask_sketch_features
UF_SKET_add_objects
UF_SKET_ask_exps_of_sketch
UF_SKET_ask_dimensions_of_sketch
UF_SKET_ask_geoms_of_sketch (supports extracted sketches)
UF_SKET_ask_feature_sketches
UF_SKET_create_sketch
UF_SKET_delete_dimensions
UF_SKET_initialize_sketch
UF_SKET_terminate_sketch
UF_SKET_ask_reference_status
UF_SKET_set_reference_status
-- for V13.0+ sketches only
UF_SKET_add_extracted_object
UF_SKET_add_conics
UF_SKET_ask_constraint_class
UF_SKET_ask_constraint_type
UF_SKET_ask_constraints_of_geometry
UF_SKET_ask_constraints_of_sketch
UF_SKET_ask_geo_cons_of_geometry
UF_SKET_ask_geo_cons_of_sketch
UF_SKET_ask_preferences
UF_SKET_ask_sketch_status
UF_SKET_create_geometric_constraint
UF_SKET_create_dimension
UF_SKET_create_dimensional_constraint
UF_SKET_delete_constraints
UF_SKET_mirror_objects
UF_SKET_read_geometric_constraint
UF_SKET_read_dimension
UF_SKET_read_dimensional_constraint
UF_SKET_set_preferences
UF_SKET_update_sketch
-- for pre-V13.0 sketches only
UF_SKET_attach_to_face
UF_SKET_delete_legacy_constraint
UF_SKET_ask_legacy_preferences
UF_SKET_set_legacy_preferences
Release Highlights
===================
V17:
o New functions:
UF_SKET_add_conics
UF_SKET_ask_constraint_class
UF_SKET_create_dimensional_constraint
UF_SKET_read_dimensional_constraint
UF_SKET_ask_reference_status
UF_SKET_set_reference_status.
o Argument changes:
UF_SKET_ask_constraints_of_geometry
UF_SKET_ask_constraints_for_sketch
o Rename:
UF_SKET_create_constraint is renamed to UF_SKET_create_geometric_constraint.
UF_SKET_read_constraint is renamed to UF_SKET_read_geometric_constraint.
o Obsoleted:
UF_SKET_ask_info
UF_SKET_delete_dimension
uf_sket_types.h (查看源代码)
概述
Open C API s for the sketch module.