CreateEquationCurve

Creates an equation-based curve.

UI Access Draw > Equation-Based Curve.
Parameters
Name Type Description

<Parameters>

Array

Structured array.

Array("NAME:EquationBasedCurveParameters",

"XtFunction:=", <string>,

"YtFunction:=", <string>,

"ZtFunction:=", <string>,

"tStart:=", <string>,

"tEnd:=", <string>,

"NumOfPointsOnCurve:=", <string>,

"Version:=", <integer>),

<polylineArray(optional)>)

<AttributesArray> Array Structured array. See: AttributesArray.
Return Value None.

Python Syntax

CreateEquationCurve(<Parameters>, <Attributes>)

Python Example

oEditor.CreateEquationCurve(

["NAME:EquationBasedCurveParameters",

"XtFunction:=" , "1",

"YtFunction:=" , "3",

"ZtFunction:=" , "32",

"tStart:=" , "1",

"tEnd:=" , "3",

"NumOfPointsOnCurve:=" , "0",

"Version:=" , 1,

["NAME:PolylineXSection",

"XSectionType:=" , "None",

"XSectionOrient:=" , "Auto",

"XSectionWidth:=" , "0",

"XSectionTopWidth:=" , "0",

"XSectionHeight:=" , "0",

"XSectionNumSegments:=" , "0",

"XSectionBendType:=" , "Corner"

]

],

["NAME:Attributes",

"Name:=" , "EquationCurve1",

"Flags:=" , "",

"Color:=" , "(143 175 143)",

"Transparency:=" , 0,

"PartCoordinateSystem:=", "Global",

"UDMId:=" , "",

"MaterialValue:=" , "\"copper\"",

"SurfaceMaterialValue:=", "\"\"",

"SolveInside:=" , False,

"ShellElement:=" , False,

"ShellElementThickness:=", "0mm",

"IsMaterialEditable:=" , True,

"UseMaterialAppearance:=", False,

"IsLightweight:=" , False

])

VB Syntax

CreateEquationCurve <Parameters>, <Attributes>

VB Example

oEditor.CreateEquationCurve Array("NAME:EquationBasedCurveParameters", "XtFunction:=", _

"1", "YtFunction:=", "3", "ZtFunction:=", "32", "tStart:=", "1", "tEnd:=", "3", "NumOfPointsOnCurve:=", _

"0", "Version:=", 1, Array("NAME:PolylineXSection", "XSectionType:=", "None", "XSectionOrient:=", _

"Auto", "XSectionWidth:=", "0", "XSectionTopWidth:=", "0", "XSectionHeight:=", _

"0", "XSectionNumSegments:=", "0", "XSectionBendType:=", "Corner")), Array("NAME:Attributes", "Name:=", _

"EquationCurve2", "Flags:=", "", "Color:=", "(143 175 143)", "Transparency:=", _

0, "PartCoordinateSystem:=", "Global", "UDMId:=", "", "MaterialValue:=", _

"" & Chr(34) & "copper" & Chr(34) & "", "SurfaceMaterialValue:=", "" & Chr(34) & "" & Chr(34) & "", "SolveInside:=", _

false, "ShellElement:=", false, "ShellElementThickness:=", "0mm", "IsMaterialEditable:=", _

true, "UseMaterialAppearance:=", false, "IsLightweight:=", false)