Search found 4 matches

by lll
Tue May 15, 2018 1:01 pm
Forum: Python scripting and macros
Topic: Open Import Dialog from macro
Replies: 1
Views: 445

Open Import Dialog from macro

Hey people,

is there a simple method to open the "import..." file chooser in a macro or the python console?
Thanks for your intrest.
by lll
Mon Apr 16, 2018 1:38 pm
Forum: Python scripting and macros
Topic: SubObjects of Selected Paths
Replies: 1
Views: 507

SubObjects of Selected Paths

Hey,

I want to access a selected point of a path. Like

Code: Select all

Point = Gui.Selection.getSelectionEx()[0].SubOjects[0]
But SubObjects is empty. If I try:

Code: Select all

 Gui.Selection.getSelectionEx()[0].SubElementNames 
It returns: ('1043 G01 A-82.8493 C-26.7898 X-17.8165 Y45.4607 Z17.459',)

Thanks for your help
by lll
Mon Apr 09, 2018 11:36 am
Forum: Python scripting and macros
Topic: Moving Part by press on Button
Replies: 3
Views: 497

Re: Moving Part by press on Button

microelly2 wrote: Mon Apr 09, 2018 9:06 am insert somewhere inside the macro after the move:
Thanks that works.

But I got a 2nd question now. While the macro is running, that means, as long as the qtui is open, i can't do anything else in FreeCAD. But it would be nice, if I could change the view, while the script is running.
by lll
Mon Apr 09, 2018 9:05 am
Forum: Python scripting and macros
Topic: Moving Part by press on Button
Replies: 3
Views: 497

Moving Part by press on Button

Hey,

I wrote a simple makro, with a UI. By a press on a button, the activeObject moves to a certain point. The problem is that you can see that change not before the makro is finished. Is there any way to see the change while running?

Best Regards