Search found 86 matches

by Chri1
Wed Dec 06, 2023 6:14 pm
Forum: Python scripting and macros
Topic: In Spreadsheet: Store and get back a python-list
Replies: 3
Views: 958

Re: In Spreadsheet: Store and get back a python-list

Finally it works, these were the problems: attr=eval(App.ActiveDocument.Spreadsheet.B2) caused SyntaxError because of Quantity: It does not like ... ['FontSize', 500.0 mm]] and getPropertyByName results in ['FontSize', 500.0 mm] Solution before writing in Cell: ... was=quelle.getPropertyByName(ding)...
by Chri1
Tue Dec 05, 2023 11:25 am
Forum: Python scripting and macros
Topic: In Spreadsheet: Store and get back a python-list
Replies: 3
Views: 958

In Spreadsheet: Store and get back a python-list

Hi My Macro loops through the properties of an object and produces something like: attr = [['LineColor', (0.6274510025978088, 0.6274510025978088, 0.6274510025978088, 0.0)], ['LineWidth', 0.0], ['FontName', 'MS Shell Dlg 2'], ['FontSize', 500.0 mm]] This is stored in a cell of a spreadsheet: App.Acti...
by Chri1
Mon Aug 07, 2023 3:20 pm
Forum: Forum in Deutsch
Topic: Sonnenstands/Verschattungssimulation
Replies: 1
Views: 348

Sonnenstands/Verschattungssimulation

Hi
Gibt es ein Addon für Sonnenstands/Verschattungssimulation?

LG
Chri1
by Chri1
Fri Jul 14, 2023 11:34 am
Forum: Python scripting and macros
Topic: search object by given point
Replies: 1
Views: 276

search object by given point

Hi
I have several objects and a given point that lies on one of the objects and I want to find out, on which of them.
Have I to iterate through all objects and ask, wheather they touch or is there one easier solution

Thanks
chr1
by Chri1
Sat Jul 08, 2023 9:35 am
Forum: Python scripting and macros
Topic: DocumentObjectGroupPython - onchange
Replies: 2
Views: 455

Re: DocumentObjectGroupPython - onchange

Thank you, works perfect.
(ChatGPT didn't make it)
by Chri1
Fri Jul 07, 2023 4:59 pm
Forum: Python scripting and macros
Topic: DocumentObjectGroupPython - onchange
Replies: 2
Views: 455

DocumentObjectGroupPython - onchange

Hi
I have a group, made by
Plus=FreeCAD.ActiveDocument.addObject("App::DocumentObjectGroupPython","PLUS")
and I want, that a function doit() is called, whenever something changes in the group (When an Object is added or removed)

Thanks
Chri1
by Chri1
Fri Jun 09, 2023 4:08 pm
Forum: Forum in Deutsch
Topic: Workbench initgui.py
Replies: 0
Views: 1731

Workbench initgui.py

Hi Möchte eine Workbench mit Symbolleisten erstellen, es funktioniert nicht: Die Workbench mit Symbolleisten wird zwar angezeigt, die Symbolleisten sind jedoch leer. initgui.py: class WB1 (Workbench): MenuText = "WB1" ToolTip = "workbench erstellen" Icon = """paste...
by Chri1
Fri Aug 05, 2022 1:19 pm
Forum: Forum in Deutsch
Topic: Symbolleisten übertragen
Replies: 6
Views: 773

Re: Symbolleisten übertragen

Hab mich doch ein wenig damit beschäftigt: 1.) Den entsprechenden Ordner in \AppData\Roaming\FreeCAD\Mod suchen (Der Ordnernamen muss nicht der in FreeCAD angezeigte Workbench-Namen sein!) und auf den Ziel-PC kopieren. Dadurch erscheint die Workbench schon im Ziel-FreeCAD, allerdings leer. Im Ordner...
by Chri1
Fri Jul 29, 2022 4:13 pm
Forum: Forum in Deutsch
Topic: Part: Objekte Verbinden
Replies: 4
Views: 686

Re: Part: Objekte Verbinden

thomas-neemann wrote: Mon Jul 25, 2022 3:08 pm
Chri1 wrote: Mon Jul 25, 2022 2:14 pm ...
kannst du eine beispiel-datei hochladen?
Komme erst in ein paar Tagen bei einem Freecad "vorbei"
by Chri1
Fri Jul 29, 2022 4:09 pm
Forum: Forum in Deutsch
Topic: Part: Objekte Verbinden
Replies: 4
Views: 686

Re: Part: Objekte Verbinden

Ausgangssituation: Ein Gebäude, das aus (tw. überlappenden) Körpern modelliert wurde. Auf manchen Körpern "kleben" Flächen. Ich möchte die Gebäudehülle - so wie sie Verbinden auch liefert, allerdings sollen auch die Flächen berücksichtigt werden. Eine Möglichkeit ist mir zwischenzeitlich e...