Part: fixes #6282: exportStep breaking model

This commit is contained in:
wmayer
2022-04-11 11:58:57 +02:00
parent cc2f815b4f
commit ef5d7fa64e

View File

@@ -395,7 +395,7 @@ TopoDS_Shape TopoShape::getSubShape(TopAbs_ShapeEnum type, int index, bool silen
unsigned long TopoShape::countSubShapes(const char* Type) const
{
if(!Type)
if(!Type)
return 0;
if(strcmp(Type,"SubShape")==0)
return countSubShapes(TopAbs_SHAPE);
@@ -990,6 +990,10 @@ void TopoShape::exportIges(const char *filename) const
void TopoShape::exportStep(const char *filename) const
{
try {
// Fixes issue #6282
// Do not write out any assembly information when using the simplified STEP export
Interface_Static::SetIVal("write.step.assembly", 0);
// write step file
STEPControl_Writer aWriter;