Tagged: spaceclaim
-
-
March 28, 2022 at 8:17 am
UoS_CAE
SubscriberI am trying to import in a solidworks file via scripting feature in Spaceclaim with associated parameters which workbench can use in mechanical for optimisation studies. I can successfully import in the Solidworks geometry via script feature, but I can’t seem to import and select the parameters of interest similar to the capability available with block recording, where the parameters can be selected via a drop down. Can anyone help? Thank you.
Here is the script i am using currently:
# Insert From File
importOptions = WorkbenchSettings()
importOptions.SolidBodies = True
importOptions.Parameters = ParameterImport.Independent # similar to block recording
importOptions.ParameterKey = r"ANS;DS" # similar to block recording
DocumentInsert.Execute(r"D:SimulationsExample problemSubmodel - solid and shell.SLDPRT", importOptions, GetMaps("0107d617")) # the get maps id is taken from the python recording feature
# EndBlock
March 30, 2022 at 12:54 pmAshish Khemka
Ansys Employee
Please see if the following link helps:
How to Use SpaceClaim Scripting to Parameterize Your Models - Bing video
Regards Ashish Khemka
Viewing 1 reply thread- You must be logged in to reply to this topic.
Ansys Innovation SpaceEarth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
Trending discussions- ANSYS Workbench Measuring within Design
- how to improve the inflation quality at sharp corners?
- check element type
- The mesh file exporter could not resolve cyclic dependencies in overlapping contact regions error
- How to resolve Mesh Failure
- Meshing Error
- Error in meshing
- Conformal vs Non-Conformal Mesh
- execution error inside the mesher. The process suffered an unhandled exception or ran out of memory
- inflation created stairstep mesh at some location
Top Contributors-
2600
-
2088
-
1319
-
1108
-
459
Top Rated Tags© 2023 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.
-