I hope this will help you to start automating your model. For more details please check the first block of the script if available. For the usage of the script, by default it is: select one solid, and run the script for this solid. To use the script, load it in SpaceClaim. You can also follow IronPython syntax given in this web page. SpaceClaimscripts Assitant script for accelerating the modeling Noted: This scripts are in the test phase. 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. 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.
0 Comments
Leave a Reply. |