-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Problem] Automatic naming is confused/wrong with the grounded Symbol of the Assembly Workbench #12546
Comments
Yes the lock is in the label. So it's the same as if you create one cube, rename it to 'Banana' then create a new cube. The second cube will be called 'Cube' because the name is free. |
I like the Lock but I do not like it to be part of the lable, I think this will confuse some in the future.
|
@PaddleStroke Then it sounds like to be related to #12139. The problem of names in the tree is wider (see also #12141). |
Yes it's not ideal that the lock is in the label indeed. When you say 'on top of the symbol' you mean on top of the object icon? |
@wwmayer is there a way to overlay an icon on top of any object icon? So that the lock icon can be overlayed on top of other icons : I had a look at how bodies are doing the tip indicator, but they are using the PartDesign::ViewProvider class that reimplement the mergeColorfulOverlayIcons function. The thing is that here I want to add an overlay to any kind of VP so I'm not sure how to handle this. I was thinking about setting the overlayed icon in the ViewProviderAssembly like this :
Thoughts? |
Having said that there is already a lot of overlayed icons (recompute mark, external, link) so adding one more is maybe not so great in terms of visibility. |
Yes that's pretty much what I meant, but why not get the Icon, than overly the Lock and than put this in the TreeView. |
Solidworks displays the grounded status with text at the beginning of the tree-view text:
This text is before the formatted string explained in #12141 (comment). Basically it’s as if there was an icon but more discreet. Also considering #12141, the text could be quite long so the symbol should be at the beginning not at the end. A small lock over the icon would be hard to see. |
Try BitmapFactory().merge() |
Also sounds like a good solution, this with a modification to the Auto naming code so that it is ignored and it should work perfectly. |
Also note that the lock as a character/pictogram (as opposed to an icon), might render differently on different platforms and/or different fonts. On Linux for instance, it is not even recognisable as a lock and it adds extra vertical padding to the tree. See the screenshot in the (related?) issue #12788 The lock in the label might also be the cause for another bug: #12789 In another note, thanks so much @maxwxyz for your great work triaging issues, really appreciated! As is the work of everyone contributing to the new integrated assembly workbench, which is awesome. Thanks! |
I like the lock symbol here. But not overlayed like the tip indicator. There much be a way to align it to the right of the label with it modifying the label itself. The behavior currently is inconsistent and will generate lots of unwanted feedback due to the unexpected behavior. |
@wwmayer I'm still not sure how to handle this problem could you please weight in? Is it acceptable to add a 'Locked' bool property to ViewProviderDocumentObject ? Then my idea was that if Locked is true, then either :
Thoughts? |
@PaddleStroke I don't like the ground. What about a small lock icon at the center of mass in the 3D view? I think in general it would be god to display the joint type alongside the JCS in the 3D view as it gets crowded when multiple joints are visible. |
Lock symbol why not, but if it's draw in 2d then when you rotate it's not ideal. Ideally it should rotate with the camera. Like in sketcher. But I'm not sure how this is implemented. |
@PaddleStroke maybe like the 3D annotations of the unified measurement tool (GSoC) #9750 Found also: |
@PaddleStroke
or a movable Annotation label:
annotations.mp4Data and View Tab in the property editor allows for styling. This would be nice to see all joint locations and types! |
I am not a fan of adding stuff to a base class that is only needed in a sub-class. It would be acceptable for me to extend the ViewStatus enum from ViewProvider.h because this at least doesn't require more memory. |
Looks good. Is it always visible, or only when the joint is visible? It could also just become visible if you try to drag this item or have the create/edit joint dialog open so you see which one is the grounded part(s). |
only when the joint is visible. |
Is there an existing issue for this?
Problem description
While testing the Assembly workbench in the latest Weekly Build I created two cubes("Cube" and "Cube001" as normal) and then grounded one, after that I created a third cube which was not named "Cube002" but just "Cube". I assume this is because of the Lock symbol in the name of the first cube.
Full version info
The text was updated successfully, but these errors were encountered: