August 2, 2023 at 2:21 pm
Subscriber
Okay 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