Script Library Index

Script Library Index

  • Assembly Constraints Demonstrates how to add constraints to an assembly. Requires WizoScript 4.00 or later. # create a new empty assembly Asm = Assembly("Test"); # add ...
  • Calculating Length of Curves Compatible with WizoScript versions: 1.50 Calculates the length of y = 2x^2 over the range x = 5mm to x = ...
  • Calculating Length of Polylines Compatible with WizoScript versions: 1.42 This example adds up the total lengths of all lines in a sketch in a part ...
  • Check for WizoScript Version If a script relies on specific features then it should check that the version of WizoScript running is at least ...
  • Cooke Triplet Lens System Compatible with WizoScript versions: 1.70 Generates a Cooke Triplet lens system that matches the description in US patent 2,503,751 A. Can ...
  • Copy Sketch Compatible with WizoScript 1.22 and later. Copies a sketch from the X-Y plane to the Y-Z plane. MyPart = Part('MyPart') Sketch1 = MyPart.AddSketch('Sketch1', ...
  • Creating a 3D Sketch Using a Spline and an Arc Compatible with WizoScript versions: 1.90 Shows how to create a 3D sketch that is comprised of a spline made of three ...
  • Creating a Cylinder Between Two Points Compatible with WizoScript versions: 1.85 Shows how to create a plane with a specific normal and project 3D points to 2D ...
  • Creating and Manipulating Assemblies Shows how to create an assembly and add parts to it. Requires WizoScript 4.00 or later. # create a new empty assembly Asm ...
  • CSV Import with Point Rotation Compatible with WizoScript versions: 1.40 The following script shows how to import a set of 2D points from a CSV file, ...
  • Custom Values and Settings Window Compatible with WizoScript versions: 2.50 Shows how to create a custom dialog window that prompts the user to enter values and ...
  • Cylinder Between Two Points II Compatible with WizoScript 3.00 and later. Inserts a cylinder between two points. from math import sqrt Win = Windows() Options = Options.append(['Start Point', WindowsInputTypes.Point, ...
  • Cylinder to a Specific Point Compatible with WizoScript versions: 1.50 Creates a cylinder that stretches from the origin to a user-defined point. It does this by ...
  • Default Reference Geometry Shows a better way to access reference geometry. Accessing by the geometry names is not recommended because this can change ...
  • Equation Sketcher Compatible with WizoScript 3.00 and later. Enter a formula and a Bspline is added to your chosen sketch with the mathematical ...
  • Everyone Loves a Slinky Compatible with WizoScript versions: 2.51 Demonstrates how to create a spiral spring. Uses a custom dialog window to get input parameters. # ...
  • Find Parts and Assemblies in a Folder Compatible with WizoScript versions: 2.01 Gets a list of all parts and assemblies inside a folder and all sub-folders. # get a ...
  • Gear Example Requires Wizoscript 1.22 and later. Generates a set of four involute gears designed to mesh together. Units.Current = UnitTypes.Millimeters PressureAngle = 20 Thickness = ...
  • Geodesic Dome Reference Geometry Compatible with WizoScript versions: 1.42 Tessellates a sphere into triangles and generates a reference point at each vertex. Demonstrates how complex ...
  • Getting User Input Compatible with WizoScript versions: 1.42 Shows how to request information from the user and then use that data to construct a ...
  • Global Parameters Compatible with WizoScript versions: 2.00 Demonstrates creating and modifying global parameters # create a new global parameters set Params = GlobalParameters('Test') # add a ...
  • Hex Head Bolt Compatible with WizoScript version 1.22 and later. Creates a simple bolt with a cap head featuring a hexagonal recess. MyPart = Part('My ...
  • Import Files Compatible with WizoScript versions: 2.50 Shows how to import various file types into Geomagic Design. # import a step file MyPart1 = Part(r'P:\temp\Corner.stp', ...
  • Importer for IGES Point Files Compatible with WizoScript versions: 1.40 This script takes an IGES file containing a set of points, imports them into a 3D ...
  • Importer for IGES Point Files with Splitter Compatible with WizoScript versions: 1.40 This script takes an IGES file containing a set of points, identifies where to split the ...
  • Interactive Mobius Strip Generator Compatible with WizoScript versions: 1.70 Shows how to prompt the user for information and then use that information to manipulate a ...
  • ISO 4762 Bolts Compatible with WizoScript versions: 1.22 Generates ISO 4762 bolts using a table to determine bolt dimensions. Adds fillets for accuracy. # Creates ...
  • List All Parts in an Assembly and Subassemblies Compatible with WizoScript versions: 2.01 Lists all the parts in an assembly and all of it’s sub-assemblies. # list all the parts ...
  • Lofting with Guide Curve Compatible with WizoScript versions: 1.70 An example of creating a loft with a guide curve. This can easily be extended to ...
  • MidPlane Extrusion Compatible with WizoScript 3.00 and later. Shows how to extrude from the mid-plane. # create the part and then a sketch containing ...
  • Modify an Existing Part Compatible with WizoScript versions: 1.40 Demonstrates how to use scripting to modify an existing part. # demonstrates opening an existing part and ...
  • Moving Parts in an Assembly (Animation) Shows how parts can be moved (translated) and rotated in an assembly. Requires WizoScript 4.00 or later. # open an existing assembly Asm ...
  • Parabolic Curve Compatible with WizoScript versions: 1.42 Creates a parabolic curve from 0cm, 0cm to 15cm, 60cm. # Draws a parabolic curve in a ...
  • Parameterized Mobius Strip Compatible with WizoScript versions: 1.70 Demonstrates generation of a mobius strip based on a set of parameters. Uses 2D sketch copying ...
  • Parameters to CSV File Compatible with WizoScript 3.00 and later. Shows how to export parameters from a part to a CSV file. import csv # open part PartA ...
  • Parameters with Units Compatible with WizoScript versions: 1.99 Demonstrates how to add and read parameters in the current script units, with specific units and ...
  • Polygon Incircle Compatible with WizoScript versions: 2.51 Polygons in Geomagic Design can be defined by an “exterior” or “interior” circle. The interior circle ...
  • Profile and Sweep Path Compatible with WizoScript versions: 1.40 This script creates a smooth path for a pipe using a 3D sketch and then a ...
  • Prompt User to Open or Save a File Compatible with WizoScript versions: 1.99 Shows how to ask the user to choose a file to be opened by the script, ...
  • Reading From a Spreadsheet Compatible with WizoScript versions: 1.76 Shows how to read a cell in a .xls or .xlsx spreadsheet. from openpyxl import load_workbook # ...
  • Rectangular Hollow Formed Profiles Compatible with WizoScript versions: 2.01 Rectangular hollow hot and cold formed profiles according to BS/EN-10210-2:1997 and BS/EN-10219:1997 kindly provided by Niels ...
  • Reference Geometry Compatible with WizoScript versions: 1.40 A short example showing how to create reference planes, axes and points. # demonstrates creating reference geometry ...
  • Scaling a Sketch Compatible with WizoScript versions: 1.70 Creates a copy of a sketch and scales it to 50% in size Units.Current = UnitTypes.Inches TestRoom ...
  • Servo Cam Compatible with WizoScript versions: 1.22 Creates a cam that fits onto a miniture servo, used for actuating a gripper. majorwidth = ...
  • Slice a Part Compatible with WizoScript versions: 1.95 Slices a part at a plane called “Slice” # open part P = Part(r'P:\temp\GDForum', 'Test') # get bounding ...
  • Speaker Grille from Bitmap Image Compatible with WizoScript 3.00 and later. This script takes an image and looks for the black pixels. It then creates a ...
  • Square Hollow Formed Profiles Compatible with WizoScript versions: 2.01 Square hollow hot and cold formed profiles according to BS/EN-10210-2:1997 and BS/EN-10219:1997 kindly provided by Niels ...
  • Supressing, Unsupressing and Removing Features Compatible with WizoScript versions: 1.80 Shows how to control suppressing, unsuppressing and removing features and sketches. Can be used in combination ...
  • Tool Cutting Requires Wizoscript 2.66 or later. Simulates a cylinder being cut into by another cylinder (e.g. an endmill). The “cutting tool” follows ...
  • Triangle Compatible with WizoScript versions: 2.51 Simple sketch of a triangle with angles 90, 15, 75 degrees. # Create triangle with angles 90, ...
  • TYPE 11 Flanges According to BS/EN-1092 PN16 Compatible with WizoScript versions: 2.01 Here is a script to create TYPE 11 DN flanges according to EN-1092 kindly provided by ...
  • Units Compatible with WizoScript versions: 1.40 Wizoscript supports different units and they can even be mixed in the same script. This example ...
  • Useful Dialogs Compatible with WizoScript versions: 2.65 Demonstrates how to show information, error and question dialogs. Win = Windows() Win.InfoDialog('I am about to create ...
  • Utility Dialogs Utility dialogs are used to create custom utilities. The dialog window stays open as long as the user wants. The ...
  • Wave Washer Compatible with WizoScript versions: 2.60 Generates wave washers. Uses a custom dialog window. Requires Geomagic Design V18 (2015.1.0) or later. import math from ...
  • Working with Configurations Compatible with WizoScript versions: 1.85 Demonstrates how to create and manipulate configurations on a part. # create a new part P = Part('Test') ...