Can anyone tell me how to list all the entities from an IGES file loaded.
I use Sample Import/Export surces and QT(windows)
Thank You..
Roman Lygin Tue, 01/11/2005 - 22:08
Hello,
You can retrieve the model (transient representation of the IGES file in memory) with
IGESControl_Reader aReader = ...;
...
Handle(IGESData_IGESModel) aModel = aReader.IGESModel();
and iterate over it using aModel->Entity ();
Otherwise, you can directly receive a selection of entities (all, visible roots, etc) using IGESControl_Reader::GiveList(). For a list of possible selection consult IGES User's Guide or Reference Manual.
Of course, GUI implementation is up to you. You can use IGESData_IGESEntity interface to access each entity property.
Tue, 01/11/2005 - 22:08
Hello,
You can retrieve the model (transient representation of the IGES file in memory) with
IGESControl_Reader aReader = ...;
...
Handle(IGESData_IGESModel) aModel = aReader.IGESModel();
and iterate over it using aModel->Entity ();
Otherwise, you can directly receive a selection of entities (all, visible roots, etc) using IGESControl_Reader::GiveList(). For a list of possible selection consult IGES User's Guide or Reference Manual.
Of course, GUI implementation is up to you. You can use IGESData_IGESEntity interface to access each entity property.
Hope this helps.
Roman
Wed, 01/12/2005 - 09:16
Yes thank you but I want to display this entities in some way or in a tree view or directly to the AIS display but I don't know how..