Skip to content
Discussion options

You must be logged in to vote

Hi @JonathonMcMullan - I gave it a try to your request and came up with the following script that demos how I would do it personally. See the following code:

"""Script to create a box sketch and sweep it along a multi-point straight line path."""

from ansys.geometry.core import launch_modeler
from ansys.geometry.core.math import Plane, Point2D, Point3D, Vector3D
from ansys.geometry.core.shapes import Interval, Line
from ansys.geometry.core.sketch import Sketch

# Start the modeler
modeler = launch_modeler()

# Create a new design
design = modeler.create_design("BoxSweepExample")

# Define the box sketch on the XY plane at the first path point
# The box will be a 0.1 x 0.1 meter square ce…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@RobPasMue
Comment options

@JonathonMcMullan
Comment options

@RobPasMue
Comment options

Answer selected by JonathonMcMullan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants