Interface ICamApiModelFormerWithChamferFaces
Model former that supports adding chamfer faces from the current geometry selection (used by the Chamfering operation — "Add Face" button)
Namespace: CAMAPI.ModelFormerTypes
Assembly: CAMAPI.ModelFormerTypes.dll
Syntax
[Guid("D5700432-A3D9-46DF-8BAB-6BF09970ACF6")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ICamApiModelFormerWithChamferFaces
Methods
AddChamferFacesSelected()
Add selected faces to the model former for chamfering. Calls AddChamferFacesSelected on the underlying TJobModelFormer. Returned items (TChamferFacesItem) extend TProjectCurvesItem, so each item also exposes ICamApiCurve5DModelItem via QueryInterface — that is the edit surface for the property visible in the Chamfering JA item-properties dialog (Stock — propertyRW). Other Curve5D properties (AlternateDirection, AlternateFrontSide) are present on the interface but hidden by the UI for chamfer faces and have no effect on toolpath calculation; do not set them.
Declaration
ICamApiListModelItem AddChamferFacesSelected()
Returns
| Type | Description |
|---|---|
| ICamApiListModelItem |
RecognizeChamfers()
Automatically detect chamfer candidates (sharp edges, CAD chamfers, fillets) in the current scene geometry and populate the model former with the results. Equivalent of the "Recognize" button in the Chamfering operation UI. Produces both TChamferingItem (edges) and TChamferFacesItem (faces) with pre-filled Type/Size/Zmin/Zmax classified as: Type=0 — sharp concave edge (no chamfer/fillet yet) Type=1 — existing CAD chamfer (planar angled face) Type=2 — existing fillet (rounded face) Type=3 — hole edge (circular) Requirements and caveats:
- A TSTConicalTool must be set on the operation before calling — the tool radius is used as the upper-bound filter (chamfer sizes > radius are discarded). Without a conical tool the filter radius is 0 and nothing is detected.
- This method clears any existing chamfer items on the model former before adding the detected ones. Do not mix manual AddSharpEdgeSelected/ AddChamferFacesSelected results with RecognizeChamfers — the latter wipes them.
- Scope: if some geometry is selected in the scene, only selected models are scanned; otherwise the whole FullModel is scanned.
- The method is only meaningful for the Chamfering operation (ChamferingMillOp). QueryInterface returns the interface for any TJobModelFormer-based operation, but on non-Chamfering operations the produced items are ignored by downstream toolpath calculation. Returns the list of newly added model items.
Declaration
ICamApiListModelItem RecognizeChamfers()
Returns
| Type | Description |
|---|---|
| ICamApiListModelItem |