onshape-cadscript
Preparing search index...
sketch
Variable sketch
Const
sketch
:
{
arc
(
id
:
string
,
center
:
Point2
,
radius
:
Length
,
startAngle
:
Angle
,
endAngle
:
Angle
,
options
?:
{
construction
?:
boolean
}
,
)
:
SketchEntity
;
bezier
(
id
:
string
,
points
:
readonly
Point2
[]
,
options
?:
{
closed
?:
boolean
;
construction
?:
boolean
}
,
)
:
SketchEntity
;
circle
(
id
:
string
,
center
:
Point2
,
radius
:
Length
,
options
?:
{
construction
?:
boolean
}
,
)
:
SketchEntity
;
line
(
id
:
string
,
from
:
Point2
,
to
:
Point2
,
options
?:
{
construction
?:
boolean
}
,
)
:
SketchEntity
;
point
(
id
:
string
,
point
:
Point2
,
options
?:
{
construction
?:
boolean
}
,
)
:
SketchEntity
;
rectangle
(
id
:
string
,
corner1
:
Point2
,
corner2
:
Point2
,
options
?:
{
construction
?:
boolean
}
,
)
:
SketchEntity
;
roundedRectangle
(
id
:
string
,
corner1
:
Point2
,
corner2
:
Point2
,
radius
:
Length
,
)
:
SketchEntity
;
svg
(
id
:
string
,
source
:
string
,
options
?:
{
scale
?:
number
;
translate
?:
Point2
}
,
)
:
SketchEntity
;
text
(
id
:
string
,
text
:
string
,
baselineStart
:
Point2
,
ascent
:
Length
,
options
?:
{
baselineDirection
?:
Point2
;
fontName
?:
string
}
,
)
:
SketchEntity
;
}
= ...
Type Declaration
arc
:
function
arc
(
id
:
string
,
center
:
Point2
,
radius
:
Length
,
startAngle
:
Angle
,
endAngle
:
Angle
,
options
?:
{
construction
?:
boolean
}
,
)
:
SketchEntity
Parameters
id
:
string
center
:
Point2
radius
:
Length
startAngle
:
Angle
endAngle
:
Angle
options
:
{
construction
?:
boolean
}
= {}
Returns
SketchEntity
bezier
:
function
bezier
(
id
:
string
,
points
:
readonly
Point2
[]
,
options
?:
{
closed
?:
boolean
;
construction
?:
boolean
}
,
)
:
SketchEntity
Parameters
id
:
string
points
:
readonly
Point2
[]
options
:
{
closed
?:
boolean
;
construction
?:
boolean
}
= {}
Returns
SketchEntity
circle
:
function
circle
(
id
:
string
,
center
:
Point2
,
radius
:
Length
,
options
?:
{
construction
?:
boolean
}
,
)
:
SketchEntity
Parameters
id
:
string
center
:
Point2
radius
:
Length
options
:
{
construction
?:
boolean
}
= {}
Returns
SketchEntity
line
:
function
line
(
id
:
string
,
from
:
Point2
,
to
:
Point2
,
options
?:
{
construction
?:
boolean
}
,
)
:
SketchEntity
Parameters
id
:
string
from
:
Point2
to
:
Point2
options
:
{
construction
?:
boolean
}
= {}
Returns
SketchEntity
point
:
function
point
(
id
:
string
,
point
:
Point2
,
options
?:
{
construction
?:
boolean
}
,
)
:
SketchEntity
Parameters
id
:
string
point
:
Point2
options
:
{
construction
?:
boolean
}
= {}
Returns
SketchEntity
rectangle
:
function
rectangle
(
id
:
string
,
corner1
:
Point2
,
corner2
:
Point2
,
options
?:
{
construction
?:
boolean
}
,
)
:
SketchEntity
Parameters
id
:
string
corner1
:
Point2
corner2
:
Point2
options
:
{
construction
?:
boolean
}
= {}
Returns
SketchEntity
roundedRectangle
:
function
roundedRectangle
(
id
:
string
,
corner1
:
Point2
,
corner2
:
Point2
,
radius
:
Length
,
)
:
SketchEntity
Parameters
id
:
string
corner1
:
Point2
corner2
:
Point2
radius
:
Length
Returns
SketchEntity
svg
:
function
svg
(
id
:
string
,
source
:
string
,
options
?:
{
scale
?:
number
;
translate
?:
Point2
}
,
)
:
SketchEntity
Parameters
id
:
string
source
:
string
options
:
{
scale
?:
number
;
translate
?:
Point2
}
= {}
Returns
SketchEntity
text
:
function
text
(
id
:
string
,
text
:
string
,
baselineStart
:
Point2
,
ascent
:
Length
,
options
?:
{
baselineDirection
?:
Point2
;
fontName
?:
string
}
,
)
:
SketchEntity
Parameters
id
:
string
text
:
string
baselineStart
:
Point2
ascent
:
Length
options
:
{
baselineDirection
?:
Point2
;
fontName
?:
string
}
= {}
Returns
SketchEntity
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
onshape-cadscript
Loading...