Point
Create a point object in 1D, 2D, or 3D.
Syntax
model.component(<ctag>).geom(<tag>).create(<ftag>,"Point");
model.component(<ctag>).geom(<tag>).feature(<ftag>).set(property,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getType(property);
model.component(<ctag>).geom(<tag>).feature(<ftag>).setAttribute(attribute,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getAttribute(attribute);
Description
Use model.component(<ctag>).geom(<tag>).create(<ftag>,"Point") to create one or more points. The following property is available:
on | off
all | obj | bnd | pnt | off
pnt in 2D and 3D; bnd in 1D
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.
this | Part Instance feature
xyplane | Work plane feature
If p is a one-dimensional array, a single point with these coordinates is constructed. If p is a two-dimensional array, a point object containing several points is constructed, where the nth point has ith coordinate p[i][n].
For information about the selresult and contributeto properties, see Selections of Geometric Entities.
Additional properties are available with the Design Module, see Point.
The following attributes are available:
Table 3-132: Valid attributes
on | off
Compatibility
The following aliases work in 1D, 2D, and 3D, respectively:
model.component(<ctag>).geom(<tag>).create(<ftag>,"point1");
model.component(<ctag>).geom(<tag>).create(<ftag>,"point2");
model.component(<ctag>).geom(<tag>).create(<ftag>,"point3");
Example
The following commands generate a point at (1, 2) in a 2D geometry:
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("p1","Point");
g.feature("p1").set("p",new double[][]{{1},{2}});
g.run();
Code for Use with MATLAB
model = ModelUtil.create('Model1');
model.component.create('comp1');
g = model.component('comp1').geom.create('geom1',2);
g.create('p1','Point');
g.feature('p1').set('p',[1,2]);
g.run;