Why duplicated Labels are not allowed by default?

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!
Post Reply
leoheck
Veteran
Posts: 1225
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Why duplicated Labels are not allowed by default?

Post by leoheck »

By default, Freecad does not allow duplicated Labels for features. But this is not important since it must use Names internally, instead. Those are never duplicated. So, why does it matter? Why it does not enable duplicated Labels by default? what is the possible problem that it may cause? I am not talking about 3rd party stuff (workbenches, scripts, macros)
User avatar
Roy_043
Veteran
Posts: 8577
Joined: Thu Dec 27, 2018 12:28 pm

Re: Why duplicated Labels are not allowed by default?

Post by Roy_043 »

There is a preference to allow this, so you can just try it.

But avoiding the confusion duplicate labels may cause for the user would be a very good reason for the default behavior. And expressions using labels will fail if those are used twice.
Post Reply