how using python scripting ?

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: how using python scripting ?

Post by wmayer »

Note, neither the PropertyFloatList nor PropertyStingList are intended to have a set of values where only one is active. Instead, these classes are used to store values like the distances per vertex for a visual inspection calculations. What you need is the class App::PropertyEnumeration which has a list of predefined values and only one of them is active. The items inside are only strings but it should be not too hard to save/load floats as string.
Post Reply