Awesome, thank you very much!edwilliams16 wrote: ↑Thu May 06, 2021 1:39 am The internal name is unique. The label you assign need not be - though it would be a good idea if you are going to script with it.
If you hover over an object in the 3D or tree view, you'll see its internal name at the left bottom edge of the screen.
Or you might find selection view useful: https://wiki.freecadweb.org/Selection_view
Using the python console with the label is a bit more cumbersome.
The getObjectsByLabel() method returns a list (not necessarily unique, remember) - the [0] picks off the first itemCode: Select all
obj = App.ActiveDocument.getObjectsByLabel("myLabel")[0] obj. # will give possible completions - properties and methods
Typing App.ActiveDocument all the time is also tedious.
will allow you to refer to it as DOCCode: Select all
DOC = App.ActiveDocument
Referencing X,Y, Z coordinate of another object in formula editor.
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: Referencing X,Y, Z coordinate of another object in formula editor.
Re: Referencing X,Y, Z coordinate of another object in formula editor.
If you want to investigate something iin the Python console, you can select it in the tree and use Edit->Send to Python console. Some objects even have it in their context menu.
Off topic:
Off topic:
The helpers are rewarded by a nice thank you , and quoting notifies the quotee. But in general don't quote whole messages, just the relevant part of it. It keeps topics smaller and easier to follow.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Referencing X,Y, Z coordinate of another object in formula editor.
Sure, thanks Chris!