Changes

Glossary of EM.Cube's Python Functions

2 bytes removed, 17:24, 10 April 2017
== EM.Cube's Python Functions for Geometric Object Creation ==
 
====array====
 
SYNTAX: array({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x_count, {{ArgTypeAny}} y_count, {{ArgTypeAny}} z_count, {{ArgTypeAny}} x_spacing, {{ArgTypeAny}} y_spacing, {{ArgTypeAny}} z_spacing)
 
EXAMPLE: ''array("Array_1","Rect_Strip_1",4,4,1,50,50,0)''
 
DESCRIPTION: Creates or modifies an array object.
 
====array_custom====
 
SYNTAX: array_custom({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x_count, {{ArgTypeAny}} y_count, {{ArgTypeAny}} z_count, {{ArgTypeAny}} x_spacing, {{ArgTypeAny}} y_spacing, {{ArgTypeAny}} z_spacing, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} rot_x, {{ArgTypeAny}} rot_y, {{ArgTypeAny}} rot_z)
 
EXAMPLE: ''array_custom("Array_1","Rect_Strip_1",4,4,1,50,50,0,100,100,20,0,0,45)''
 
DESCRIPTION: Creates or modifies an array object and sets its local coordinate system and rotation angles.
====box====
DESCRIPTION: Draws a box object in the project workspace under the currently activated material group node, or modifies the box named 'label' if it already exists.
====cylindercirc_strip====
SYNTAX: cylindercirc_strip({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radiusinner_radius, {{ArgTypeAny}} heightouter_radius[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle, {{ArgTypeAny}} cap_top, {{ArgTypeAny}} cap_bottom])
EXAMPLE: ''cylindercirc_strip("Cylinder_1cs_1",0,0,0,1050,1000)''
DESCRIPTION: Draws a cylinder circle strip object in the project workspace under the currently activated material group node, or modifies the cylinder circle strip object named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the cylindercircle strip's azimuth axis. ====circle==== SYNTAX: circle({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle) EXAMPLE: ''circle("pyramid_1",0,0,0,10,10,100)'' DESCRIPTION: Draws a circular curve object in the project workspace under the currently activated material group node, or modifies the circle named 'label' if it already exists. The parameters start_angle and end_angle are in degrees.
====cone====
DESCRIPTION: Draws a cone object in the project workspace under the currently activated material group node, or modifies the cone named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the cone's azimuth axis.
====pyramidcylinder====
SYNTAX: pyramidcylinder({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} base_xradius, {{ArgTypeAny}} base_yheight[, {{ArgTypeAny}} heightstart_angle, {{ArgTypeAny}} end_angle, {{ArgTypeAny}} cap_top, {{ArgTypeAny}} cap_bottom])
EXAMPLE: ''pyramidcylinder("Pyramid_1Cylinder_1",0,0,0,10,10,100)''
DESCRIPTION: Draws a pyramid cylinder object in the project workspace under the currently activated material group node, or modifies the pyramid cylinder named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the cylinder's azimuth axis.
====sphereellipse_strip====
SYNTAX: sphereellipse_strip({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radiusradius_x, {{ArgTypeAny}} radius_y[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle])
EXAMPLE: ''sphereellipse_strip("Sphere_1es_1",0,0,0,1050,0,180)''
DESCRIPTION: Draws a sphere ellipse strip object in the project workspace under the currently activated Material Group material group node, or modifies the sphere ellipse strip object named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the sphereellipse strip's azimuth axis.
====ellipsoid====
DESCRIPTION: Draws an ellipsoid object in the project workspace under the currently activated material group node, or modifies the ellipsoid named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the ellipsoid's azimuth axis.
====torusexport_dxf====
SYNTAX: torusexport_dxf({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius_major, {{ArgTypeAny}} radius_minor[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle]file_name)
EXAMPLE: ''torusexport_dxf("Torus_1MyDXFModel.DXF",0,0,0,50,20)''
DESCRIPTION: Draws an torus object in Exports the physical structure of the project workspace under workspacean to a DXF model file. If the currently activated material group nodefile path is not specified, or modifies the torus named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about current project folder is assumed as the torus's azimuth axispath.
====rect_stripexport_py====
SYNTAX: rect_stripexport_py({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} side_x, {{ArgTypeAny}} side_yfile_name)
EXAMPLE: ''rect_stripexport_py("my_rectangleMyPYModel.PY",0,0,0,50,20)''
DESCRIPTION: Draws a rectangle Strip object in Exports the physical structure of the project workspace under the currently activated material group node, or modifies the rectangle strip current object named 'label' if it already existsselection to a Python geometry file. The default path is the Python subfolder under "Documents → EMAG".
====circ_stripexport_stl====
SYNTAX: circ_stripexport_stl({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} inner_radius, {{ArgTypeAny}} outer_radius[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle]file_name)
EXAMPLE: ''circ_stripexport_stl("cs_1MySTLModel.STL",0,0,0,50,0)''
DESCRIPTION: Draws a circle strip object in Exports the physical structure of the project workspace under workspacean to an STL model file. If the currently activated material group nodefile path is not specified, or modifies the circle strip object named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about current project folder is assumed as the circle strip's azimuth axispath.
====radial_stripfractal_tree====
SYNTAX: radial_stripfractal_tree({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radiuskey_type, {{ArgTypeAny}} base_lengthkey_size, {{ArgTypeAny}} anglen_level, {{ArgTypeAny}} sep_angle, {{ArgTypeAny}} n_gen, {{ArgTypeAny}} prune_factor, {{ArgTypeAny}} thickness, {{ArgTypeAny}} thick_factor)
EXAMPLE: ''radial_stripfractal_tree("Radial_1Fractal_1",0,0,0,50"line",10,3,30,3,0,900,0)''
DESCRIPTION: Draws Generates a radial strip object fractal tree in the project workspace under the currently activated material group node, or modifies the radial strip object fractal tree named 'label' if it already exists.
====ellipse_striphelix====
SYNTAX: ellipse_striphelix({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius_xradius_inner, {{ArgTypeAny}} radius_y[radius_outer, {{ArgTypeAny}} start_anglenturns, {{ArgTypeAny}} end_angle]helix_dir)
EXAMPLE: ''ellipse_striphelix("es_1Helix_1",0,0,0,5015,15,10,0)''
DESCRIPTION: Draws a ellipse strip object helical curve in the project workspace under the currently activated material group node, or modifies the ellipse strip object helix named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about parameter "radius_inner" specifies the ellipse striphelix's azimuth axisradius at the beginning of the helix, and radius_outer specifies the radius at the end of the helix. If the Boolean parameter "helixl_dir" is 1, the helical curve will be drawn counter-clockwise.
====triangle_striphyperbola====
SYNTAX: triangle_striphyperbola({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} side1diam_x, {{ArgTypeAny}} side2diam_y, {{ArgTypeAny}} angleaxial_length, {{ArgTypeAny}} half_only)
EXAMPLE: ''triangle_striphyperbola("ts_1Hyperbola _1",0,0,0,50,10040,9020,0)''
DESCRIPTION: Draws a triangle strip hyperbola object in the project workspace under the currently activated material group node, or modifies the triangle strip object hyperbola named 'label' if it already exists. If the Boolean parameter "half_only" is 1, only half of the hyperbola will be drawn.
====taper_stripimport_dxf====
SYNTAX: taper_stripimport_dxf({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} base_width, {{ArgTypeAny}} top_width, {{ArgTypeAny}} length, {{ArgTypeAny}} is_expofile_name)
EXAMPLE: ''taper_stripimport_dxf("ts_1MyDXFModel.DXF",0,0,0,50,100,80,1)''
DESCRIPTION: Draws a taper strip object in Imports an external DXF model file to the project workspace under the currently activated material group node, or modifies the taper strip object named 'label' if it already exists. If the Boolean parameters "is_expo" file path is 1not specified, an exponential taper will be drawnthe current project folder is assumed as the path.
====polygon_regimport_igs====
SYNTAX: polygon_regimport_igs({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} n_sidesfile_name)
EXAMPLE: ''polygon_regimport_igs("ts_1MyIGSModel.IGS",0,0,0,50,100,80,1)''
DESCRIPTION: Draws a regular polygon object in Imports an external IGES model file to the project workspace under . If the currently activated material group nodefile path is not specified, or modifies the regular polygon object named 'label' if it already existscurrent project folder is assumed as the path.
====spiral_stripimport_py====
SYNTAX: spiral_stripimport_py({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} width, {{ArgTypeAny}} radius_inner, {{ArgTypeAny}} radius_outer, {{ArgTypeAny}} nturns, {{ArgTypeAny}} spiral_dir, {{ArgTypeAny}} is_dualfile_name)
EXAMPLE: ''spiral_stripimport_py("Spiral _1MyPYModel.PY",0,0,0,10,50,5,0,0)''
DESCRIPTION: Draws Imports a spiral strip object in Python geometry file to the project workspace under the currently activated material group node, or modifies the spiral strip named 'label' if it already exists. If the Boolean parameter "spiral_dir" The default path is 1, the spiral curve will be drawn counter-clockwise. If the Boolean parameter Python subfolder under "is_dualDocuments → EMAG" is 1, a dual-arm spiral curve will be drawn.
====polystripimport_stl====
SYNTAX: polystripimport_stl({{ArgTypeString}} label, {{ArgType| 3x1 Python tuple}} p0, {{ArgType| 3x1 Python tuple}} p1, ... {{ArgType| 3x1 Python tuple}} pnfile_name)
EXAMPLE: ''polystripimport_stl("ps_1MySTLModel.STL",(0,0,0),(1,0,0),(1,0,0))''
DESCRIPTION: Creates or modifies a Polystrip object in Imports an external STL model file to the project workspace. Each point If the file path is represented with a Python tuple type. The poly_strip function not specified, the current project folder is 'self-closing' -- there is no need to supply the first point again at the end of assumed as the point listpath.
====nurbs_stripimport_stp====
SYNTAX: nurbs_stripimport_stp({{ArgTypeString}} label, {{ArgType| 3x1 Python tuple}} p0, {{ArgType| 3x1 Python tuple}} p1, ... {{ArgType| 3x1 Python tuple}} pnfile_name)
EXAMPLE: ''nurbs_stripimport_stp("ns_1MySTPModel.STP",(0,0,0),(1,0,0),(1,0,0))''
DESCRIPTION: Creates or modifies a NURBS Strip object in Imports an external STEP model file to the project workspace. Each point If the file path is represented with a Python tuple type. The nurbs_strip function not specified, the current project folder is 'self-closing' -- there is no need to supply the first point again at the end of assumed as the point listpath.
====line====
DESCRIPTION: Draws a Line object in the project workspace under the currently activated material group node, or modifies the line named 'label' if it already exists. Without the argument "dir", a vertical line is drawn by default.
====circlenurbs_curve====
SYNTAX: circlenurbs_curve({{ArgTypeString}} label, {{ArgTypeAnyArgType| 3x1 Python tuple}} x0p0, {{ArgTypeAnyArgType| 3x1 Python tuple}} y0p1, ... {{ArgTypeAnyArgType| 3x1 Python tuple}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_anglepn)
EXAMPLE: ''circlenurbs_curve("pyramid_1nc_1",(0,0,0),10(1,100,1000),(1,0,0))''
DESCRIPTION: Draws Creates or modifies a circular curve NURBS Curve object in the project workspace under the currently activated material group node, or modifies the circle named 'label' if it already exists. Each point is represented with a Python tuple type. The parameters start_angle and end_angle are in degreescurve is closed if p0 is specified again as pn, otherwise, it is open.
====superquadnurbs_strip====
SYNTAX: nurbs_strip({{ArgTypeString}} label, {{ArgType| 3x1 Python tuple}} p0, {{ArgType| 3x1 Python tuple}} p1, ... {{ArgType| 3x1 Python tuple}} pn)
SYNTAXEXAMPLE: superquad''nurbs_strip({{ArgTypeString}} label"ns_1", {{ArgTypeAny}} x0(0, {{ArgTypeAny}} y00, {{ArgTypeAny}} z00), {{ArgTypeAny}} diam_x(1, {{ArgTypeAny}} diam_y0, {{ArgTypeAny}} order0),(1,0,0))''
EXAMPLE: ''superquad("SuperQuad_1",0,0,0,50,20,4)'' DESCRIPTION: Draws Creates or modifies a super-quadratic curve NURBS Strip object in the project workspace under the currently activated material group node, or modifies the super. Each point is represented with a Python tuple type. The nurbs_strip function is 'self-quadratic curve named closing'label' if it already exists. If order = 2, the curve reduces -- there is no need to an ellipse. Higher order makes supply the round edges sharper. An infinite order reduces first point again at the curve to a rectangleend of the point list.
====parabola====
DESCRIPTION: Draws a parabola object in the project workspace under the currently activated material group node, or modifies the parabola named 'label' if it already exists. If the Boolean parameter "half_only" is 1, only half of the parabola will be drawn.
====hyperbolaparam_curve====
SYNTAX: hyperbolaparam_curve({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} diam_xmodel, {{ArgTypeAny}} diam_yorientation, {{ArgTypeAny}} axial_lengthstart, {{ArgTypeAny}} half_onlystop, {{ArgTypeAny}} step, {{ArgTypeAny}} function[, {{ArgTypeAny}} y(t), {{ArgTypeAny}} z(t)])
EXAMPLE: ''hyperbolaparam_curve("Hyperbola _1Curve_1",0,0,0,50"parametric",40"xy",200,10,0.1,"cos(t)","sin(t)","t")''
DESCRIPTION: Draws Generates a hyperbola object parametric curve in the project workspace under the currently activated material group node, or modifies the hyperbola parametric curve named 'label' if it already exists. If the Boolean parameter "half_only" is 1, only half of the hyperbola will be drawn.
====spiral_curveparam_surface====
SYNTAX: param_surface({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} orientation, {{ArgTypeAny}} start1, {{ArgTypeAny}} stop1, {{ArgTypeAny}} step1, , {{ArgTypeAny}} start2, {{ArgTypeAny}} stop2, {{ArgTypeAny}} step2, {{ArgTypeAny}} function)
SYNTAXEXAMPLE: spiral_curve''param_surface({{ArgTypeString}} label"Surf_1", {{ArgTypeAny}} x00, {{ArgTypeAny}} y00, {{ArgTypeAny}} z00, {{ArgTypeAny}} radius_inner"xy", {{ArgTypeAny}} radius_outer0, {{ArgTypeAny}} nturns10, {{ArgTypeAny}} spiral_dir0.1, {{ArgTypeAny}} is_dual0,10,0.1,"sin(x)*sin(y)")''
EXAMPLEDESCRIPTION: ''spiral_curve("Spiral _1",0,0,0,10,50,5,0Generates a parametric surface in the project workspace under the currently activated material group node,0)or modifies the parametric surface named 'label'if it already exists.
DESCRIPTION: Draws a spiral curve object in the project workspace under the currently activated material group node, or modifies the spiral curve named 'label' if it already exists. If the Boolean parameter "spiral_dir" is 1, the spiral curve will be drawn counter-clockwise. If the Boolean parameter "is_dual" is 1, a dual-arm spiral curve will be drawn. ====point====
====helix====SYNTAX: point({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0)
SYNTAXEXAMPLE: helix''point({{ArgTypeString}} label"Point_1", {{ArgTypeAny}} x00, {{ArgTypeAny}} y00, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius_inner, {{ArgTypeAny}} radius_outer, {{ArgTypeAny}} nturns, {{ArgTypeAny}} helix_dir10)''
EXAMPLEDESCRIPTION: ''helix("Helix_1",0,0,0,15,15,10Draws a point in the project workspace under the currently activated material group node,0)or modifies the point named 'label'if it already exists.
====polygon_reg==== SYNTAX: polygon_reg({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius, {{ArgTypeAny}} n_sides) EXAMPLE: ''polygon_reg("ts_1",0,0,0,50,100,80,1)'' DESCRIPTION: Draws a helical curve regular polygon object in the project workspace under the currently activated material group node, or modifies the helix regular polygon object named 'label' if it already exists. The parameter "radius_inner" specifies the helix's radius at the beginning of the helix, and radius_outer specifies the radius at the end of the helix. If the Boolean parameter "helixl_dir" is 1, the helical curve will be drawn counter-clockwise.
====polyline====
DESCRIPTION: Creates or modifies a PolyLine object in the project workspace. Each point is represented with a Python tuple type. The poly_line is closed if p0 is specified again as pn, otherwise, it is open.
====nurbs_curvepolystrip====
SYNTAX: nurbs_curvepolystrip({{ArgTypeString}} label, {{ArgType| 3x1 Python tuple}} p0, {{ArgType| 3x1 Python tuple}} p1, ... {{ArgType| 3x1 Python tuple}} pn)
EXAMPLE: ''nurbs_curvepolystrip("nc_1ps_1",(0,0,0),(1,0,0),(1,0,0))''
DESCRIPTION: Creates or modifies a NURBS Curve Polystrip object in the project workspace. Each point is represented with a Python tuple type. The curve poly_strip function is closed if p0 'self-closing' -- there is specified no need to supply the first point again as pn, otherwise, it is openat the end of the point list.
====pointpyramid====
SYNTAX: pointpyramid({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} base_x, {{ArgTypeAny}} base_y, {{ArgTypeAny}} height)
EXAMPLE: ''pointpyramid("Point_1Pyramid_1",0,0,0,10,10,100)''
DESCRIPTION: Draws a point pyramid object in the project workspace under the currently activated material group node, or modifies the point pyramid named 'label' if it already exists.
====fractal_treeradial_strip====
SYNTAX: fractal_treeradial_strip({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} key_typeradius, {{ArgTypeAny}} key_sizebase_length, {{ArgTypeAny}} n_level, {{ArgTypeAny}} sep_angle, {{ArgTypeAny}} n_gen, {{ArgTypeAny}} prune_factor, {{ArgTypeAny}} thickness, {{ArgTypeAny}} thick_factorangle)
EXAMPLE: ''fractal_treeradial_strip("Fractal_1Radial_1",0,0,0,"line",10,3,30,350,0,0,090)''
DESCRIPTION: Generates Draws a fractal tree radial strip object in the project workspace under the currently activated material group node, or modifies the fractal tree radial strip object named 'label' if it already exists.
====param_curverect_strip====
SYNTAX: param_curverect_strip({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} modelside_x, {{ArgTypeAny}} orientation, {{ArgTypeAny}} start, {{ArgTypeAny}} stop, {{ArgTypeAny}} step, {{ArgTypeAny}} function[, {{ArgTypeAny}} y(t), {{ArgTypeAny}} z(t)]side_y)
EXAMPLE: ''param_curverect_strip("Curve_1my_rectangle",0,0,0,"parametric"50,"xy",0,10,0.1,"cos(t)","sin(t)","t"20)''
DESCRIPTION: Generates Draws a parametric curve rectangle Strip object in the project workspace under the currently activated material group node, or modifies the parametric curve rectangle strip object named 'label' if it already exists.
====param_surfacesphere====
SYNTAX: param_surfacesphere({{ArgTypeString}} label, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} orientationradius[, {{ArgTypeAny}} start1start_angle, {{ArgTypeAny}} stop1, {{ArgTypeAny}} step1, , {{ArgTypeAny}} start2, {{ArgTypeAny}} stop2, {{ArgTypeAny}} step2, {{ArgTypeAny}} functionend_angle])
EXAMPLE: ''param_surfacesphere("Surf_1Sphere_1",0,0,0,"xy",0,10,0.1,0,10,0.1,"sin(x)*sin(y)"180)''
DESCRIPTION: Generates Draws a parametric surface sphere object in the project workspace under the currently activated material group Material Group node, or modifies the parametric surface sphere named 'label' if it already exists. The arguments start_angle and end_angle are in degrees and specify a sweep about the sphere's azimuth axis.
====import_stlspiral_curve====
SYNTAX: import_stlspiral_curve({{ArgTypeString}} file_namelabel, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius_inner, {{ArgTypeAny}} radius_outer, {{ArgTypeAny}} nturns, {{ArgTypeAny}} spiral_dir, {{ArgTypeAny}} is_dual)
EXAMPLE: ''import_stlspiral_curve("MySTLModel.STLSpiral _1",0,0,0,10,50,5,0,0)''
DESCRIPTION: Imports an external STL model file to Draws a spiral curve object in the project workspaceunder the currently activated material group node, or modifies the spiral curve named 'label' if it already exists. If the file path Boolean parameter "spiral_dir" is not specified1, the current project folder is assumed as spiral curve will be drawn counter-clockwise. If the pathBoolean parameter "is_dual" is 1, a dual-arm spiral curve will be drawn.
====import_dxfspiral_strip====
SYNTAX: import_dxfspiral_strip({{ArgTypeString}} file_namelabel, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} width, {{ArgTypeAny}} radius_inner, {{ArgTypeAny}} radius_outer, {{ArgTypeAny}} nturns, {{ArgTypeAny}} spiral_dir, {{ArgTypeAny}} is_dual)
EXAMPLE: ''import_dxfspiral_strip("MyDXFModel.DXFSpiral _1",0,0,0,10,50,5,0,0)''
DESCRIPTION: Imports an external DXF model file to Draws a spiral strip object in the project workspaceunder the currently activated material group node, or modifies the spiral strip named 'label' if it already exists. If the file path Boolean parameter "spiral_dir" is not specified1, the current project folder is assumed as spiral curve will be drawn counter-clockwise. If the pathBoolean parameter "is_dual" is 1, a dual-arm spiral curve will be drawn.
====import_stpsuperquad====
SYNTAX: import_stpsuperquad({{ArgTypeString}} file_namelabel, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} diam_x, {{ArgTypeAny}} diam_y, {{ArgTypeAny}} order)
EXAMPLE: ''import_stpsuperquad("MySTPModel.STPSuperQuad_1",0,0,0,50,20,4)''
DESCRIPTION: Imports an external STEP model file to Draws a super-quadratic curve object in the project workspaceunder the currently activated material group node, or modifies the super-quadratic curve named 'label' if it already exists. If the file path is not specifiedorder = 2, the current project folder is assumed as curve reduces to an ellipse. Higher order makes the pathround edges sharper. An infinite order reduces the curve to a rectangle.
====import_igstaper_strip====
SYNTAX: import_igstaper_strip({{ArgTypeString}} file_namelabel, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} base_width, {{ArgTypeAny}} top_width, {{ArgTypeAny}} length, {{ArgTypeAny}} is_expo)
EXAMPLE: ''import_igstaper_strip("MyIGSModel.IGSts_1",0,0,0,50,100,80,1)''
DESCRIPTION: Imports an external IGES model file to Draws a taper strip object in the project workspaceunder the currently activated material group node, or modifies the taper strip object named 'label' if it already exists. If the file path Boolean parameters "is_expo" is not specified1, the current project folder is assumed as the pathan exponential taper will be drawn.
====import_pytorus====
SYNTAX: import_pytorus({{ArgTypeString}} file_namelabel, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} radius_major, {{ArgTypeAny}} radius_minor[, {{ArgTypeAny}} start_angle, {{ArgTypeAny}} end_angle])
EXAMPLE: ''import_pytorus("MyPYModel.PYTorus_1",0,0,0,50,20)''
DESCRIPTION: Imports a Python geometry file to Draws an torus object in the project workspaceunder the currently activated material group node, or modifies the torus named 'label' if it already exists. The default path is arguments start_angle and end_angle are in degrees and specify a sweep about the Python subfolder under "Documents → EMAG"torus's azimuth axis.
====export_stltriangle_strip====
SYNTAX: export_stltriangle_strip({{ArgTypeString}} file_namelabel, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} side1, {{ArgTypeAny}} side2, {{ArgTypeAny}} angle)
EXAMPLE: ''export_stltriangle_strip("MySTLModel.STLts_1",0,0,0,50,100,90)''
DESCRIPTION: Exports the physical structure of Draws a triangle strip object in the project workspacean to an STL model file. If workspace under the file path is not specifiedcurrently activated material group node, or modifies the current project folder is assumed as the path. ====export_dxf==== SYNTAX: export_dxf({{ArgTypeString}} file_name) EXAMPLE: triangle strip object named 'label'export_dxf("MyDXFModel.DXF")'' DESCRIPTION: Exports the physical structure of the project workspacean to a DXF model file. If the file path is not specified, the current project folder is assumed as the path. ====export_py==== SYNTAX: export_py({{ArgTypeString}} file_name) EXAMPLE: ''export_py("MyPYModel.PY")'' DESCRIPTION: Exports the physical structure of the project workspace or the current object selection to a Python geometry file. The default path is the Python subfolder under "Documents → EMAG"if it already exists.
== EM.Cube's Python Functions for Geometric Object Transformation ==
DESCRIPTION: Groups a number of objects into a composite object with the given label.
 
====array====
 
SYNTAX: array({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x_count, {{ArgTypeAny}} y_count, {{ArgTypeAny}} z_count, {{ArgTypeAny}} x_spacing, {{ArgTypeAny}} y_spacing, {{ArgTypeAny}} z_spacing)
 
EXAMPLE: ''array("Array_1","Rect_Strip_1",4,4,1,50,50,0)''
 
DESCRIPTION: Creates or modifies an array object.
 
====array_custom====
 
SYNTAX: array_custom({{ArgTypeString}} label, {{ArgTypeString}} object, {{ArgTypeAny}} x_count, {{ArgTypeAny}} y_count, {{ArgTypeAny}} z_count, {{ArgTypeAny}} x_spacing, {{ArgTypeAny}} y_spacing, {{ArgTypeAny}} z_spacing, {{ArgTypeAny}} x0, {{ArgTypeAny}} y0, {{ArgTypeAny}} z0, {{ArgTypeAny}} rot_x, {{ArgTypeAny}} rot_y, {{ArgTypeAny}} rot_z)
 
EXAMPLE: ''array_custom("Array_1","Rect_Strip_1",4,4,1,50,50,0,100,100,20,0,0,45)''
 
DESCRIPTION: Creates or modifies an array object and sets its local coordinate system and rotation angles.
====explode====
28,333
edits