How to use scripting features in ANSYS SpaceClaim to run your CAD design iterations

Поділитися
Вставка
  • Опубліковано 5 лют 2025

КОМЕНТАРІ • 41

  • @deepak8057173838
    @deepak8057173838 2 роки тому +2

    It is the best explanation, which removes the fear of scripting in Python. I know python still I was avoiding now I am working.....
    Thanks

    • @SimuTechGroup
      @SimuTechGroup  2 роки тому

      Hi Deepak, so happy that we could help!

  • @emreylmaz5766
    @emreylmaz5766 Рік тому +2

    Hello, thanks for the information and video. I would like to add one more thing, we want to delete all the geometry drawn in the next step while the script is running and for this
    while GetRootPart().Components.Count > 0:
    GetRootPart().Components[0].Delete()
    while GetRootPart().Bodies.Count > 0:
    GetRootPart().Bodies[0].Delete()
    while GetRootPart().Curves.Count >0:
    GetRootPart().Curves[0].Delete()
    code.
    If you add this code as an extra here, your Sketch Planes will also be deleted.
    while GetRootPart().DatumPlanes.Count >0:
    GetRootPart().DatumPlanes[0].Delete()
    otherwise you may be encounter an error

  • @cr6925
    @cr6925 4 роки тому +1

    Superb! Thank you for putting this together. Really useful! 😊

  • @ebeampython4400
    @ebeampython4400 5 років тому

    Wow, wonderful video! Thank you. I have been trying to find this one for a long time.

  • @dev1995kumar
    @dev1995kumar 3 роки тому

    Great content and Excellent Explanation

  • @faycalby
    @faycalby 6 років тому

    Very smooth and nice demo; Keep up the great work

    • @MattRidzonPE
      @MattRidzonPE 5 років тому

      Thank you for watching. I hope it helped you out!

  • @nawfalnazar2386
    @nawfalnazar2386 7 років тому +1

    Thank you for this detailed explanation. It is really helpful

    • @MattRidzonPE
      @MattRidzonPE 7 років тому

      Fabulous! Glad you found it useful!

  • @ps12_
    @ps12_ 5 років тому +2

    This is great, you saved me! Awesome video and explanation

    • @MattRidzonPE
      @MattRidzonPE 5 років тому +1

      Awesome! I'm glad it helped you out!

  • @rvprezende
    @rvprezende 4 роки тому +1

    Good video!!!

  • @zwaywoo9494
    @zwaywoo9494 Рік тому

    Can I create a script parameter in the left panel from typing in python code in the right panel, for example, I type something like "p = CreateScriptParameter(param_name, unit)"?

  • @andrewciricillo9726
    @andrewciricillo9726 2 роки тому +1

    Hello, once I created my geometry using script (in which parameters are assigned to variables) and set up the model, I can't get the parametric design study to work. It works just fine for the parameters from mechanical (Load, etc) but my output does NOT change for changing the parameters affecting the geometry. I have to open spaceclaim (which will open without the script windows open), open new script (which is blank) load the script, change the parameters, and then run the script, solve for solution each time if I want to iterate through design changes. Any tips?

    • @SimuTechGroup
      @SimuTechGroup  2 роки тому

      Hi Andrew, thank you for your comment. If you are interested in our training or mentoring services, please send us an email at info@simutechgroup.com or you can check out the learning hub here: www.ansys.com/services/ansys-learning-hub

    • @lougvar
      @lougvar Рік тому

      Did you find the answer to your problem? I have the same issue:(

  • @MrGautham1994
    @MrGautham1994 2 роки тому

    How does one assign material? Everytime I delete the solid and create a new one, Mechanical doesn't know which material to assign.

    • @SimuTechGroup
      @SimuTechGroup  2 роки тому

      Thank you for the comment, if you are interested in mentoring or consulting services, please send us an email at info@simutechgroup.com or you can check out the Ansys Learning Hub here: www.ansys.com/services/ansys-learning-hub

  • @yanhuiyuan5686
    @yanhuiyuan5686 6 років тому

    Nice and easy. Thank you!

  • @ArturKireev-u5b
    @ArturKireev-u5b 5 років тому

    Very helpful video! Thank you for clear explanation and good examples!
    I'm also interested -- is there function to address to geometry objects -- for example, start line from the middle of previous line. Something like
    ```start = Point2D.Create(lineMiddle(Curve1))```

  • @prasadbejgamwar6828
    @prasadbejgamwar6828 4 роки тому

    Hello, thank you for video it's very useful but I have one doubt.
    I have 4 same parts in a assembly all 4 parts I have to geometry clean up for each individual part it takes almost 20 min can you guide me how can I save clean up script and apply it for remaining 3 parts.

  • @rhylanehajar5740
    @rhylanehajar5740 4 роки тому

    Thank you so much 💖

  • @jasonchen5761
    @jasonchen5761 5 років тому +1

    How can you call a SpaceClaim script from Workbench? Like how you can send a JS Script for the Mesher from a Workbench Journal, is there an equivalent for SpaceClaim?

    • @lougvar
      @lougvar Рік тому

      Hello! Did you find the solution?

  • @linyang7615
    @linyang7615 Рік тому

    Hi, I would like to ask a question about scdm scripting. I want to filter out all the faces in a particular plane, such as in the z = 5 plane, in which I can avoid using index such as GetRootPart().Components[8].Content.Bodies[0].Faces[1] or smart variable Face.5. If I use these forms, when I perform parametric modeling, it is likely that the original face ID will not be recognized because all geometric IDs are reassigned. I do not know how to implement this process.

    • @SimuTechGroup
      @SimuTechGroup  Рік тому

      Thank you for your comment lin. If you are interested in any of SimuTech Group's services like training, mentoring, or consulting please send us an email at info@simutechgroup.com or you can check out the Ansys Learning Hub here: www.ansys.com/services/ansys-learning-hub

  • @ThomasLambertMusic
    @ThomasLambertMusic 5 років тому

    Thank you very much!

  • @mutiuadegboye3827
    @mutiuadegboye3827 5 років тому

    @Mauro Vega, same with me I can't save script as group.

  • @ciabo18
    @ciabo18 5 років тому

    Hi, do you know if and how can i use the design proprieties (like file name, path ecc) in a script? do you know if exist a full documentation of python scripts in SpaceClaim.
    My dream is to save 3 file (.scdoc, .dxf and .jpg) on press only one button and i need file name and a path.
    Thanks

  • @olegtokmakov
    @olegtokmakov 7 років тому

    Thank you

  • @farzadtb
    @farzadtb 7 років тому

    Is there a pdf documentation for Spaceclaim scripting ?

    • @MattRidzonPE
      @MattRidzonPE 5 років тому

      Unfortunately, no. The documentation that is available is buried in the ANSYS installation directory and is very user-UNfriendly. I'm told they plan to improve the documentation, but it's not quite there yet. So at this point, someone who wants to use the feature, is mostly on their own and has to learn the hard way.

  • @maurovega791
    @maurovega791 5 років тому +1

    cant save my script as group, HELP!

    • @Flo-hu5jb
      @Flo-hu5jb 5 років тому

      Copy your code, go on the left to groups, create script group, edit Script, paste your code :)

  • @weijinliang6191
    @weijinliang6191 4 роки тому

    Wow~!! no effort to understand you..~~Thank you

  • @ВладимирКочергин-ю2з

    Thank you

  • @vivekshanbhag786
    @vivekshanbhag786 4 роки тому +1

    Thank you