-
-
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.
-
2733
-
959
-
813
-
599
-
591
© 2025 Copyright ANSYS, Inc. All rights reserved.