Extrude line to make it surface body #2145
Replies: 2 comments 2 replies
-
Hi @harikrushna171 - thanks for opening this discussion! As of now, it is currently not possible to extrude a "sketched" line and create it a surface body. The pyansys-geometry/tests/integration/test_geometry_commands.py Lines 236 to 283 in b0225b1 In your cawse, you might be interested in using the pyansys-geometry/src/ansys/geometry/core/designer/component.py Lines 915 to 943 in b0225b1 |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response @RobPasMue. Is it possible for ANSYS to add this functionality in the future, similar to what is available in Discovery? This feature would be very helpful for creating surfaces. For example, if I want to create a C channel with a length of 1000mm, I can simply create the C shape and extrude it, which will automatically generate a surface model of the C profile same as discovery. Kindly please include in enhancement request. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There is an option in Discovery to extrude a line to create a surface. (example: If i draw simple line and extrude it, It will become rectangle)
How can I do this using PyGeom? Which command should I use?
`modeler = launch_modeler()
print(modeler)
design_name = "ExtrudeProfile"
design = modeler.create_design(design_name)
web = 50
height = 80
width = 200
length = 1000
plane = Plane(origin=Point3D([0,0,0]), direction_x=Vector3D([0,1,0]), direction_y=Vector3D([0,0,1]))
sketch = Sketch(plane)
(sketch.segment(Point2D([0, 0]), Point2D([web, 0]))
.segment_to_point(Point2D([web, height]))
.segment_to_point(Point2D([width-web, height]))
.segment_to_point(Point2D([width-web, 0]))
.segment_to_point(Point2D([width, 0])))
sketch.plot()
body = GeometryCommands.extrude_edges(sketch, distance=length)
design.plot()`
Beta Was this translation helpful? Give feedback.
All reactions