Assembly 4 workbench

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly 4 workbench

Post by Zolko »

Hello, I just released a new incremental version 0.12.6 with small fixes, nothing spectacular but all over the place. Please update, test and report if you have problems
try the Assembly4 workbench for FreCAD — tutorials here and here
User avatar
rmn_hr
Posts: 110
Joined: Sun Jun 26, 2022 7:54 pm

Re: Assembly 4 workbench

Post by rmn_hr »

Zolko wrote: Sun Feb 26, 2023 12:07 pm ... new incremental version 0.12.6 ...
changed the ASM4-version from 0.12.5 to 0.12.6 in my FC-setup without problems handling assemblies built with 0.12.5
I don't use BOM or PartInfo - for this reason no experience with this section of ASM4

But in version 0.12.6 there is a new warning at initialization
ASM4_0126_WarningAtInit.JPG
ASM4_0126_WarningAtInit.JPG (17.44 KiB) Viewed 3291 times

Some older warnings on Observer-start are still there
ASM4_0126_WarningStartObserver.JPG
ASM4_0126_WarningStartObserver.JPG (21.48 KiB) Viewed 3291 times

Besides this warnings ASM4 0.12.6 and your measurement tool are working well.
Thank you for your marvellous assembly-tool

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.31917 (Git)
Build type: Release
Branch: master
Hash: 4639283b459f9ff9093e289908cc003db8745b82
Python 3.10.9, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Austria (de_AT)
Installed mods: 
  * AddonManager
  * Assembly4 0.12.6
  * Draft
  * Fem
  * Idf
  * Image
  * Import
  * Mesh
  * MeshPart
  * Part
  * PartDesign
  * SetMyStyle
  * Show
  * Sketcher
  * Spreadsheet
  * Start
  * TechDraw
  * Tux
  * Web
My workflow: create single components in PartDesign and arrange them with Zolko's Assembly4
(https://github.com/Zolko-123/FreeCAD_Assembly4 )

FreeCAD works pretty well and stable for me !! :)
Hymn of Praise valid again since FreeCAD 0.22.35449
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly 4 workbench

Post by Zolko »

rmn_hr wrote: Mon Feb 27, 2023 8:39 am But in version 0.12.6 there is a new warning at initialization
yes, this is new and in order

Some older warnings on Observer-start are still there
ASM4_0126_WarningStartObserver.JPG
I don't see these, when does it happen ?

Besides this warnings ASM4 0.12.6 and your measurement tool are working well.
Thank you for your marvellous assembly-tool
thank-you for your kind words
try the Assembly4 workbench for FreCAD — tutorials here and here
User avatar
rmn_hr
Posts: 110
Joined: Sun Jun 26, 2022 7:54 pm

Re: Assembly 4 workbench

Post by rmn_hr »

Some older warnings on Observer-start are still there
ASM4_0126_WarningStartObserver.JPG
I don't see these, when does it happen ?
This warning is reported whenever I start the measurement-tool. The Measure-form opens in the Combo-View 'Tasks'-panel and simultaneously is this warning in Report View.

I assume there is an issue with window-handling in new builds - there is Qt 5.15.6 now and I recognized similar strange behaviour with QtWebEngine before
viewtopic.php?f=3&t=75439.

The QtWebEngine-warning can be silenced by not activating Start-Workbench.
Still remaining are warnings when ASM4-Measurement is activated and whenever one or more panels of ComboView-combined window (means following configuration)
ComboView-allPanels.JPG
ComboView-allPanels.JPG (26.26 KiB) Viewed 3049 times
are placed adjacent to ComboView-window or relocated out of ComboView ->
ComboView-separatedPanels.JPG
ComboView-separatedPanels.JPG (56.16 KiB) Viewed 3049 times
Here 'ReportView' separated (first warning) and repositioned three times (next three warnings)

Similar is the situation with the Measure-Panel -> new panel leads to warning about layout issues.
And the big Q is leading letter -> QLayout or QMainWindowLayout.

Don't know what it is, but it seems to be a (window??) layout thing ;)

At least I can't see any influence on functionality of FreeCAD or ASM4 - everything is working well.
My workflow: create single components in PartDesign and arrange them with Zolko's Assembly4
(https://github.com/Zolko-123/FreeCAD_Assembly4 )

FreeCAD works pretty well and stable for me !! :)
Hymn of Praise valid again since FreeCAD 0.22.35449
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly 4 workbench

Post by Zolko »

rmn_hr wrote: Thu Mar 02, 2023 10:56 pm The Measure-form opens in the Combo-View 'Tasks'-panel and simultaneously is this warning in Report View.

whenever one or more panels of ComboView-combined window

are placed adjacent to ComboView-window or relocated out of ComboView
Ah so it's a ComboView thing ... I use separated Task, Tree and Property views. The ComboView must have some additional QLayout thingy somewhere around. I'll try to give it a try.

In the meanwhile, in order to check that this is indeed the problem, could you please test your same setup by separating the ComboView:

Edit > Preferences > General > Tree View Mode > Tree View and Property View

Screenshot_20230303_093113.png
Screenshot_20230303_093113.png (214.64 KiB) Viewed 2982 times
try the Assembly4 workbench for FreCAD — tutorials here and here
User avatar
rmn_hr
Posts: 110
Joined: Sun Jun 26, 2022 7:54 pm

Re: Assembly 4 workbench

Post by rmn_hr »

Zolko wrote: Fri Mar 03, 2023 8:34 am
Ah so it's a ComboView thing ... I use separated Task, Tree and Property views. The ComboView must have some additional QLayout thingy somewhere around. I'll try to give it a try.

In the meanwhile, in order to check that this is indeed the problem, could you please test your same setup by separating the ComboView:

Edit > Preferences > General > Tree View Mode > Tree View and Property View
Changed the setting to 'Tree View and Property' and split up the Combo View in six standalone panel-windows.
As long as this panels are standalone each of them can be dragged, resized and joined with another window without any warnings !!!
PanelsStandalone.JPG
PanelsStandalone.JPG (117 KiB) Viewed 2910 times

Dragging one panel out of a joined configuration causes this QMainWindowLayout-warning again. Each movement of this panel is an additional warning in 'Report View', the 'hosting' window can be moved without warnings.

An example: 'Pyhton console' and 'Property view' are combined in one common window, dragging out e.g. 'Phyton consol' causes a warning, moving this (now standalone) panel -> next warning and so on, dragging 'Property view' - now a standalone panel also - no warning in 'report view'

Maybe this 'out-of-bounds value' is related to the window-boundaries of the former 'home' of the dragged-out panel.

When I ended with the panel layout shown above, closed FC and started again for a 'new session' I got this error in 'Report view' and 'Tree view' panel is messed up.
PanelsStandalone_restart.JPG
PanelsStandalone_restart.JPG (91.55 KiB) Viewed 2910 times

Hopefully this tests will help you.


By the way:
splitting up the panels showed that the 'Combo View' is at least the 'Tasks' panel - I found this naming a bit confusing.

I've understood ComboView as the combination of TreeView and PropertyView with Tasks-panel on 'second page'
Changing the preferences away from ComboView it is odd-looking when ComboView-window is still there.

Not a big issue for me - I join Property-, Tree- and Tasks-panel back to ComboView. For me the maximum useful configuration
My workflow: create single components in PartDesign and arrange them with Zolko's Assembly4
(https://github.com/Zolko-123/FreeCAD_Assembly4 )

FreeCAD works pretty well and stable for me !! :)
Hymn of Praise valid again since FreeCAD 0.22.35449
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly 4 workbench

Post by Zolko »

rmn_hr wrote: Fri Mar 03, 2023 6:16 pm Changed the setting to 'Tree View and Property' and split up the Combo View in six standalone panel-windows.
...
Dragging one panel out of a joined configuration causes this QMainWindowLayout-warning again. Each movement of this panel is an additional warning in 'Report View'
so this is not caused by the Asm4 Measurement tool ?
try the Assembly4 workbench for FreCAD — tutorials here and here
User avatar
rmn_hr
Posts: 110
Joined: Sun Jun 26, 2022 7:54 pm

Re: Assembly 4 workbench

Post by rmn_hr »

Your ASM4 measurement tool creates a different warning - my guess: using the 'Tasks'-panel for selecting the measurement mode and displaying results requests some window-actions within the 'Tasks'-panel and Qt is missing something.

I guess that anything has changed in Qt since Qt 5.15.4 (Qt version in weekly build 31513) or maybe in Python 3.10 (changed from Py 3.10.8 to Py 3.10.9) or in interaction - I have no idea.

The reasons for this warnings are not originated in ASM4-measurement-tool -> I'm very sure about this.
Only warning about 'Pylib anytree missing' and 'exportFiles not available' are ASM4 v0.12.6-related.

I used ASM4 v0.12.5 in several builds even before 31513 - never any warnings.
Then came Qt 5.15.6 (weekly build 31625 - here I observed it first)) and warnings regarding layout of ComboView panels (including the ASM4 measurement form) and this QtWebEngine-issue with the 'Start' workbench were there.

It must be a Qt-theme

Thankfully only layout warnings - no influence on FreeCAD-performance
My workflow: create single components in PartDesign and arrange them with Zolko's Assembly4
(https://github.com/Zolko-123/FreeCAD_Assembly4 )

FreeCAD works pretty well and stable for me !! :)
Hymn of Praise valid again since FreeCAD 0.22.35449
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly 4 workbench

Post by Zolko »

rmn_hr wrote: Fri Mar 03, 2023 8:38 pm Only warning about 'Pylib anytree missing' and 'exportFiles not available' are ASM4 v0.12.6-related.
yes, this is new, I'll transform it into a simple message
try the Assembly4 workbench for FreCAD — tutorials here and here
gabriel.b
Posts: 9
Joined: Sat Jan 01, 2022 7:09 pm
Location: Germany

Re: Assembly 4 workbench

Post by gabriel.b »

Hello Zolko,

Many thanks for your efforts. I'm trying to figure out if I can switch from SW to FC and therefore I want to see the power of A4 WB.
I use
OS: Ubuntu 22.04.2 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29603 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20.2)
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods:
* Assembly4 0.12.6
* Curves 0.6.8
* frame 0.1.0
* Help 1.0.3
* Silk 1.0.0
* PieMenu 1.2.6
* Manipulator 1.5.0
* ProDarkThemePreferencePack 1.0.0
* lattice2 1.0.0

When I try to make a BOM, I have the messages:
ASM4 WARNING: Pylib anytree is missing, exportFiles is not available
Some file is missing - please see the attached photo.

At work I installed also the FC 0.20.2 on Windows 10 and I have the same issue.

Kind regards

Gabriel
Attachments
Assembly $ BOM error.jpg
Assembly $ BOM error.jpg (100.22 KiB) Viewed 2437 times
Last edited by gabriel.b on Thu Mar 16, 2023 12:43 pm, edited 1 time in total.
Post Reply