-# Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+# Copyright (C) 2014-2023 CEA, EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
def exportViaXAO(self):
# if part-set is active, iterate also parts
for isPart in (True, False):
- aResultType = model.ModelAPI_ResultBody_group()
+ aResultType = model.ModelAPI_ResultBody.group()
if isPart:
- aResultType = model.ModelAPI_ResultPart_group()
+ aResultType = model.ModelAPI_ResultPart.group()
# iterate all results of Part, export one by one due to issue 2882
for aResIndex in range(self.Part.size(aResultType)):
anObject = self.Part.object(aResultType, aResIndex)
aResult = model.objectToResult(anObject)
+ # do not export picture
+ if aResult.hasTexture() is True:
+ continue
if not aResult is None:
if (not aResult.shape() or aResult.shape().isNull()) and isPart:
aPart = model.modelAPI_ResultPart(aResult)