Assembly3 preview

Discussion about the development of the Assembly workbench.
User avatar
easyw-fc
Posts: 2589
Joined: Thu Jul 09, 2015 9:34 am

Re: Assembly3 preview

Postby easyw-fc » Wed May 09, 2018 8:05 am

triplus wrote:
Wed May 09, 2018 7:34 am
Any chance you would be prepared to maintain a fork of Assembly 2 for the purpose of Qt5 (and potentially Py3) porting?
If we can get an A2 fork managed by FC folks, we could easy gather some user aimed to do the fix...
And then focus the efforts on A3 :D
triplus
Posts: 8457
Joined: Mon Dec 12, 2011 4:45 pm

Re: Assembly3 preview

Postby triplus » Wed May 09, 2018 8:26 am

realthunder wrote:
Wed May 09, 2018 7:43 am
I'm not sure if I'm up to the task. A2 code is not really documented, and hard to understand. I originally wanted my A3 as a fork of A2, but gave up in the middle of porting. I'm not that good at Python comparing to C++.
Fair enough.
easyw-fc wrote:
Wed May 09, 2018 8:05 am
If we can get an A2 fork managed by FC folks, we could easy gather some user aimed to do the fix...
And then focus the efforts on A3 :D
I know there is demand as threads like this emerge:

https://forum.freecadweb.org/viewtopic.php?f=20&t=28628

There is still development activity involved:

https://forum.freecadweb.org/viewtopic. ... 59#p218959

What is therefore likely missing is somebody managing the pull requests. I tried to came up with a solution that makes some sense. As it didn't happen that is it from my side for now. Will let things evolve naturally. On macOS therefore FreeCAD 0.16 should be used to create assemblies with Assembly 2 for now.
realthunder
Posts: 1032
Joined: Tue Jan 03, 2017 10:55 am

Re: Assembly3 preview

Postby realthunder » Wed May 09, 2018 11:20 am

Can someone please try this attached file, and try to make a draft with the following selected face. I am not familiar with PartDesignNext. I can't seem to select a neutral plane that works.
Screenshot from 2018-05-09 18-58-28.png
Screenshot from 2018-05-09 18-58-28.png (13.91 KiB) Viewed 733 times

The draft angle is 5 degree, and should look like this

Screenshot from 2018-05-09 19-09-30.png
Screenshot from 2018-05-09 19-09-30.png (13.97 KiB) Viewed 733 times

I notice that PartDesign FeatureDraft can guess a neutral plane and pull direction just fine. But the Gui TaskDraftParameters insists on an explicit neutral plane selection. What's more strange is that FeatureDraft is able to derived the neutral plane using the following Edge1? How can it be?

Screenshot from 2018-05-09 19-15-59.png
Screenshot from 2018-05-09 19-15-59.png (14.99 KiB) Viewed 733 times
GlouGlou wrote: ping
This is extracted from your model. How did you manage to get the draft in the first place?
Attachments
pdn-draft-test.fcstd
(64.59 KiB) Downloaded 14 times
Try Assembly3 (latest version 0.10.2) along with my custom build of FreeCAD at here.
And if you'd like to show your support, you can donate through patreon, liberapay, or paypal
Jee-Bee
Posts: 1921
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Assembly3 preview

Postby Jee-Bee » Wed May 09, 2018 3:08 pm

this?
Attachments
pdn-draft-test-answ.FCStd
(55.7 KiB) Downloaded 18 times
User avatar
GlouGlou
Posts: 1457
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Assembly3 preview

Postby GlouGlou » Wed May 09, 2018 5:43 pm

The neutral plane can be like this.
The pull direction is an edge perpendicular of the plan.
Invert the direction as required. ;)
Attachments
Capture.JPG
Capture.JPG (27.46 KiB) Viewed 665 times
DratfGG.FCStd
(55.82 KiB) Downloaded 14 times
realthunder
Posts: 1032
Joined: Tue Jan 03, 2017 10:55 am

Re: Assembly3 preview

Postby realthunder » Mon May 14, 2018 7:53 am

I am currently working on STEP import/export for better assembly usage. And found this interesting document (Edit: just found the latest version of the document). I was searching for some obscure abbreviation found in OCCT data exchange code, and this document perfectly explained what is missing in OCCT documentation.

Specifically, what I found interesting is this,
Screenshot from 2018-05-14 15-21-10.png
Screenshot from 2018-05-14 15-21-10.png (315.62 KiB) Viewed 433 times
Right now, NAUO (Next Assembly Usage Occurrence) can be directly translated to Link. But SHUO (Specific Higher Usage Occurrence) is missing, which is used to override visibility and color of an instance under a specific context. In the above picture, it means change the color of the third instance of Nut-Bot-Assembly in the second instance of L-Bracket-Assembly in the top assembly, AS1.

I think I can extend my Coin3D trick on context-aware selection, and applied it to color and visibility to achieve this.
Try Assembly3 (latest version 0.10.2) along with my custom build of FreeCAD at here.
And if you'd like to show your support, you can donate through patreon, liberapay, or paypal
User avatar
easyw-fc
Posts: 2589
Joined: Thu Jul 09, 2015 9:34 am

Re: Assembly3 preview

Postby easyw-fc » Mon May 14, 2018 9:27 am

realthunder wrote:
Mon May 14, 2018 7:53 am
I am currently working on STEP import/export for better assembly usage. And found this interesting document. I was searching for some obscure abbreviation found in OCCT data exchange code, and this document perfectly explained what is missing in OCCT documentation.

Specifically, what I found interesting is this,

Screenshot from 2018-05-14 15-21-10.png

Right now, NAUO (Next Assembly Usage Occurrence) can be directly translated to Link. But SHUO (Specific Higher Usage Occurrence) is missing, which is used to override visibility and color of an instance under a specific context. In the above picture, it means change the color of the third instance of Nut-Bot-Assembly in the second instance of L-Bracket-Assembly in the top assembly, AS1.

I think I can extend my Coin3D trick on context-aware selection, and applied it to color and visibility to achieve this.
Hi @realthunder,
if you want to make some test here you can find some STEP files generated from different SW and with or without hierarchy.
https://www.cax-if.org/library/index.html

here a test file with hierarchy:
https://www.cax-if.org/library/as1-oc-214.zip
https://www.cax-if.org/library/as1-pe-203.zip
https://www.cax-if.org/library/as1-tu-203.zip

and here a file with external references (similar to what it could be done with your 'Links' pointing to external files)
https://www.cax-if.org/library/s1-c5-214.zip
https://www.cax-if.org/library/s1-pe-214.zip
https://www.cax-if.org/library/s1-tu-203.zip

Hierarchy is already well supported by FreeCAD ATM.
External references are supported only when importing the file, but are not implemented when exporting.
https://www.cax-if.org/documents/rec_pr ... ef_v21.pdf
Links could really make the difference here :D
Maurice
realthunder
Posts: 1032
Joined: Tue Jan 03, 2017 10:55 am

Re: Assembly3 preview

Postby realthunder » Mon May 14, 2018 9:29 am

easyw-fc wrote:
Mon May 14, 2018 9:27 am
Hi @realthunder,
if you want to make some test here you can find some STEP files generated from different SW and with or without hierarchy.
Thanks, much appreciated!
Try Assembly3 (latest version 0.10.2) along with my custom build of FreeCAD at here.
And if you'd like to show your support, you can donate through patreon, liberapay, or paypal
freedman
Posts: 789
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: Assembly3 preview

Postby freedman » Wed May 16, 2018 6:15 am

I just tried assembly3, it looks good but I couldn't select any faces so I really couldn't test much. What is the status of this?

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.13844 (Git)
Build type: Release
Branch: (HEAD detached at FETCH_HEAD)
Hash: 53a08259946dfa0f02bdd02a7746667902e42728
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
Locale: English/UnitedStates (en_US)
realthunder
Posts: 1032
Joined: Tue Jan 03, 2017 10:55 am

Re: Assembly3 preview

Postby realthunder » Wed May 16, 2018 6:33 am

freedman wrote:
Wed May 16, 2018 6:15 am
I just tried assembly3, it looks good but I couldn't select any faces so I really couldn't test much. What is the status of this?
Can you please elaborate your problem? Can you select a face when create, say a Cube, using Part, PartDesign? Does the problem happen only when the object is in the assembly? If you can show show screencast, that will be better.
Try Assembly3 (latest version 0.10.2) along with my custom build of FreeCAD at here.
And if you'd like to show your support, you can donate through patreon, liberapay, or paypal