referencelaha.blogg.se

Ansys spaceclaim python script to name faces
Ansys spaceclaim python script to name faces





ansys spaceclaim python script to name faces

You can dimension every element, from lines in sketches to faces of solids. When storing Ruler Dimensions Values or expressions you enter for precise control during the creation or modification of a design. You can create a group from any set of selected objects. I hope this will help you to start automating your model.You are here: The SpaceClaim interface > Groups panel You can also follow IronPython syntax given in this web page. In this script, they have used smart variables for automating geometry. You can download sample script from this link. Because your SC geometry is linked to Mechanical - contacts, mesh, loads etc by 'Named selections' only. If you are interested in SC geometry update and linking this updated geometry to Mechanical, then you also need to think about 'Named selections' creation for all possible combination of input parameters. If you are interested in just automating SC geometry, then you only need to think about all possible combination of input parameters. Use 'if-else' for creating different possible combination of input parameters conditions. Start with selection of correct sketch plane by recording, and then go ahead with recording each geometry operation.

ansys spaceclaim python script to name faces

So, you will be creating script step by step considering all possible combination of input parameters. You need to run geometry again and again with already recorded SC script for all possible combination of input parameters one by one, and insert smart variables in script under that combination of input parameters (use if- else) by clicking on geometry(curve or face or solid). The only problem with smart variables is that, you need to use smart variables for all possible combination of input parameters. Using smart variables is also a best way at the moment. If you don't know IronPython, you can use smart variables in program. SpaceClaim(SC) scripting is based on IronPython.







Ansys spaceclaim python script to name faces