Trying to understand ObjectIdentifier::updateLabelReference.

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
andrecaldas
Posts: 300
Joined: Fri Jan 27, 2023 8:45 pm
Contact:

Trying to understand ObjectIdentifier::updateLabelReference.

Post by andrecaldas »

I am trying to understand the mechanism behind ObjectIdentifier::updateLabelReference().

I imagine that it is called when some object changes its label. In this case, the ObjectIdentifier components need to be updated. Is this right?

If this is right, which kinds of components are updated? Arrays are updated? Maps? Simple components? Range components?

What about "expressions"? Some expressions generate components. Do those need to be updated? Will they be overwritten when the expression is reevaluated?

I will ping @eivindkvedalen ... I am sorry to bother you! Please, let me know if you don't want to be pinged. :-)
Post Reply