X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=doc%2Ffirst_feature_help.doc;h=fc7f1f9ebaecfdac6ef9144b02b4b1f68521c073;hb=ac25548f4f83879a914eb828deec6e11f8fbf329;hp=c40f79d60385df593ee133385c53e9990e4c3aca;hpb=d5453e493b1e2dc70a578647197c03ad13bd9f1e;p=modules%2Fshaper.git diff --git a/doc/first_feature_help.doc b/doc/first_feature_help.doc index c40f79d60..fc7f1f9eb 100644 --- a/doc/first_feature_help.doc +++ b/doc/first_feature_help.doc @@ -118,13 +118,13 @@ And like a plugin implements a functionality to create 'feature' objects by stri \code void ConstructionPlugin_Point::initAttributes() { - data()->addAttribute("DoubleCounterData", ModelAPI_AttributeDouble::type()); + data()->addAttribute("DoubleCounterData", ModelAPI_AttributeDouble::typeId()); } \endcode Python: \code def initAttributes(self): - self.data().addAttribute("DoubleCounterData", ModelAPI.ModelAPI_AttributeDouble.type()) + self.data().addAttribute("DoubleCounterData", ModelAPI.ModelAPI_AttributeDouble.typeId()) \endcode As you may notice, this method defines that feature has a widget with "DoubleCounterData" id, which has Double type. Therefore, if your feature uses, in example, three widgets, the `initAttributes()` method should 'init' three attributes. \n