Mon, 04/25/2022 - 15:22
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:
Thu, 04/28/2022 - 20:07
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.
Fri, 04/29/2022 - 05:41
Hi~~~~~Thanks!!!!