Get spreadsheet cell name after alias has been assigned

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Aleks
Posts: 309
Joined: Sun Mar 08, 2020 5:27 pm
Location: Bonn, Germany
Contact:

Get spreadsheet cell name after alias has been assigned

Post by Aleks »

I couldnt find the answer to that problem when I had it. Because I have solved it now, I am creating this forum post to hopefully help someone in the future.

To get the cell name (A1, A2,...B1,B2,....) after you have assigned an alias to that cell you have to do the following:

Code: Select all

FreeCAD.getDocument(<your document>).<your spreadsheet internal name>.getCellFromAlias(<your alias>)

this wil return the initial cell name.
FreeCAD als Maschinenbauer in die Konstruktion und Fertigung integrieren. Schulung buchen: www.alsado.de/freecad-schulungen
Post Reply