[Macro] Bit of help for super users :)

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: [Macro] Bit of help for super users :)

Post by adrianinsaval »

I think not, but if put in addon manager it would be best to have with the auto load stuff
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [Macro] Bit of help for super users :)

Post by openBrain »

Kunda1 wrote: Sun Apr 17, 2022 1:44 pm Totally forgot about this macro!
Was this ever added to FreeCAD-macros repo? (or made available through the addon manager?)
I start building it as a WB so it's easier to install, also fixing bugs and adding/merging some features inside. I didn't have had so much time lately, but hopefully I can end it in the coming months. ;)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Macro] Bit of help for super users :)

Post by Kunda1 »

Nice!
Do you have a public branch that you're open to sharing and would you accept PRs?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [Macro] Bit of help for super users :)

Post by openBrain »

Kunda1 wrote: Tue Apr 19, 2022 8:47 pm Nice!
Do you have a public branch that you're open to sharing and would you accept PRs?
Public repo is here (dev branch) : https://github.com/0penBrain/FCsuWB/tree/dev
Feel free to PR anyone.
User avatar
paddle
Veteran
Posts: 1392
Joined: Mon Feb 03, 2020 4:47 pm

Re: [Macro] Bit of help for super users :)

Post by paddle »

openBrain wrote: Mon Apr 25, 2022 8:03 am Hi
The slider seems rather polished and useful.
Why has it not been merged in master rather than in a macro?
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [Macro] Bit of help for super users :)

Post by openBrain »

paddle wrote: Mon Jun 20, 2022 3:06 pm The slider seems rather polished and useful.
Why has it not been merged in master rather than in a macro?
Explained there : https://forum.freecadweb.org/viewtopic. ... 87#p603787
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: [Macro] Bit of help for super users :)

Post by chrisb »

@openBrain, since some time copying of the FreeCAD infos doesn't work anymore. The info dialog opens but the infos aren't copied nor is the dialog closed again.

I used it quite often, it's probably my most frequently used macro when I'm busy in the forum.

Is there any possibility to get it back :mrgreen: :mrgreen: ?

It still worked in this version, where I used it to copy the following:

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.0.32198 (Git)
Build type: Release
Branch: master
Hash: f51b2156f35399cab38eef1e957a59ad5a11de66
Python 3.10.9, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * FC_SU
  * freecad.gears 1.0.0
  * FeedsAndSpeeds 0.5.0
  * dxf-library
  * fcgear 1.0.0
  * fasteners 0.4.59
  * sheetmetal 0.2.62
  * ExplodedAssembly
  * Curves 0.6.8
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [Macro] Bit of help for super users :)

Post by openBrain »

chrisb wrote: Thu Sep 14, 2023 5:41 am @openBrain, since some time copying of the FreeCAD infos doesn't work anymore. The info dialog opens but the infos aren't copied nor is the dialog closed again.
Hi, not sure exactly what version of FCSU you are using (you may ignore it yourself as it was not properly versioned :) ).

May you be kind to test this code to check it works (it is supposed to copy the FC infos in the clipboard):

Code: Select all

from PySide2 import QtCore, QtWidgets
import FreeCADGui as Gui

class AboutInfo(QtCore.QObject):
    def eventFilter(self, obj, ev):
        if obj.metaObject().className() == 'Gui::Dialog::AboutDialog':
            if ev.type() == ev.ChildPolished:
                copyBut = obj.findChild(QtWidgets.QPushButton, 'copyButton')
                if copyBut:
                    QtWidgets.QApplication.instance().removeEventFilter(self)
                    copyBut.click()
                    QtCore.QMetaObject.invokeMethod(obj, 'reject', QtCore.Qt.QueuedConnection)
        return False
                
def getFCInfo():
    ai=AboutInfo()
    QtWidgets.QApplication.instance().installEventFilter(ai)
    Gui.runCommand('Std_About')
    del ai

getFCInfo()
Maybe you're even able to find in the FCSU where is this function and replace the code, till I'll update the FCSU WB. :)
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: [Macro] Bit of help for super users :)

Post by chrisb »

openBrain wrote: Thu Sep 14, 2023 5:13 pm May you be kind to test this code to check it works (it is supposed to copy the FC infos in the clipboard):
It works again! Thank you very much!

Sidenote: There are additional blanks in the empty line before def getFCInfo():. These are a problem if the code is executed in the console.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply