Search found 3 matches
- Tue Jul 05, 2022 1:53 am
- Forum: Python scripting and macros
- Topic: How to set name from copyobject
- Replies: 1
- Views: 379
How to set name from copyobject
I have a freecad script which creates a template object, then executes a copyObject -> getSelection object. This works great for multiple objects where I can create an object, specifying the name to use. It fails in the case of one object, which won't let me change the copyObject's name. NOTE: FreeC...
- Sat Jan 01, 2022 6:20 pm
- Forum: Python scripting and macros
- Topic: reading spreadsheet cell
- Replies: 12
- Views: 3397
Re: reading spreadsheet cell
You can rename your spreadsheet or you can create it from script. Here's a blerb from my code: def set_spreadsheet(): Gui.activateWorkbench("SpreadsheetWorkbench") App.activeDocument().addObject('Spreadsheet::Sheet','s1') #Unit Dimensions cell = 1 App.getDocument(documentName).s1.set( 'A'+...
- Fri Jun 07, 2019 4:33 am
- Forum: Help on using FreeCAD
- Topic: Ticket #4003 - Spreadsheet rename fails in v0.18
- Replies: 4
- Views: 1037
Ticket #4003 - Spreadsheet rename fails in v0.18
Summary: Renaming spreadsheet no longer has any affect on field tags. Description: I have one computer with v0.17 and I can reliably change the Spreadsheet. Typically I rename it to 'S' for less typing. On my other computer which I just upgraded to v0.18 I can no longer reference tags by my typical ...