Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
3D Design

3D Design

Topics related to Ansys Discovery and Ansys SpaceClaim.

How to loop blend script through several curves.

    • Jthibault
      Subscriber

      I have imported a point curve text file as a series of 141 evenly spaced curves and wish to use the blend tool to make them into a surface. I want to create a general script to apply the blend tool to each pair of curves in sequence.

      Essentially what I want to do it perform this code block:

      # Create Blend

      selection = Selection.Create(Curve1, Curve2)

      options = LoftOptions()

      options.GeometryCommandOptions = GeometryCommandOptions()

      result = Loft.Create(selection, None, options, Info1)

      # EndBlock

      and subsequently iterate Curve1 and Curve2 through all pairs of sequential curves in CurveFolder1

    • Aniket Chavan
      Forum Moderator
      would it work if you pythonically read the file and bring only two curves at a point blend them, and later delete them, and repeat?
      -Aniket
      How to access Ansys help links
      Guidelines for Posting on Ansys Learning Forum
Viewing 1 reply thread
  • The topic ‘How to loop blend script through several curves.’ is closed to new replies.
[bingo_chatbox]