Replies: 1 comment 7 replies
-
With regards to the ribbon, in AutoCAD, I make ribbon panels with the CUI command. I’ve done it once with BricsCAD, I think it’s possible to save the partial CUI, Icon, and other resources in a zip, load them with your python application. The benefit of a CUI is, you can add Menu, toolbar, and Quad entries. Maybe consider using the CUI? To wrap, it’s around 20 or so classes. I will look at BcUiPanel, BcUiPanelMFC, also not trivial, but I think I can reuse some of the code from Palettes. There’s some caveats, like in the sample (see MyPanel), the interface is a wxPython wx.Panel. The issue is, there’s no dark mode, I kind of fake it with method set_dark_mode. To make feature rich GUIs, you will want to invest (time) in a GUI toolkit that will generate XRC (wxWidgets' XML resources) code. There are a couple free ones listed here https://www.wxpython.org/ I use http://www.anthemion.co.uk/dialogblocks/ it seems its been retired. |
Beta Was this translation helpful? Give feedback.
-
Hi @CEXT-Dan,
BCAD provides panels in their user interface. For me as a user they are the approach to add functionality to their ribbon interface. I guess it would be cool to be able to extend the BCAD interface with Python-based modules. I would admire a panel add-on as a testcase and (if one day capable enough) for example a table editor to show and modify alignment info. Functionality is likely to be limited to BCAD only.
How to read info from alignments has been resolved here.
When studying the SDK (with my limited skills) I figure that BRX25.1.05.0\inc\BrxSpecific\BcUiPanel.h might be central to adding a panel. I figure that PyBrx might be the right place to extend possibly with PyBrxPanel. If this is possible in combination with wx or whether qt is required is above my head. There is further available in BRX25.1.05.0\inc\BrxSpecific\ribbon which from my understanding steers the top ribbon.
Please evaluate although I understand there might be more important tasks to tackle.
Best
Seb
Beta Was this translation helpful? Give feedback.
All reactions