-
-
April 13, 2024 at 10:16 pm
Victor Levin
SubscriberI'm importing a txt file into Ansys 2023 Mechanical scripting. I'm trying to assign a cross section to a line and the txt says the number for the outer and inner radius of the circlular tube which I want to put on a line and I keep getting a "expected Quantity, got float" error reading. The code works on Ansys 2021 and 2022. What are some reasons it may not work on 2023?Â
-
April 15, 2024 at 1:25 pm
Aniket
Forum ModeratorCan you paste the code you are using here? ideally you should be able to proceed if you define it as quantity, as shown in https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v241/en/act_script/MechAPIsSetDiscreteValues_Setting_Output.html
-Aniket
-
April 15, 2024 at 3:41 pm
Erik Kostson
Ansys EmployeeÂ
Hi
See this post on how to define a cross section using scripting:
All the best
Erik
Â
-
- The topic ‘Expected Quantity Error Ansys 2023’ is closed to new replies.
- The legend values are not changing.
- LPBF Simulation of dissimilar materials in ANSYS mechanical (Thermal Transient)
- Convergence error in modal analysis
- How to model a bimodular material in Mechanical
- APDL, memory, solid
- Meaning of the error
- Simulate a fan on the end of shaft
- Nonlinear load cases combinations
- Real Life Example of a non-symmetric eigenvalue problem
- How can the results of Pressures and Motions for all elements be obtained?
-
3892
-
1414
-
1256
-
1118
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.