TAGGED: discovery-live, python
-
-
October 18, 2021 at 10:57 pm
seghierdesign
SubscriberHello, 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 spcimport timestarttime = time.time()Ânum = [5,3,2,4,8]Âvalues = []i = 0t = 5face = 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 pmAniket
Forum 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.
Innovation SpaceTrending discussions- Project lines/edges into a face with the direction normal to the face
- No preview in explorer with scdox file
- Add-in Error Excel
- Fileformats
- Discovery 2025r2 failed to initialize
- Spaceclaim problem
- Using SpaceClaim scripts vs recorded blocks for parametric optimization workflow
- Different Body Naming and Extra Surfaces after Importing Solid Edge Part
- racing royals
- New Computer
Top Contributors-
4592
-
1494
-
1386
-
1209
-
1021
Top Rated Tags© 2025 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.
-


