Search found 237 matches

by project4
Sun Oct 04, 2020 6:20 am
Forum: UX/UI Design
Topic: Multiple dialogs in tasks view
Replies: 9
Views: 1632

Re: Multiple dialogs in tasks view

Thanks. In my case there are too much information to push them all into one dialog. And the information is well divided into "logical" blocks, so I prefer to have separate dialogs. I'm not on the PC where I have the code, will have to check it later if there are several dialogs in the task...
by project4
Sat Oct 03, 2020 5:28 pm
Forum: UX/UI Design
Topic: Multiple dialogs in tasks view
Replies: 9
Views: 1632

Multiple dialogs in tasks view

Hi all, What is the convention for the case where I need to add multiple dialogs into the tasks view panel? How the user should interact with those dialogs? Prev/Next buttons and OK for the last one? Lets say I have a multi-stage task that I want to implement using several dialogs in the tasks view....
by project4
Tue Sep 29, 2020 12:28 pm
Forum: Assembly
Topic: Assembly 4 workbench
Replies: 1346
Views: 901173

Re: Assembly 4 workbench

I've asked zolko a while ago how do I access variables from sub-sub-links and his answer was that it's impossible to set such variables, only read them... His proposal was to create a separate document, which will be linked to all other documents that want to use it. It's very much the same as havin...
by project4
Mon Sep 28, 2020 9:16 am
Forum: Developers corner
Topic: Identify a visible part
Replies: 7
Views: 795

Re: Identify a visible part

Found a case.
Reported to realthunder:
https://github.com/realthunder/FreeCAD/issues/47
by project4
Mon Sep 28, 2020 8:40 am
Forum: Developers corner
Topic: Identify a visible part
Replies: 7
Views: 795

Re: Identify a visible part

It would be better if you provide an example file; often the model has modelling problems and that causes invalid shapes. Hmm... I'm trying to find the file where I saw the problem, but can't reproduce it. I've used many old tutorial files, which probably were created with some old or custom build ...
by project4
Sun Sep 27, 2020 5:17 pm
Forum: Developers corner
Topic: Identify a visible part
Replies: 7
Views: 795

Re: Identify a visible part

for obj in App.ActiveDocument.Objects: if obj.isDerivedFrom("PartDesign::Feature"): print("It's a feature") Thanks, I will try that. Looks like that's exactly what I need. However, I'm not sure what you want to do. For an exploding assembly you would need to move entire Bodies, ...
by project4
Sun Sep 27, 2020 4:05 pm
Forum: Developers corner
Topic: Identify a visible part
Replies: 7
Views: 795

Identify a visible part

Hello All, Is there an easy way to identify a visible part of an object in python? I'm trying to implement explode feature for Assembly4 and need a way to traverse other sub-objects and find a visible part/face. I thought to filter the objects using their TypeId, but now I realize that I have to tak...
by project4
Sun Sep 27, 2020 3:46 pm
Forum: Assembly
Topic: Exploding with Assembly4
Replies: 16
Views: 8454

Re: Exploding with Assembly4

Teaser for work in progress feature...
Original part:
Screenshot from 2020-09-27 18-42-27.png
Screenshot from 2020-09-27 18-42-27.png (17.12 KiB) Viewed 4489 times
Exploded:
Screenshot from 2020-09-27 18-42-15.png
Screenshot from 2020-09-27 18-42-15.png (27.02 KiB) Viewed 4489 times
by project4
Mon Sep 21, 2020 10:38 am
Forum: Developers corner
Topic: Object.Visibility is extremely slow
Replies: 4
Views: 613

Re: Object.Visibility is extremely slow

Open a test assembly4 project (I used example2 with crankshaft). https://github.com/Zolko-123/FreeCAD_Examples Right click on any linked object in the tree view. Select "Send to Python Console" from the context menu. Python console will execute a command that will assign the selected objec...
by project4
Sun Sep 20, 2020 3:26 pm
Forum: Developers corner
Topic: Object.Visibility is extremely slow
Replies: 4
Views: 613

Re: Object.Visibility is extremely slow

A bit more data: Commenting out the following code block from the ViewProviderDocumentObject::show() function cuts the execution to 0.02-0.03 seconds every time, while the functionality still works fine (at least the 3D view gets updated). // use this bit to check whether 'Visibility' must be adjust...