-
-
August 2, 2023 at 12:29 pm
Adrian Sieradzki
SubscriberHello,
Does anyone know how I can programatically select an entire layer (either by its name or index) to make selectom similar to Selecton.Create()?
I am new to space claim scripting and recorder does not seem to output anything when I select something in editor so - does someone have a link to resource where I can learn more about API or does someone know already how to select a specific layer?
Thanks -
August 2, 2023 at 2:21 pm
Adrian Sieradzki
SubscriberOkay I made some good progress:
1. The documentation is located in ansys installation directory in 'scdm' folder (its actually not bad)
2. There is no way to access objects from the layer, instead all objects that "belong" to a layer will be implementing IHasLayer interface, the name of layer property can be checked without casting:myLayerName = r"solid"obs = DocumentHelper.GetAllDocObjects()for obj in obs:if obj.Layer.Name == myLayerName:#your code here
Let me know if you have a better way
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth 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.
- How to work with STL file?
- Rotate tool in ANSYS Design Modeler
- section plane
- Using Symmetry in DesignModeler and Expanding the Results
- ANSYS FLUENT – Operation would result in non manifold bodies
- drawing a geometry by importing a table of points
- material properties
- Coordinates orientation
- “contact pair has no element in it.” how to resolve this problem
- Parameters not imported into Workbench 18.2 from Solidworks/Inventor
-
7626
-
4456
-
2955
-
1427
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.