Chamfer
Create flattened corners in 2D objects. The Design Module also supports 3D chamfers.
Syntax
model.component(<ctag>).geom(<tag>).create(<ftag>,"Chamfer");
model.component(<ctag>).geom(<tag>).feature(<ftag>).selection(property);
model.component(<ctag>).geom(<tag>).feature(<ftag>).set(property,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getType(property);
Description
Use model.component(<ctag>).geom(<tag>).create(<ftag>,"Chamfer") to chamfer corners in 2D.
Use model.component(<ctag>).geom(<tag>).feature(<ftag>).selection("point") to select the corners to chamfer. The default selection is empty.
on | off
all | obj | dom | bnd | pnt | off
Show selections, if selresult is on, in physics, materials, and so on; in part instances; or in 3D from a plane geometry. obj is not available in a component’s geometry. dom, bnd, and edg are not available in all features.
For information about the selresult and contributeto properties, see Selections of Geometric Entities.
Example
Chamfer a rectangle.
Code for Use with Java
Model model = ModelUtil.create("Model1");
model.component().create("comp1");
GeomSequence g = model.component("comp1").geom().create("geom1",2);
g.create("r1","Rectangle");
g.create("cha1","Chamfer");
g.feature("cha1").selection("point").set("r1(1)",new int[]{1,2,3,4});
g.feature("cha1").set("dist",0.1);
g.run();
Code for use MATLAB
Model model = ModelUtil.create('Model1');
model.component.create('comp1');
g = model.component('comp1').geom.create('geom1',2);
g.create('r1','Rectangle');
g.create('cha1','Chamfer');
g.feature('cha1').selection('point').set('r1(1)',{1,2,3,4});
g.feature('cha1').set('dist',0.1);
g.run;
Diagnostics
If a chamfer cannot be created according to the specified properties, this vertex is ignored. When the chamfers generate intersections with other edges in the geometry, an error message is given.
See Also
Fillet