Hello everyone,
I would like to generate a cylinder as a shell from a line that I create with the PyAnsys Modeler. In SpaceClaim and Discovery this is easy using the selection and pull function to then rotate the line with the RevolveEdge function in the IronPython API Script Editor. Is this also possible in PyAnsys? I think it is possible, but I haven't found the solution yet. Because when I use the function component.revolve(), I get an error.
standardUnit = unit.mm
sketch = Sketch()
start_point = Point2D([xMid_bottom, yMid_bottom], unit=standardUnit)
end_point = Point2D([xMid_top, yMid_top], unit=standardUnit)
sketch.segment(start_point, end_point, "Midline")
component = design.add_component(name="what ever")
component.revolve_sketch(name=shell.label, sketch=sketch, axis=UNITVECTOR3D_Y, angle=Angle(360, unit=unit.degrees), rotation_origin=Point3D([0, 0, 0]))