Re: How to get Object's ID
Re: How to get Object's IDPosted by Irfan Basha at January 14. 2012
Re: How to get Object's IDPosted by DAVID Gilles at January 14. 2012
If you have only 1 solid on your compound, you can use the function SubShapeAllIDs:
ids = geompy.SubShapeAllIDs(shape,geompy.ShapeType["SOLID"]) group = geompy.CreateGroup(shape, geompy.ShapeType["SOLID"])
But if you intend to create groups of shapes in script, I advise you not to rely on Ids of the sub-shapes, but on the functions of type GetShapesOnXXX, GetSame, GetInPlace, on so on... Indeed the ids are not guaranteed to be identical from a version to another of Salome. Instead the mentioned functions are based on geometrical criteria.
Activate by Irfan Basha on Jan 14, 2012 11:46 AM