TAGGED: discovery-live, python
-
-
October 18, 2021 at 10:57 pmseghierSubscriber
Hello, i create a python script to change box height, but the problem that the solver always use the original height.
How i can solve that?
Please check the video attached
import SpaceClaim.Api.V20 as spc
import time
starttime = time.time()Â
num = [5,3,2,4,8]Â
values = []
i = 0
t = 5
face = GetRootPart().Bodies[0].Faces[5]Â
H = face.EvalMid().Point.Z*1000Â
for x, y in zip(num[0::], num[1::]):
  values.append(y-x)
values.insert(0,num[0])
values.insert(len(values),-num[-1])
spc.Unsupported.Live.Solver.Start()Â
while i
  time_ = t-((time.time() - starttime) % t)
  time.sleep(time_)
  i = i+1  Â
  selection = Selection.Create(face)
  options = ExtrudeFaceOptions()
  options.ExtrudeType = ExtrudeType.Cut
  result = ExtrudeFaces.Execute(selection, MM(values[i-1]), options, Info1)
  spc.Unsupported.Live.Solver.Reset()
spc.Unsupported.Live.Solver.Pause()
October 19, 2021 at 2:16 pmAniketForum ModeratorAnsys staff can not download any files on the forum, so if you want to reach a larger audience to get answers from, please insert inline images describing your problem.
-Aniket
How to access Ansys help links
Guidelines for Posting on Ansys Learning Forum
October 19, 2021 at 3:24 pmViewing 2 reply threads- The topic ‘Discovery live Python script : need help’ is closed to new replies.
Ansys Innovation SpaceTrending discussions- Data Center Simulation
- Unable to attach geometry 2024 R2
- Getting Mesh Faces With Specified Normal Via SpaceClaim Scripting (V241)
- How to provide blade angles in bladegen.
- DXF file loaded incorrectly
- plugin error failed to import assembly from spaceclaim
- Crash by using Script Editor
- Overlapping contact face
- Temperature’s Distribution not available in Refine Mode ?
- Thermoelectric Cooler Model
Top Contributors-
1191
-
513
-
488
-
225
-
209
Top Rated Tags© 2024 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-