Flamingo & Dodo workbench(s) discussion thread

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Faroghar
Posts: 1
Joined: Sun Nov 28, 2021 5:32 pm

Re: Flamingo (Workbench) discussion thread

Post by Faroghar »

oddtopus wrote: Sat Jun 06, 2020 5:11 pm
SmittyBits wrote: Sat Jun 06, 2020 9:13 am .. asking if it is possible to edit the profiles using LibreOffice E.g. Particularly the pipe definitions. Manufacturers in our part of the world have somewhat different standards and it would be great to create Australian standard parts/profiles and contribute to the dodo workbench in that manner.
Hi, I'm proud to say that this possibility has been envisaged from beginning. You can read how to do in this old tutorial.

quote

All dimensions of pipes, flanges, elbows etc. are saved in the /Mod/flamingo/tables directory (or /Mod/dodo/tablez) in csv files. You can modify them and also create your own files, following few rules: after that you will find automatcally the new dimensions table in the "Insert a.." dialog in FreeCAD.
  • The files must be comma-separated-values type, with semicolon as delimiter.
  • The names of the file must start with the kind of piping object ("Pipe" "Elbow" "Flange"...) followed by an underscore and the name of it's pressure-rating class, that will be shown in the right list of the dialog above.
  • The file must contain the table of dimensions of tubes, being the first row of the table the names of properties as defined in the relevant class in pipeFeatures.py (read the automatic documentation of classes with the menu path Help -> Automatic Python documentation for the name of the fields and their meaning).
It's even simpler to just copy one of the existing files in the same folder, rename it and change values.

unquote
Hi oddtopus, i'm a Revit user for HVAC and i really liked what you have managed to do in FreeCAD.

I would like to be able to work without Revit directly in IFC format, i'm for now a total novice, that's why i would like your feedback.
I know that there is some ressources sharing between FreeCAD and Blender and i would like to know if you think it would be possible to do transfer your work in blender (BlenderBIM)?

In 3.0 there will be an asset manager and i think it could be possible to have all the different pipes and duct etc stored or even in .csv and call them on a path with a script or even activate a script continuously (an operator ?) to draw directly a pipe, duct, etc...

Thanks for your input.

Best Regards.
User avatar
johnwang
Veteran
Posts: 1382
Joined: Sun Jan 27, 2019 12:41 am

Re: Flamingo & Dodo workbench(s) discussion thread

Post by johnwang »

Hi,

AddOn manager doesn't work on my pc, so I just downloaded from Github as zip and unziped under Mod folder.

When fc starts, I got this error and can't found it in the wb list:

Code: Select all

During initialization the error "No module named 'DraftSnap'" occurred in G:\bjFreeCAD\Mod\flamingo\InitGui.py
Any idea?

Regards,

John

------------------------------------------------------------------------------------------------------
Edit:

After remove this line in Mod\flamingo\InitGui.py:

Code: Select all

  #import DraftSnap
I can see the wb on the list now. Will try some pipe functions.

------------------------------------------------------------------------------------------------------
Edit 2:

Just remembered, I'd better use DODO.
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Flamingo & Dodo workbench(s) discussion thread

Post by Kunda1 »

Flamingo has been deprecated in favor of Dodo.
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
oddtopus
Posts: 142
Joined: Tue Sep 20, 2016 6:17 pm

Re: Flamingo & Dodo workbench(s) discussion thread

Post by oddtopus »

Hi, I just patched Dodo to eliminate the warning about a syntax deprecation using addExtension method but i can not get rid of the following that appears when I insert a PypeBranch:
10:44:04 96.107 <App> Document.cpp(3546): Senza_nome#Tubo still touched after recompute
10:44:04 96.1071 <App> Document.cpp(3546): Senza_nome#Tubo001 still touched after recompute
10:44:04 96.1072 <App> Document.cpp(3546): Senza_nome#Curva still touched after recompute
10:44:04 96.1862 <App> Document.cpp(3546): Senza_nome#Tubo still touched after recompute
10:44:04 96.1863 <App> Document.cpp(3546): Senza_nome#Tubo001 still touched after recompute
10:44:04 96.1864 <App> Document.cpp(3546): Senza_nome#Curva still touched after recompute
I searched already posts talking about this but I still don't figure out how they can apply to my case.

Does anybody have a hint?

Also, in the example above, I draw a Wire with 2 segment, then I create on it the PypeBranch. The result in the tree view seems correct because 2 pipes and 1 curve are created but it seems they are badly rendered in the graphic window, as they are drawn twice in the same position...
User avatar
adrianinsaval
Veteran
Posts: 5551
Joined: Thu Apr 05, 2018 5:15 pm

Re: Flamingo & Dodo workbench(s) discussion thread

Post by adrianinsaval »

Does the object have any expression assigned?
oddtopus
Posts: 142
Joined: Tue Sep 20, 2016 6:17 pm

Re: Flamingo & Dodo workbench(s) discussion thread

Post by oddtopus »

adrianinsaval wrote: Sun Jul 10, 2022 4:57 pm Does the object have any expression assigned?
Hi, the code is in file pFeatures.py, lines 554 and forward for the object itself and line 496 and forward for the viewprovider.
paullee
Veteran
Posts: 5119
Joined: Wed May 04, 2016 3:58 pm

Re: Flamingo & Dodo workbench(s) discussion thread

Post by paullee »

Just installed on the latest FC 0.20, run the FrameBranchManager, click OK and return error :)

Code: Select all

12:02:46  Traceback (most recent call last):
  File "/home/paullee/.local/share/FreeCAD/Mod/dodo/fFeatures.py", line 684, in execute
    beam.AttachmentOffset.Rotation=FreeCAD.Rotation(Z,angle+beam.spin)
<class 'AttributeError'>: 'FeaturePython' object has no attribute 'spin'
12:02:46  Recompute failed! Please check report view.
Test_ Dodo_ 2_ FrameBranchManager_Error.FCStd
(24.36 KiB) Downloaded 25 times
Screenshot from 2022-07-30 11-57-01.png
Screenshot from 2022-07-30 11-57-01.png (219.74 KiB) Viewed 1560 times

Code: Select all

OS: Fedora Linux 36 (Workstation Edition) (GNOME/gnome)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods: 
  * dodo
  * DynamicData 2.46.0
  * ArchTextures
User avatar
mwlandolsi
Posts: 135
Joined: Sun Jan 31, 2021 10:49 pm

Re: Flamingo & Dodo workbench(s) discussion thread

Post by mwlandolsi »

paullee wrote: Sat Jul 30, 2022 4:05 am Just installed on the latest FC 0.20, run the FrameBranchManager, click OK and return error :)

Code: Select all

12:02:46  Traceback (most recent call last):
  File "/home/paullee/.local/share/FreeCAD/Mod/dodo/fFeatures.py", line 684, in execute
    beam.AttachmentOffset.Rotation=FreeCAD.Rotation(Z,angle+beam.spin)
<class 'AttributeError'>: 'FeaturePython' object has no attribute 'spin'
12:02:46  Recompute failed! Please check report view.
Test_ Dodo_ 2_ FrameBranchManager_Error.FCStd


Screenshot from 2022-07-30 11-57-01.png

Code: Select all

OS: Fedora Linux 36 (Workstation Edition) (GNOME/gnome)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods: 
  * dodo
  * DynamicData 2.46.0
  * ArchTextures
Got the same error with freecad 0.21

Code: Select all

OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.29840 (Git) Snap 174
Build type: Release
Branch: master
Hash: 1b5285bebd888b2926a890a8ba9dc837ad64dfeb
Python 3.8.10, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods: 
  * Assembly3 0.11.3
  * dodo
  * lattice2 1.0.0
  * sheetmetal 0.2.52
  * frame 0.1.0
  * CurvedShapes 1.0.4
  * fcgear 1.0.0
  * fasteners 0.3.50
  * Render 2022.2.0
  * Curves 0.5.2
oddtopus
Posts: 142
Joined: Tue Sep 20, 2016 6:17 pm

Re: Flamingo & Dodo workbench(s) discussion thread

Post by oddtopus »

paullee wrote: Sat Jul 30, 2022 4:05 am Just installed on the latest FC 0.20, run the FrameBranchManager, click OK and return error :)
Hi, I downloaded your file and run the same command in the same release of FreeCAD but it worked smoothly on my system:

Code: Select all

OS: Linux Mint 20.2 (MATE/mate)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: Italian/Italy (it_IT)
Installed mods: 
  * sheetmetal 0.2.51
  * dodo
  * Assembly4 0.12.2
Since I recently patched few lines, can you try to update the workbench?
paullee
Veteran
Posts: 5119
Joined: Wed May 04, 2016 3:58 pm

Re: Flamingo & Dodo workbench(s) discussion thread

Post by paullee »

oddtopus wrote: Sat Jul 30, 2022 4:52 pm Since I recently patched few lines, can you try to update the workbench?
Curiously, nothing to update even I force add-on manager to refresh. In fact, I just install the other day. :roll:



Screenshot from 2022-07-31 02-03-49.png
Screenshot from 2022-07-31 02-03-49.png (21.14 KiB) Viewed 1435 times
Screenshot from 2022-07-31 02-09-31.png
Screenshot from 2022-07-31 02-09-31.png (14.24 KiB) Viewed 1435 times
Post Reply