Create3DComponent

Creates a 3D component.

UI Access Draw > 3D Component Library > Create 3D Component.
Parameters
Name Type Description

<CreateData>

Array

Structured array containing geometry data:

(Array["NAME:CreateData",

"ComponentName:=", "<string>",

"Company:=", "<string>",

"Company URL:=", "<string>",

"Model Number:=","<string>",

"Help URL:=" , "<string>",

"Version:=", "<string>",

"Notes:=", "<string>",

"IconType:=","<string>",

"Owner:=", "<string>",

"Email:=", "<string>",

"Date:=", "<string>", #Component creation date

"HasLabel:=", <boolean>,

"IsEncrypted:=", <boolean>,

"AllowEdit:=", <boolean>,

"SecurityMessage:=" , "<string>",

"Password:=" , "<string>",

"EditPassword:=" , "<string>",

"PasswordType:=" , "<string>",

"HideContents:=" , <boolean>,

"ReplaceNames:=" , <boolean>, #for objects and materials

"ComponentOutline:=" , "<string>",#"None" or "Bounding Box"

"IncludedParts:=" , [Array of partnames],

"HiddenParts:=" , [Array of hidden parts],

"IncludedCS:=" , [Array of included CS],

"DefaultHandle:=" , "<reference CS>"

"IncludedParameters:=" , [Array of included parameters],

"IncludedDependentParameters:=", [Array of dependent parameters],

"ParameterDescription:=", <array>

"IsLicensed:=" , <boolean>

"LicensingDllName:=" , "<string>"

"VendorComponentIdentifier:=", "<string>"

"PublicKeyFile:=" , "<string>"

]

<DesignData>

Array

Structured array containing design data:

Array["NAME:DesignData",

"Boundaries:=", <array>,

"Excitations:=", <array>,

"MeshOperations:=", <array>]

<FileName> String Full file path to 3D component.

<ImageFile>

Array

Optional. Structured array containing file path of 3D component image:

Array["NAME:ImageFile",

"ImageFile:=", <string>])

Return Value None.

 

Python Syntax

Create3DComponent(<CreateData>, <DesignData>, <FileName>, <ImageFile>)

Python Example

oEditor.Create3DComponent

(["NAME:CreateData",

"ComponentName:=", "Connector",

"Company:=", "",

"Version:=", "1.0",

"Notes:=", "",

"Owner:=", "",

"Email:=", "",

"Date:=", "11:41:01 AM Aug 28, 2014",

"HasLabel:=", false,

"IncludedParts:=", ["Box1", "Cylinder1", "Cone1"],

"IncludedCS:=", ["RelativeCS1"],

"DefaultHandle:=", "Global",

"IncludedParameters:=", ["htcone", "lr", "htcyl", "zs", "radcyl", "xs", "$rp", "$con"],

"ParameterDescription:=", [],

"IsLicensed:=" , False,

"LicensingDllName:=" , "",

"VendorComponentIdentifier:=", "",

"PublicKeyFile:=" , ""

],

["NAME:DesignData",

"Boundaries:=", ["PerfE1", "FiniteCond1"],

"Excitations:=", ["1"],

"MeshOperations:=", []],

"C:/tmp/Connector.a3dcomp",

["NAME:ImageFile", "ImageFile:=", ""])

 

VB Syntax

Create3DComponent <CreateData>, <DesignData>, <FileName>, <ImageFile>

VB Example

oEditor.Create3DComponent

Array("NAME:CreateData",

"ComponentName:=", "Connector",

"Company:=", "",

"Version:=", "1.0",

"Notes:=", "",

"Owner:=", "",

"Email:=", "",

"Date:=", "11:41:01 AM Aug 28, 2014",

"HasLabel:=", false,

"IncludedParts:=", Array( "Box1", "Cylinder1", "Cone1"),

"IncludedCS:=", Array("RelativeCS1"),

"DefaultHandle:=", "Global",

"IncludedParameters:=", Array("htcone", "lr", "htcyl", "zs", "radcyl", "xs", "$rp", "$con"),

"ParameterDescription:=", Array()

"IsLicensed:=" , False,

"LicensingDllName:=" , "",

"VendorComponentIdentifier:=", "",

"PublicKeyFile:=" , ""

),

Array("NAME:DesignData",

"Boundaries:=", Array( "PerfE1", "FiniteCond1"),

"Excitations:=", Array("1"),

"MeshOperations:=", Array()),

"C:/tmp/Connector.a3dcomp",

Array("NAME:ImageFile", "ImageFile:=", "")