


{"id":364306,"date":"2024-04-25T21:20:04","date_gmt":"2024-04-25T21:20:04","guid":{"rendered":"\/forum\/forums\/reply\/364306\/"},"modified":"2024-04-25T21:20:04","modified_gmt":"2024-04-25T21:20:04","slug":"364306","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/364306\/","title":{"rendered":"Reply To: How to select elements to create a surface using SpaceClaim scripting?"},"content":{"rendered":"<p>&lt;p&gt;I managed to do this by giving the number of lines to be selected, and thus creating the surface only in the desired region.&nbsp;&lt;br&gt;&#8221;&lt;\/p&gt;&lt;p&gt;selection_curves = [] &nbsp;# Lista para armazenar os valores de Curves[i]&lt;\/p&gt;&lt;p&gt;for i in range(13): &nbsp;# Iterando de 0 a 13&lt;br&gt;&nbsp; &nbsp; curve = GetRootPart().DatumPlanes[0].Curves[i]&lt;br&gt;&nbsp; &nbsp; selection_curves.append(curve)&lt;\/p&gt;&lt;p&gt;selection = Selection.Create(selection_curves)&lt;br&gt;secondarySelection = Selection.Empty()&lt;br&gt;options = FillOptions()&lt;br&gt;result = Fill.Execute(selection, secondarySelection, options, FillMode.Layout, None)&lt;\/p&gt;&lt;p&gt;&#8221;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-364306","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/364306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/364306\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=364306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}