Projection
Purpose
Project 3D objects and entities to a 2D work plane.
Syntax
model.component(
<ctag>
).geom(
<tag>
).feature(
<wptag>
).geom().create(
<ftag>
,"Projection");
model.component(
<ctag>
).geom(
<tag>
).feature(
<wptag>
).geom().feature(
<ftag>
).selection("input");
model.component(
<ctag>
).geom(
<tag>
).feature(
<wptag>
).geom().feature(
<ftag>
).set(
property
,
<value>
);
model.component(
<ctag>
).geom(
<tag>
).feature(
<wptag>
).geom().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>
).feature(
<wptag>
).geom().create(
<ftag>
,"Projection")
to create a projection feature tagged
<ftag>
in the 2D sequence of the work plane feature
<wptag>
. It can compute the projection of 3D objects and entities to the work plane.
By default, you get the projection for all 3D objects that were generated by the features preceding the work plane feature. To select a subset of these objects or to select entities, set the
project
property to the appropriate entity level, and use the property
input
to select the 3D objects or entities.
The following properties are available.
Table 3-30:
Available Properties.
Property
Value
Default
Description
absrepairtool
...geom(<tag>).absRepairTol()
Absolute repair tolerance.
input
Selection
Entities to project. Used when project is not
all
.
project
all
|
obj
|
dom
|
bnd
|
edg
|
vtx
all
Project all objects or selected objects or entities
projectiontype
edgvtx
|
outline
|
all
outline
Projection type. Used when project is
all
,
dom
, or
bnd
.
repairtol
double
...geom(<tag>).repairTol()
Relative repair tolerance, relative to size of each input object.
repairtoltype
auto
|
relative
|
absolute
...geom(<tag>).repairTolType()
Repair tolerance type:
automatic
,
relative
, or
absolute
.
workplane
String
Work plane to project onto.
selresult
on
|
off
off
Create selections of all resulting objects.
selresultshow
all
|
obj
|
bnd
|
pnt
|
off
bnd
Show selections, if selresult is on, in physics, materials, and so on; or in 3D from a plane geometry. obj is not available in a component’s geometry.
contributeto
String
none
Tag of cumulative selection to contribute to.
The following attributes are available:
Table 3-31:
Valid attributes
Name
Value
Default
Description
construction
on
|
off
|
inherit
inherit
Designate the resulting objects as construction geometry. Use
inherit
to set the construction geometry attribute only if all input objects are construction geometry.
See Also
CrossSection
,
WorkPlane