Message 1 of 7
Not applicable
12-19-2016
01:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm working on a plug-in to digest a BRep model using python scripts. I was confused to find out that the address (or id) for each member in an entity collection (e.g., BRepBodies, BRepShells, BRepFaces, BRepCoEdges, BRepEdges etc.) is the same. Details are presented below for a simple script:
for obj in objs:
print('obj id = ' + str(id(obj)))The result from running the above-mentioned script is like:
object id = 1556313504904 object id = 1556313504904 ...
Is there someone can tell me why the id returns the same address? How to get the unique address for each individual object (e.g., body, shell, face, coedge, edge and vertex etc.)?
Thanks
Solved! Go to Solution.
