Synopsis
This design creates a curve resulting from projecting curve to part along a given direction.
Mixins
CurveMixin
InkStrokedMixin
BasePart
Parameters
| Name |
Type |
Description |
| part |
part |
Required. Part upon which to project curve. |
| curve |
part |
Required. Curve to project. |
| direction |
vector |
Direction along which to project curve. |
Example 1
| Name: |
ProjectedCurve_Ex01
|
| Design: |
Curves AcDrawingDocument
|
| Child Name: |
Cylinder
|
| Child Design: |
:Cylinder
|
|
Name
|
Type
|
Supplied
|
| height |
number |
3 |
| radius |
number |
4 |
| bottomPoint |
point |
origin - (unitZ * Child.height / 2) |
| color |
string |
"dandelion" |
| Child Name: |
Rectangle
|
| Child Design: |
:Rectangle
|
|
Name
|
Type
|
Supplied
|
| height |
number |
1 |
| width |
number |
4 |
| center |
point |
Cylinder.center - (unitY * 6) |
| lineWidth |
string |
"Heavy" |
| yDirection |
vector |
unitZ |
| color |
string |
"blue" |
| Child Name: |
ProjectedCurve
|
| Child Design: |
:ProjectedCurve
|
Child List? |
|
Name
|
Type
|
Supplied
|
| part |
part |
Cylinder |
| curve |
part |
nth(Child.index, Rectangle.lines) |
| direction |
vector |
unitY |
| lineWidth |
string |
"Heavy" |
| color |
string |
"red" |
| Quantity |
integer |
length(Rectangle.lines) |
Example 2
| Name: |
ProjectedCurve_Ex02
|
| Design: |
Curves AcDrawingDocument
|
| Child Name: |
Block
|
| Child Design: |
:Block
|
|
Name
|
Type
|
Supplied
|
| height |
number |
7 |
| length |
number |
3 |
| width |
number |
5 |
| color |
string |
"gray" |
| Child Name: |
Polygon
|
| Child Design: |
:Polygon
|
|
Name
|
Type
|
Supplied
|
| pointList |
list |
{Point(-2, -5, -2), Point(1, -5, -3), Point(2, -5, 2)} |
| lineWidth |
string |
"Heavy" |
| yDirection |
vector |
unitZ |
| color |
string |
"olive green" |
| Child Name: |
ProjectedCurve
|
Child List? |
| Child Design: |
:ProjectedCurve
|
|
Name
|
Type
|
Supplied
|
| curve |
part |
curve = nth(Child.index, Polygon.lines) |
| direction |
vector |
unitY |
| Part |
part |
Block |
| color |
string |
"red" |
| lineWidth |
string |
"Heavy" |
| Quantity |
integer |
length(Polygon.lines) |