I'm trying to import iges files in my ocaf application. And I'm using the following code.
status = reader.Perform(myFileName, myOcafDoc);
Then I want to view the content of the file in the viewer using the following code.
TDF_Label LabSat = myOcafDoc->Main();
for (TDF_ChildIterator it(LabSat); it.More(); it.Next())
TDF_Label L = it.Value();
Handle(TPrsStd_AISPresentation) prs = TPrsStd_AISPresentation::Set(L, TNaming_NamedShape::GetID());
But I don't see anything on the screen.
What is wrong with this code?
Can anybody help me?