integration between ose-piping-workbench and flamingo-wb

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!
User avatar
rus
Posts: 69
Joined: Wed Feb 22, 2017 6:37 pm

Re: integration between ose-piping-workbench and flamingo-wb

Postby rus » Sat Aug 04, 2018 2:08 pm

oddtopus wrote:
Sat Aug 04, 2018 1:37 pm
...
Hi @rus, I think you can refer to functions pipeCmd.portsDir(o) and pipeCmd.portsPos(o), that return an array of Vectors of ports' directions and positions respectively of object "o", respect to the ActiveDocument general origin.
Here directions are defined according the object shape orientation, from the origin of the Shape to the relative position of the port.
If I remember well how I did it, I guess that to place one object respect to a port you can assign to it a

Code: Select all

Placement.Base=pipeCmd.portsPos(o)[i] 
and a

Code: Select all

Placement.Rotation=App.Rotation(<your-reference-direction-vector>,pipeCmd.portsDir(o)[i])
or something like that.
...
Thank you for the explanation! I will try to improve the placment with these functions.
By the way, did you see the last feature "Insert Any Shape"? It can insert any object from a step file (or iges or brep) and assign to it ports like a native pype object.
Try to insert a ball valve from the samples and then use the "Join pypes" tool... ;)
Not yet, but I will try. Thank is very useful.
User avatar
rus
Posts: 69
Joined: Wed Feb 22, 2017 6:37 pm

Re: integration between ose-piping-workbench and flamingo-wb

Postby rus » Sun Dec 02, 2018 11:20 am

I added orientation support to ports. Now it is easier to insert new fittings into another fittings. The orientation shows where is the normal vector of the socket. The normal vector shows out of the fitting. The orientation also has an internal 0-degeree-reference. This reference make the position of the new fitting always unique and well defined. Without the 0-degree-refences the is infinity many way to fit one fitting to enouther, just by rotation of the fitting along the socket's axis.

phpBB [video]
triplus
Posts: 8734
Joined: Mon Dec 12, 2011 4:45 pm

Re: integration between ose-piping-workbench and flamingo-wb

Postby triplus » Thu Dec 06, 2018 6:59 pm

I remember when piping tools for Arch workbench were announced:

https://forum.freecadweb.org/viewtopic.php?f=9&t=17154

Looking at the video. I am guessing we could be looking at the next gen! ;)
User avatar
rus
Posts: 69
Joined: Wed Feb 22, 2017 6:37 pm

Re: integration between ose-piping-workbench and flamingo-wb

Postby rus » Mon Dec 10, 2018 6:13 am

triplus wrote:
Thu Dec 06, 2018 6:59 pm
I remember when piping tools for Arch workbench were announced:

https://forum.freecadweb.org/viewtopic.php?f=9&t=17154

Looking at the video. I am guessing we could be looking at the next gen! ;)
Thanks for remind me to look to Arch. Arch has some features which my workbench does not. I will check whether we can join the forces to create a better piping workbench.
User avatar
rus
Posts: 69
Joined: Wed Feb 22, 2017 6:37 pm

Re: integration between ose-piping-workbench and flamingo-wb

Postby rus » Mon Dec 10, 2018 6:16 am

The calculations for the fitting adjusting is on OSE Germany WIKI https://wiki.opensourceecology.de/OSE_P ... ench_Ports.
triplus
Posts: 8734
Joined: Mon Dec 12, 2011 4:45 pm

Re: integration between ose-piping-workbench and flamingo-wb

Postby triplus » Mon Dec 10, 2018 10:44 am

rus wrote:
Mon Dec 10, 2018 6:13 am
Thanks for remind me to look to Arch.
You're welcome.
Arch has some features which my workbench does not. I will check whether we can join the forces to create a better piping workbench.
Sounds good.
User avatar
Kunda1
Posts: 5764
Joined: Thu Jan 05, 2017 9:03 pm

Re: integration between ose-piping-workbench and flamingo-wb

Postby Kunda1 » Mon Dec 10, 2018 12:57 pm

rus wrote:
Mon Dec 10, 2018 6:13 am
Thanks for remind me to look to Arch. Arch has some features which my workbench does not. I will check whether we can join the forces to create a better piping workbench.
Nice, keep going! I think OSE and FC can do better and greater things for each other.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
rus
Posts: 69
Joined: Wed Feb 22, 2017 6:37 pm

Re: integration between ose-piping-workbench and flamingo-wb

Postby rus » Mon Dec 10, 2018 3:17 pm

Kunda1 wrote:
Mon Dec 10, 2018 12:57 pm
Nice, keep going! I think OSE and FC can do better and greater things for each other.
For sure :) . The essential part of OSE philosophy is that we can share and modify our technical drawings. This is only possible with FC.
Geoplace
Posts: 39
Joined: Tue Feb 26, 2019 9:49 pm

Re: integration between ose-piping-workbench and flamingo-wb

Postby Geoplace » Tue Feb 26, 2019 10:13 pm

Hi

It´s seems that there is a bug between OSE and Flamingo.

I try to replicate exactly what is shwon is in the video:
https://youtu.be/1FBudfRcQv4

When using the Pype Tools>Joint pypes form the Flamingo Workbench to
move the elbow to the pipe but FreeCad flags the next error:

Unhandled unknown exception caught in GUIApplication::notify.

I hope can help test and iron out recent bugs.

OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: Release
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: Spanish/Mexico (es_MX)
User avatar
rus
Posts: 69
Joined: Wed Feb 22, 2017 6:37 pm

Re: integration between ose-piping-workbench and flamingo-wb

Postby rus » Wed Feb 27, 2019 9:42 pm

Geoplace wrote:
Tue Feb 26, 2019 10:13 pm
Hi

It´s seems that there is a bug between OSE and Flamingo.
...
Thank you for your bug report. I will try to reproduce the bug in the next weeks and try to fix it.