Skip to content

[Modeler3D]unable to sweep along path #3459

Closed Answered by Samuelopez-ansys
gnimdu asked this question in Q&A
Discussion options

You must be logged in to vote

@gnimdu I guess that was an issue from previous AEDT versions with Parasolid kernel. I tried in 2023R2 and PyAEDT v0.7.10, and it works:

import pyaedt
import math

aedtapp = pyaedt.Hfss(specified_version="2023.2")

center_pos = [0,-0.02,0]
dimensions = [0.005, 0.005]
position = [center_pos[0]-0.005/2, center_pos[1]-0.005/2, 0]
coil1 = aedtapp.modeler.create_circle(cs_plane="YZ", position=center_pos, radius=0.0025, name="coil1")

sweep_path_1 = aedtapp.modeler.create_equationbased_curve(x_t=str(-0.02)+"*sin(_t)", y_t=str(0.02)+"*cos(_t)", z_t=str(0.00087)+"*_t", t_start=0, t_end=math.pi/2, num_points=0, name="sweep_path_1", )

sweep_res1 = aedtapp.modeler.sweep_along_path(coil1, sweep_path…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Samuelopez-ansys
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