clicksger.blogg.se

Spaceclaim python scripting
Spaceclaim python scripting







spaceclaim python scripting

In such a case, it is necessary to work on each shared part separately, and this is a very costly process. For example, there may be parts in the model that are geometrically related but require a special element such as a contact or joint between them. Thus, it is not necessary to define elements such as contacts or joints to define the relationship between the parts.ĬAD models used for analysis can be quite complex in terms of both the number of parts and the relationship of the parts to each other. With this command, the topology (face, edge, and vertex connections) is shared between touching or intersecting bodies so a conformal mesh where bodies meet is performed. Preprocessing is accelerated with commands specialized for this purpose. These could be as simple as creating primitive shapes, saving/opening files or using some popular commands like Fill.Spaceclaim direct modeler (SCDM) is a remarkably successful CAD program for preparing geometric models for simulation. Lastly, if you already have some experience with scripting in SpaceClaim, you’ll appreciate that in Ansys SpaceClaim 18 we’ve populated prerecorded snippets of scripts that you can use to call common actions. When I was a novice to scripting this helped me get started and made scripting less intimidating. You’ll see the operations being performed very quickly. Play around with adjusting values and replay your actions on other models or a blank screen. This will help you to better understand the syntax used to capture your steps. For example, as you use tools like Pull or Move on your model, you’ll see your script start to get populated. Just as you may have used a macro before in other popular applications, SpaceClaim will record each modeling step you perform and capture all necessary parameters required to repeat your operation. My second suggestion would be to record yourself using SpaceClaim. Some understanding of the syntax and what is expected with commands will help you hit the ground running.

spaceclaim python scripting

Scripting in the SpaceClaim environment uses IronPython, which is an open source language built on Python. If you are new to scripting, I’d suggest learning a little about the Python programming language and what it can do.









Spaceclaim python scripting