mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 17:30:35 +05:00
Fix ImportXAO and ExportXAO python dump
This commit is contained in:
parent
6ad023c1ef
commit
2caaea5924
@ -1107,7 +1107,7 @@ bool GEOMImpl_IInsertOperations::ExportXAO(Handle(GEOM_Object) shape,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pd << "], ";
|
pd << "], ";
|
||||||
pd << author << ", \"" << fileName << "\")";
|
pd << "\"" << author << "\", \"" << fileName << "\")";
|
||||||
|
|
||||||
SetErrorCode(OK);
|
SetErrorCode(OK);
|
||||||
delete xaoObject;
|
delete xaoObject;
|
||||||
@ -1384,6 +1384,14 @@ bool GEOMImpl_IInsertOperations::ImportXAO(const char* fileName,
|
|||||||
pd << "], [";
|
pd << "], [";
|
||||||
|
|
||||||
// list of fields
|
// list of fields
|
||||||
|
if (nbFields > 0)
|
||||||
|
{
|
||||||
|
for (int i = 1; i <= nbFields; i++)
|
||||||
|
{
|
||||||
|
Handle(GEOM_Field) obj = Handle(GEOM_Field)::DownCast(fields->Value(i));
|
||||||
|
pd << obj << ((i < nbFields) ? ", " : "");
|
||||||
|
}
|
||||||
|
}
|
||||||
pd << "]";
|
pd << "]";
|
||||||
pd << ") = geompy.ImportXAO(\"" << fileName << "\")";
|
pd << ") = geompy.ImportXAO(\"" << fileName << "\")";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user