Links
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Links
Noticed one problem. But I haven't yet re-built your latest advance about selection, so it might be fixed already.
1. Create a Part, Body, Sketch, Pad
2. Create App::Link of Part (I'm using Part-o-magic's link creation button).
3. Hide Part (the link remains visible).
4. Click free space to clear selection. Click the shape (a subshape of Link is selected).
5. Click Part in tree view
expected: link should lose selection; Part should become the only selection.
observed: Part is added to selection, as if I was holding Ctrl.
(use View->Panels->Selection View to see the problem)
1. Create a Part, Body, Sketch, Pad
2. Create App::Link of Part (I'm using Part-o-magic's link creation button).
3. Hide Part (the link remains visible).
4. Click free space to clear selection. Click the shape (a subshape of Link is selected).
5. Click Part in tree view
expected: link should lose selection; Part should become the only selection.
observed: Part is added to selection, as if I was holding Ctrl.
(use View->Panels->Selection View to see the problem)
-
- Veteran
- Posts: 2190
- Joined: Tue Jan 03, 2017 10:55 am
Re: Links
For App::LinkPy, I've just added an attribute named Placement as an alias of LinkPlacement. Will that be enough for Python?DeepSOIC wrote:Almost ported assembly2... Dang. App::Link has LinkPlacement, not Placement. Why!
It should have been fixed. But I can still occasionally get stray selection which can't be easily reproduced. So there may still some problem there.DeepSOIC wrote:Noticed one problem. But I haven't yet re-built your latest advance about selection, so it might be fixed already.
Re: Links
Sounds good but:DeepSOIC wrote:I was about to roll out a mini assembly workbench based on your App::Link...
+1Maybe porting Assembly2 will be easier, hmm...
Pics or it didn't happen! And likely Lattice2 could make heavy use of App::Link?Almost ported assembly2...
Re: Links
C'mon. Out of all places you just can't get stuck in placement!DeepSOIC wrote:As I said, I got stuck in LinkPlacement vs Placement and went no further =(
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Links
Ok, ok...triplus wrote:C'mon
Maybe, I'll try...realthunder wrote:For App::LinkPy, I've just added an attribute named Placement as an alias of LinkPlacement. Will that be enough for Python?
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Links
crash.
1. Open: 2. Run:
-> crash
Maybe I need a clean build...
1. Open: 2. Run:
Code: Select all
App.ActiveDocument.Part_i000.getSubObject("Body")
Maybe I need a clean build...
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Links
clean build, still crashes.
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11038 (Git)
Build type: Debug
Branch: (HEAD detached at realthunder/Link)
Hash: 9145cda37f6cdcddfef31f9fda6cfc2f84ccc122
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11038 (Git)
Build type: Debug
Branch: (HEAD detached at realthunder/Link)
Hash: 9145cda37f6cdcddfef31f9fda6cfc2f84ccc122
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
-
- Veteran
- Posts: 2190
- Joined: Tue Jan 03, 2017 10:55 am
Re: Links
Fixed. Please check. Also, in case you've missed it, I've since modified getSubObject such that it works on plain geo group as well.DeepSOIC wrote:clean build, still crashes