Curve Collection
Methods Introduced:
The method
wfcCollection.Collection.GetCrvCollection returns the collection of curves for the element
PRO_E_STD_CURVE_COLLECTION_APPL for the specified model. Use the method
wfcCollection.Collection.SetCrvCollection to set the collection of curves for the element
PRO_E_STD_CURVE_COLLECTION_APPL.
The method
wfcCollection.wfcCollection.CurveCollection_Create creates a data object that contains information about the curve collection instructions.
The method
wfcCollection.wfcCollection.CurveCollectionInstruction_Create creates a data object that contains information about the parameters set in the curve collection instructions.
Use the methods
wfcCollection.CurveCollectionInstruction.GetType and
wfcCollection.CurveCollectionInstruction.SetType to get and set the curve collection instruction type using the enumerated type
wfcCollection.CurveCollectionInstrType.
Curve collection instructions can be of the following types:
• CURVCOLL_EMPTY_INSTR—to be used when you do not want to pass any other instruction.
• CURVCOLL_ADD_ONE_INSTR—for creating "One by One" chain.
• CURVCOLL_TAN_INSTR—for creating "Tangent" chain.
• CURVCOLL_CURVE_INSTR—for creating "Curve" chain.
• CURVCOLL_SURF_INSTR—for creating "Surface Loop" chain.
• CURVCOLL_BNDRY_INSTR—for creating "Boundary Loop" chain.
• CURVCOLL_LOG_OBJ_INSTR—for creating "Logical Object" chain.
• CURVCOLL_PART_INSTR—for creating chain on all possible references, or to choose from convex or concave only.
• CURVCOLL_FEATURE_INSTR—for creating chain from feature curves.
• CURVCOLL_FROM_TO_INSTR—for creating "From-To" chain.
• CURVCOLL_EXCLUDE_ONE_INSTR—for excluding the entity from the chain.
• CURVCOLL_TRIM_INSTR—to trim chain.
• CURVCOLL_EXTEND_INSTR—to extend chain.
• CURVCOLL_START_PNT_INSTR—to set the chain start point.
• CURVCOLL_ADD_TANGENT_INSTR—to add all edges tangent to the ends of the chain.
• CURVCOLL_ADD_POINT_INSTR—to add selected point or points to the collection.
• CURVCOLL_OPEN_CLOSE_LOOP_INSTR—to add a closed chain that is considered as open.
• CURVCOLL_QUERY_INSTR—for creating “Query” chain.
• CURVCOLL_CNTR_INSTR—to add contours to the collection.
• CURVCOLL_RESERVED_INSTR—to determine the number of instructions defined in the curve instruction.
The methods
wfcCollection.CurveCollectionInstruction.GetValue and
wfcCollection.CurveCollectionInstruction.SetValue get and set the value of a curve collection instruction. These methods are used only for instructions of type
CURVCOLL_TRIM_INSTR and
CURVCOLL_EXTEND_INSTR.
The method
wfcCollection.wfcCollection.CrvCollectionInstrAttribute_Create creates a data object that contains information about the special attribute in curve collection instruction.
Use the method
wfcCollection.CrvCollectionInstrAttribute.GetAttribute to check whether a special attribute is set for the curve collection instruction using the enumerated type
wfcCollection.CurveCollectionInstrAttribute.
The curve collection instruction attributes can be of the following types:
• CURVCOLL_NO_ATTR—applicable when there are no attributes present.
• CURVCOLL_ALL—applicable for all edges.
• CURVCOLL_CONVEX—applicable for convex edges only.
• CURVCOLL_CONCAVE—applicable for concave edges only.
Use the method
wfcCollection.CrvCollectionInstrAttribute.SetAttribute to set a special attribute in the curve collection instruction.
Use the method
wfcCollection.CollectCurvesFilter.FilterSelections to check if the current curve selection satisfies the filter criteria. The curve selection is accepted only if the method returns True.