Translations:Line drawing function/30/en

What we did here is transform our function into an  function. When FreeCAD commands are run, they automatically execute the function. We also added a function, that informs FreeCAD where it can find the icon for the tool, and what will be the name and tooltip of our tool. Any, or  image will work as an icon, it can be any size, but it is best to use a size that is close to the final aspect, like 16x16, 24x24 or 32x32. Then we add the class as an official FreeCAD command with the  method.