parameters: (self, obj)
docstring: Set basic properties only if they don't exist.
docstring_summary: Set basic properties only if they don't exist.
docstring_tokens: Set basic properties only if they don t exist .
function: def set_properties(self, obj):
          """Set basic properties only if they don't exist."""
          properties = obj.PropertiesList
  
          if "Normal" not in properties:
              _tip = QT_TRANSLATE_NOOP("App::Property",
                                       "The normal direction of the text "
                                       "of the dimension")
              obj.addProperty("App::PropertyVector",
                              "Normal",
                              "Dimension",
                              _tip)
              obj.Normal = App.Vector(0, 0, 1)
  
          # TODO: remove Support property as it is not used at all.
          # It is just set at creation time by the make_dimension function
          # but it is not used.
          if "Support" not in properties:
              _tip = QT_TRANSLATE_NOOP("App::Property",
                                       "The object measured by this dimension "
                                       "object")
              obj.addProperty("App::PropertyLink",
                              "Support",
                              "Dimension",
                              _tip)
              obj.Support = None
  
          if "LinkedGeometry" not in properties:
              _tip = QT_TRANSLATE_NOOP("App::Property",
                                       "The object, and specific subelements "
                                       "of it,\n"
                                       "that this dimension object "
                                       "is measuring.\n"
                                       "\n"
                                       "There are various possibilities:\n"
                                       "- An object, and one of its edges.\n"
                                       "- An object, and two of its vertices.\n"
                                       "- An arc object, and its edge.")
              obj.addProperty("App::PropertyLinkSubList",
                              "LinkedGeometry",
                              "Dimension",
                              _tip)
              obj.LinkedGeometry = []
  
          if "Dimline" not in properties:
              _tip = QT_TRANSLATE_NOOP("App::Property",
                                       "A point through which the dimension "
                                       "line, or an extrapolation of it, "
                                       "will pass.\n"
                                       "\n"
                                       "- For linear dimensions, this property "
                                       "controls how close the dimension line\n"
                                       "is to the measured object.\n"
                                       "- For radial dimensions, this controls "
                                       "the direction of the dimension line\n"
                                       "that displays the measured radius or "
                                       "diameter.\n"
                                       "- For angular dimensions, "
                                       "this controls the radius of the "
                                       "dimension arc\n"
                                       "that displays the measured angle.")
              obj.addProperty("App::PropertyVectorDistance",
                              "Dimline",
                              "Dimension",
                              _tip)
              obj.Dimline = App.Vector(0, 1, 0)
function_tokens: def set_properties ( self , obj ) : properties = obj . PropertiesList if "Normal" not in properties : _tip = QT_TRANSLATE_NOOP ( "App::Property" , "The normal direction of the text " "of the dimension" ) obj . addProperty ( "App::PropertyVector" , "Normal" , "Dimension" , _tip ) obj . Normal = App . Vector ( 0 , 0 , 1 ) # TODO: remove Support property as it is not used at all. # It is just set at creation time by the make_dimension function # but it is not used. if "Support" not in properties : _tip = QT_TRANSLATE_NOOP ( "App::Property" , "The object measured by this dimension " "object" ) obj . addProperty ( "App::PropertyLink" , "Support" , "Dimension" , _tip ) obj . Support = None if "LinkedGeometry" not in properties : _tip = QT_TRANSLATE_NOOP ( "App::Property" , "The object, and specific subelements " "of it,\n" "that this dimension object " "is measuring.\n" "\n" "There are various possibilities:\n" "- An object, and one of its edges.\n" "- An object, and two of its vertices.\n" "- An arc object, and its edge." ) obj . addProperty ( "App::PropertyLinkSubList" , "LinkedGeometry" , "Dimension" , _tip ) obj . LinkedGeometry = [ ] if "Dimline" not in properties : _tip = QT_TRANSLATE_NOOP ( "App::Property" , "A point through which the dimension " "line, or an extrapolation of it, " "will pass.\n" "\n" "- For linear dimensions, this property " "controls how close the dimension line\n" "is to the measured object.\n" "- For radial dimensions, this controls " "the direction of the dimension line\n" "that displays the measured radius or " "diameter.\n" "- For angular dimensions, " "this controls the radius of the " "dimension arc\n" "that displays the measured angle." ) obj . addProperty ( "App::PropertyVectorDistance" , "Dimline" , "Dimension" , _tip ) obj . Dimline = App . Vector ( 0 , 1 , 0 )