The following is an example of a script for performing an assembly circular pattern copy in the Geometry Editor.
app = designer.GetApplication() # Import CAD files app.Load(r"D:/test.sat") # Save the project file with a new name app.SaveAs(r"D:/test.jproj") # Switch to Geometry Editor app.GetModel(0).ChangeCadLinkToGeometryEditor() # Get the object from the Geometry Editor geomApp = app.CreateGeometryEditor() # Create a circular pattern copy object objassemblypattern = geomApp.GetDocument().GetAssembly().CreateAssemblyCircularPattern() # Set the rotation axis type objassemblypattern.SetProperty(u"AxisType", 4) # Set the angle objassemblypattern.SetProperty(u"Angle", 90) # Set the instance objassemblypattern.SetProperty(u"Instance", 4) # Merge the target objassemblypattern.SetProperty(u"Merge", 1) # Get the part to copy (Note: Replace “Part Name” with the actual part name) objitem = geomApp.GetDocument().GetAssembly().GetItem(u"Part Name") # Create a reference objref = geomApp.GetDocument().CreateReferenceFromItem(objitem) # Set the reference as the target objassemblypattern.SetPropertyByReference(u"Target", objref)


