Create3DComponent
Creates a 3D component.
| UI Access | Draw > 3D Component Library > Create 3D Component. | |||||||||||||||
| Parameters |
|
|||||||||||||||
| Return Value | None. |
| Python Syntax |
Create3DComponent(<CreateData>, <DesignData>, <FileName>, <ImageFile>) |
| Python Example |
oEditor.Create3DComponent( [ "NAME:CreateData", "ComponentName:=", "Connector", "Company:=", "", "Company URL:=" , "" "Version:=", "1.0", "Notes:=", "", "Owner:=", "", "IconType:=" , "", "Email:=", "", "Date:=", "11:41:01 AM Aug 28, 2024", "HasLabel:=", false, "IsEncrypted:=" , False, "AllowEdit:=" , False, "SecurityMessage:=" , "", "Password:=" , "", "EditPassword:=" , "", "PasswordType:=" , "UnknownPassword", "HideContents:=" , True, "ReplaceNames:=" , True, "ComponentOutline:=" , "None", "IncludedParts:=", ["Box1", "Cylinder1", "Cone1"], "IncludedCS:=", ["RelativeCS1"], "DefaultHandle:=", "Global", "IncludedParameters:=", ["htcone", "lr", "htcyl", "zs", "radcyl", "xs", "$rp", "$con"], "IncludedDependentParameters:=", [], "ParameterDescription:=", [], "IsLicensed:=" , False, "LicensingDllName:=" , "", "VendorComponentIdentifier:=", "", "PublicKeyFile:=" , "" ], [ "NAME:DesignData", "Boundaries:=", ["PerfE1", "FiniteCond1"], "Excitations:=", ["1"], "MeshOperations:=", [] ], "C:/tmp/Connector.a3dcomp", [ "NAME:ImageFile", "ImageFile:=", "" ]) |
| Python Example |
Example with an External Circuit: oDesign = oProject.SetActiveDesign("Maxwell3DDesign1") oEditor = oDesign.SetActiveEditor("3D Modeler") oEditor.Create3DComponent( [ "NAME:CreateData", "ComponentName:=" , "Maxwell3DDesign1", "Company:=" , "", "Company URL:=" , "", "Model Number:=" , "", "Help URL:=" , "", "Version:=" , "1.0", "Notes:=" , "", "IconType:=" , "", "Owner:=" , "", "Email:=" , "", "Date:=" , "3:36:11 PM Feb 14, 2025", "HasLabel:=" , False, "IsEncrypted:=" , False, "AllowEdit:=" , False, "SecurityMessage:=" , "", "Password:=" , "", "EditPassword:=" , "", "PasswordType:=" , "UnknownPassword", "HideContents:=" , True, "ReplaceNames:=" , True, "ComponentOutline:=" , "None", "IncludedParts:=" , ["Box1"], "HiddenParts:=" , [], "IncludedCS:=" , [], "DefaultHandle:=" , "Global", "IncludedParameters:=" , [], "IncludedDependentParameters:=", [], "ParameterDescription:=", [], "IsLicensed:=" , False, "LicensingDllName:=" , "", "VendorComponentIdentifier:=", "", "PublicKeyFile:=" , "" ], [ "NAME:DesignData", "Excitations:=" , ["CoilTerminal1","CoilTerminal2","Winding1","External Circuit”] ], "F:/Designs/ComponentExternalCircuit/test.a3dcomp", [ "NAME:ImageFile", "ImageFile:=" , "" ]) |