Search found 767 matches

Go to advanced search

by freedman
Mon Jul 08, 2019 6:23 pm
Forum: Open discussion
Topic: Spacebar visibility and icon highlight
Replies: 2
Views: 81

Spacebar visibility and icon highlight

If I select a Body and tap the spacebar then visibily is toggled, the Body icon follows the visibility. If I instead go to the last feature in the body and tap the spacebar the object visibility is toggled. Question: When I change the object visibility using the last feature concept shouldn't the Bo...
by freedman
Mon Jul 08, 2019 6:04 pm
Forum: Python scripting and macros
Topic: SelObserver, accessing body name
Replies: 7
Views: 264

Re: SelObserver, accessing body name

My goal of getting all the sketches has worked, thank you openbrain. I have run into an issue, when there is a shapebinder in the Body I get all of the shapebinder sketches also. I have not figured out how to remove them, yet! I don't want them in my list. Also, I'm working to target object types. I...
by freedman
Mon Jul 01, 2019 7:44 am
Forum: Python scripting and macros
Topic: SelObserver, accessing body name
Replies: 7
Views: 264

Re: SelObserver, accessing body name

I ran this: s=[obj for obj in Gui.Selection.getSelection()[0].getParentGeoFeatureGroup().OutListRecursive if obj not in Gui.Selection.getSelection()[0].getParentGeoFeatureGroup().ViewObject.claimChildren() and obj.TypeId == 'Sketcher::SketchObject'] App.Console.PrintWarning("Found sketch name " + st...
by freedman
Fri Jun 28, 2019 5:47 am
Forum: Python scripting and macros
Topic: SelObserver, accessing body name
Replies: 7
Views: 264

Re: SelObserver, accessing body name

Thanks, If anyone has some examples it would be good to see them. I have found a work around so I'm OK.
Thanks
by freedman
Wed Jun 26, 2019 10:35 pm
Forum: Python scripting and macros
Topic: SelObserver, accessing body name
Replies: 7
Views: 264

SelObserver, accessing body name

I'm stuck. My ultimate goal is to mouse select an object using SelObserver, then find all sketches that make up the selected object, then set their deviations/properties. The problem it appears, getselection() returns the name of the last feature instead of the name of the body. I need the top level...
by freedman
Mon Jun 24, 2019 11:39 am
Forum: Python scripting and macros
Topic: New macro, Vision1, check it out
Replies: 36
Views: 1188

Re: New macro, Vision1, check it out

This is the concept of so called "radio button". I know the radio buttons, I don't like the way they implement, I want the text under the button. Maybe possible in the python library?? So basically only the top hierarchical level items. I can see that logic. Using that I am now trying to work my wa...
by freedman
Sun Jun 23, 2019 8:23 am
Forum: Python scripting and macros
Topic: New macro, Vision1, check it out
Replies: 36
Views: 1188

Re: New macro, Vision1, check it out

what about a second different shortcut that will hide the clicked item ? I like buttons better, if you have mutiple shortcuts then someone has to keep track and write documentation. :( Mouse item selection is the unique thing in this program and I see a pattern evolving, the act of selection can be...
by freedman
Sun Jun 23, 2019 3:56 am
Forum: Python scripting and macros
Topic: New macro, Vision1, check it out
Replies: 36
Views: 1188

Re: New macro, Vision1, check it out

:? Not sure I'd use it here. What I'm used to do is : Either click and hit "Space" repeatedly to hide objects till I reach the one I need => In this case, having a button to make all visible afterwards is enough. Or make a cut view and slide it to find the object I need => In this case, having a bu...
by freedman
Sat Jun 22, 2019 4:47 am
Forum: Python scripting and macros
Topic: New macro, Vision1, check it out
Replies: 36
Views: 1188

Re: New macro, Vision1, check it out

Hmmm. Actually I got no real intention. Originally I found your idea interesting and useful thus just wanted to push some lines of code in case it may help. :) Got it, cool, and thank you What about an addition that will hide all objects but selected ? That works. This allows access to all faces of...
by freedman
Fri Jun 21, 2019 7:02 am
Forum: Python scripting and macros
Topic: New macro, Vision1, check it out
Replies: 36
Views: 1188

Re: New macro, Vision1, check it out

openBrain, maybe I didn't understand your intension or something else. Here is a plan, if Vision "User" is only enabled by (Ctl + Shift) then I think everything would work with clearSelection included in the code. If we can exclude sketcher then maybe that's better but I can't see the operator holdi...

Go to advanced search