How Do I Get The Indices Of A Vertex Type Object In Abaqus?
Context: I am trying to make a script in Abaqus that will automatically create partitions between vertices for all faces. The partitioning won't be perfect, but the users will be a
Solution 1:
All Abaqus' internal objects are specially developed classes, which could be similar (in some way) to standard Python types. For example, as you've discovered if you try to print some of them, you could have a dictionary-like representation, which doesn't mean that it is a dictionary.
The two best ways to find out what you can do with an object are:
- Look at the documentation;
- Use the
dir()
method from the standard python library.
So, in your particular case you can do:
pickedFaces_r=sorted(pickedFaces, key=lambda k: k.index, reverse=True)
Also, this line is unnecessary:
pickedFaces = f[:]
Post a Comment for "How Do I Get The Indices Of A Vertex Type Object In Abaqus?"