CreateUserDefinedPart

Creates a user-defined part.

UI Access Draw > User-Defined Primitive > [Part]
Parameters
Name Type Description

<Parameters>

Array

Structured array.

["NAME:UserDefinedPrimitiveParameters",

"DllName:=" , <string>,

"Version:=" , <string>,

"NoOfParameters:=" , <integer>,

"Library:=" , <string>,

<paramVectorArray>]

<paramVectorArray>

Array

Structured array containing arrays for each pair:

["NAME:ParamVector",

<pair>, <pair>, <pair>,...

]

<pair>:

["NAME:Pair",

"Name:=" , <string>,

"Value:=" , <string>]

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

Python Syntax

CreateUserDefinedPart(<Parameters>, <paramVectorArray>, <Attributes>)

Python Example

oEditor.CreateUserDefinedPart(

["NAME:UserDefinedPrimitiveParameters",

"DllName:=" , "RMxprt/LapCoil.dll",

"Version:=" , "16.0",

"NoOfParameters:=" , 22,

"Library:=" , "syslib",

["NAME:ParamVector",

["NAME:Pair",

"Name:=" , "DiaGap",

"Value:=" , "100mm"

],

["NAME:Pair",

"Name:=" , "DiaYoke",

"Value:=" , "20mm"

],

["NAME:Pair",

"Name:=" , "Length",

"Value:=" , "100mm"

],

["NAME:Pair",

"Name:=" , "Skew",

"Value:=" , "0deg"

],

["NAME:Pair",

"Name:=" , "Slots",

"Value:=" , "18"

],

["NAME:Pair",

"Name:=" , "SlotType",

"Value:=" , "1"

],

["NAME:Pair",

"Name:=" , "Hs0",

"Value:=" , "1mm"

],

["NAME:Pair",

"Name:=" , "Hs1",

"Value:=" , "1mm"

],

["NAME:Pair",

"Name:=" , "Hs2",

"Value:=" , "10mm"

],

["NAME:Pair",

"Name:=" , "Bs0",

"Value:=" , "2.5mm"

],

["NAME:Pair",

"Name:=" , "Bs1",

"Value:=" , "8mm"

],

["NAME:Pair",

"Name:=" , "Bs2",

"Value:=" , "5mm"

],

["NAME:Pair",

"Name:=" , "Rs",

"Value:=" , "0mm"

],

["NAME:Pair",

"Name:=" , "FilletType",

"Value:=" , "0"

],

["NAME:Pair",

"Name:=" , "Layers",

"Value:=" , "2"

],

["NAME:Pair",

"Name:=" , "CoilPitch",

"Value:=" , "4"

],

["NAME:Pair",

"Name:=" , "EndExt",

"Value:=" , "5mm"

],

["NAME:Pair",

"Name:=" , "SpanExt",

"Value:=" , "25mm"

],

["NAME:Pair",

"Name:=" , "BendAngle",

"Value:=" , "0deg"

],

["NAME:Pair",

"Name:=" , "SegAngle",

"Value:=" , "10deg"

],

["NAME:Pair",

"Name:=" , "LenRegion",

"Value:=" , "200mm"

],

["NAME:Pair",

"Name:=" , "InfoCoil",

"Value:=" , "0"

]

]

],

["NAME:Attributes",

"Name:=" , "LapCoil1",

"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

])