DiscussionsIssue archiveData Exchange and Application Framework

Archived discussion

STEPControl_Reader aReader(XSDRAW::Session()) Error

Data Exchange and Application FrameworkMon, 04/25/2022 - 15:222 replies

Browse this forum
QuestionAuthor

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

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

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.

02Author

Hi~~~~~Thanks!!!!