Translate

docs/0.4/freecad/basefunction
docs/0.3/freecad/basefcstd
docs/0.3/freecad/basefunction
You should now test the newly added part. This is most easily done on the
command line by typing
SourceTranslationState
58
The line `type: function` indicates that it contains python functions for
FreeCAD. As a file can contain more than one function, a list of elements
follows, that describe the individual functions. In our case there is only
one, called washer1.
59
There is the possibility to add an optional `source` field which allows to give
informations about the origin of the file. If there is a URL from which this
file was downloaded, this can be included here.
60
The `classids` field contains a list of classids to which this function
applies. BOLTS contains four different classes that describe washers, so in
this case this list is rather long, but in other cases it might only contain
a single entry. Be careful, that the parameter names for all classes in this
list must be the same, otherwise the parameter dict contains unexpected
entries or names can not be found.
61
When working on base files, pay attention to whitespace and identation and do
not use tabs.
62
### Testing
63
You should now test the newly added part. This is most easily done on the
command line by typing
Sie sollten nun das neu hinzugefügte Teil testen. Dies geht am einfachsten in der Kommandozeile mit
64
./bolts.py export freecad
./bolts.py test freecad
65
in the repo directory. This will fire up a FreeCAD instance with the module
search path set appropriately, so that typing
66
import BOLTS
67
on the FreeCAD python console should do the trick.
68
If BOLTS is started successfully, try adding the newly added part to the
current document with different combinations of parameters.

Loading…

Glossary

Source Translation
No related strings were found in the glossary.

Source information

Comments
docs/0.4/freecad/basefunction docs/0.3/freecad/basefcstd docs/0.3/freecad/basefunction
Source string age
3 years ago
Translation file
translations/de/LC_MESSAGES/docs.po, translation unit 63
String priority
Medium