3D Design

3D Design

Topics related to Ansys Discovery and Ansys SpaceClaim.

Ansys space claim sweep using python script

TAGGED: 

    • Shyam Prasad V Atri
      Subscriber

      Hello 

      Can anyone please tell me what is the python command to the following questions

      1 create a plane normal to the starting point on a curve

      2 draw a circle of a particular diameter

      3 sweep that circle along that line

      I saw some example scripts given in space claim by default but i don't see any examples given for question 1

      I have already seen this video (

      ) which gives how the data structure of space claim model works but this also does not contain information about the question 1

      But i still can't understand how to create can anyone give me exact python commands for drawing one spline and sweep a circle of diameter 1mm along that spline

    • Erik Kostson
      Ansys Employee

       

       

      Hi

      Ansys employees are not allowed to provide exact and extensive scripts – perhaps other forum members (not from Ansys) can do that .

      What we can do is to give advice on how to easily create such a script.

      1. Go to File-New Script.

      2. Press the red record button as shown in the video image attached in your first post (think it is pressed by default):

      3. Take steps 1-3. So as you would do this in the user interface (UI) so create a curve manually, a plane and a sketch, and then use the extrude tool, to create your geometry in the UI. These steps are now recorded and you have a Spaceclaim (SC) script which you can reuse and readapt. So this is a great way to record and create scripts in SC.

      Hope this is clear.

      Erik 

       

       

       

Viewing 1 reply thread
  • The topic ‘Ansys space claim sweep using python script’ is closed to new replies.