General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

space claim 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

      (I don't know why you closed the comments for this question..i don't know what you are trying to do by doing such a thing as to unnecessarily close the question without giving a proper resolution)

    • Erik Kostson
      Ansys Employee

      Hi

       

      Easiest is to use script recording when creating a new script (File -> New Script) and record the actions you take in the user interface (UI) of SC – so take all 3 steps manually in the UI as you would normally do, and you will see the corresponding script commands when recording them in a new script – see below how to activate and start the script recording (so video and search is for that only so how to start and use the script recording and not to look on the actual commands produced by this in the video that is not relevant as you are trying to do something else – so just see how to open and start a script recording hope that is more clear now)

      https://www.youtube.com/watch?v=U98qtKWUoL8

      Search for more videos if needed, but is fairly easy to record the actions (you just press the red record button on the new script console in SC)

      https://www.google.com/search?q=recording+and+script+and+spaceclaim&rlz=1C1GCEA_enDE1032DE1032&oq=recording&gs_lcrp=EgZjaHJvbWUqBggCEEUYOzIMCAAQRRg5GLEDGIAEMgYIARBFGEAyBggCEEUYOzIKCAMQABixAxiABDINCAQQABixAxjJAxiABDINCAUQABiSAxiABBiKBTINCAYQABiSAxiABBiKBTIHCAcQABiABNIBCDU0MThqMGo3qAIIsAIB&sourceid=chrome&ie=UTF-8

      If you have any further questions in the future please post in the 3D design (Spaceclaim) forum which is the appropriate forum (current forum is about mechanical analysis and not about Scpaceclaim scripting):

      Also be mindful and respectful when posting in the forum.

      See forum guidelines:

       

      /forum/forums/topic/guidelines-for-posting-on-ansys-learning-forum/

      /forum/forums/topic/forum-rules-of-conduct/

       

      /forum/forums/forum/discuss-simulation/threeddesign/

       

      Thank you

       

      Erik

       

      Closing as there is anoteher duplicate post: 

      /forum/forums/topic/ansys-space-claim-sweep-using-python-script/#post-358734

       

       

       

       

       

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