STEPControl_Reader aReader(XSDRAW::Session()) Error

Reading from STEP

Load a STEP file

Before performing any other operation, you must load a STEP file with:

STEPCAFControl_Reader reader(XSDRAW::Session(), Standard_False); 
IFSelect_ReturnStatus stat = reader.ReadFile("filename.stp"); 

Loading the file only memorizes the data, it does not translate it.


Error

Attachments: 
Kirill Gavrilov's picture

XSDRAW::Session() is a function from Draw Harness plugin TKXSDRAW. As long as you are not developing another Draw Harness plugin, it doesn't make sense calling this property - it is initialized only while loading plugin in Draw Harness.

Lee Dongming's picture

Hi~~~~~Thanks!!!!