get id from topods_shape

hello:

how to get ID from topoDS_Shape?

think you for help

Marco Matt's picture

Usually occ classes have HashCode(). Try it

stifan's picture

Think you;

can you please give me example how to use HashCode to retrive for example the ID of from a BREP file.

think you

Marco Matt's picture

HashCode() provides aunique ID for a TopoDS_Shape. It's not a matter from where do you load the shape (BREP or IGES).
Maybe you are searching for something else?

stifan's picture

think you

how I can put some names on the entities of OCC.
" my objective it is to import some OCC files in another CAD " magic "
thank you

Marco Matt's picture

You need OCAF/XDE. Look at TNaming_NamedShape

stifan's picture

hi marco;

can you please give me an example how to use this class to get ID of topoDS_Shape.

think you......................marco