-# Copyright (C) 2011-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2011-2023 CEA, EDF, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
its name. Other attributes are reserved for future use.
"""
- def __init__(self, name, dimension = [], minValue = None, maxValue = None,
+ def __init__(self, name, dimension = None, minValue = None, maxValue = None,
initialValue = None):
+ if dimension is None:
+ dimension = []
self.name = name
# Reserved for future use
"""
- def __init__(self, inputVarList = [], outputVarList = [],
+ def __init__(self, inputVarList = None, outputVarList = None,
refEntry = None):
+ if inputVarList is None:
+ inputVarList = []
+ if outputVarList is None:
+ outputVarList = []
self.inputVarList = inputVarList
self.outputVarList = outputVarList
self.refEntry = refEntry
:return: the newly created SObject.
"""
- studyId = fatherSobj.GetStudy()._get_StudyId()
- editor = getStudyEditor(studyId)
+ editor = getStudyEditor()
sobj = editor.createItem(fatherSobj,
name = name,
icon = icon,
other parameters.
"""
- studyId = sobj.GetStudy()._get_StudyId()
- editor = getStudyEditor(studyId)
+ editor = getStudyEditor()
editor.setItem(sobj, name = name, icon = icon, typeId = typeId)
editor.builder.RemoveAttribute(sobj, "AttributeParameter")
_setSObjectForExchangeVariables(editor, sobj, exchangeVariables)