Search found 77 matches
- Sat Jun 05, 2021 8:22 pm
- Forum: Open discussion
- Topic: Forum maintenance today
- Replies: 83
- Views: 21611
Re: Forum maintenance today
I encountered one: at the top-left of the forum, the tree view is broken. This is now fixed. many thanks. This bread-crumb trail used to be at the bottom left too. Now only the head shows. It's usually after I've scanned to the bottom of the page that I want this facility. Can it be restored please?
- Sat Jun 05, 2021 8:17 pm
- Forum: Python scripting and macros
- Topic: [Solved]Without a Name, I'm on Edge
- Replies: 5
- Views: 1552
Re: [Solved]Without a Name, I'm on Edge
I'm good, Ed, thanks. That little for loop isn't really part of the job; it was just me proving to myself that I could access those bits.
- Sat Jun 05, 2021 3:25 pm
- Forum: Python scripting and macros
- Topic: [Solved]Without a Name, I'm on Edge
- Replies: 5
- Views: 1552
Re: Without a Name, I'm on Edge
Ok. I've got it. This works for my purposes: sels = Gui.Selection.getSelectionEx() sel_string = sels[0].FullName # ...some parsing code to get ... cutdoc = 'DesignX' cutobj = 'Cut001' cutedges = ['Edge', 'Edge001', 'Edge005'] # pass to backend processor cut = App.ActiveDocument.getObject(self.cutobj...
- Sat Jun 05, 2021 1:14 pm
- Forum: Python scripting and macros
- Topic: [Solved]Without a Name, I'm on Edge
- Replies: 5
- Views: 1552
Re: Without a Name, I'm on Edge
Are you getting the Edge Names through the Gui? If so, multiply select your edges, then: sel = Gui.Selection.getSelectionEx() sel.SubElementNames # ['Edge2', 'Edge4' ... ] list of Edge names This is more or less what I did, only using FullName vs. SubElementNames . I figured that once I had the Nam...
- Fri Jun 04, 2021 8:41 pm
- Forum: Python scripting and macros
- Topic: [Solved]Without a Name, I'm on Edge
- Replies: 5
- Views: 1552
[Solved]Without a Name, I'm on Edge
I have a Part Design body which is basically a thick tube, cut off in a complicated way. This cut end is characterized by a list of edges. I want to pick off (x,y,z) along these edges at certain intervals. I have the active document, the active body, and the names of the edges as strings. For exampl...
- Thu Apr 22, 2021 2:27 pm
- Forum: Python scripting and macros
- Topic: [Solved]Help me understand Selection Observer
- Replies: 12
- Views: 1969
Re: [Solved]Help me understand Selection Observer
For completeness' sake, I'm dropping this in here. Hopefully, future FCers searching for "Selection Observer" will turn this up faster than I was originally able to find it. In wiki.freecadweb.org/Code_snippets: Function resident with the mouse click action The linked code sample is a bett...
- Tue Apr 20, 2021 10:16 am
- Forum: Python scripting and macros
- Topic: Edge on a surface
- Replies: 9
- Views: 957
Re: Edge on a surface
I was wondering if there is a built-in function that allows me to check if an edge lies on a surface. For clarification, do you want to know (a) if the edge is part of/belongs to a surface; that is if the edge is part of what defines the surface or (b) if the edge of, say, object1 contacts a surfac...
- Tue Apr 20, 2021 10:10 am
- Forum: Python scripting and macros
- Topic: [Solved]Help me understand Selection Observer
- Replies: 12
- Views: 1969
- Tue Apr 20, 2021 9:59 am
- Forum: Python scripting and macros
- Topic: [Solved]Help me understand Selection Observer
- Replies: 12
- Views: 1969
Re: Help me understand Selection Observer
@Kunda1, I'd be more than happy to do that but my tenuous grasp on the technicalities wouldn't support it. I'd be more qualified to edit for grammar.
- Tue Apr 20, 2021 9:50 am
- Forum: Python scripting and macros
- Topic: [Solved]Help me understand Selection Observer
- Replies: 12
- Views: 1969
Re: Help me understand Selection Observer
OP copied my tutorial code before I added the comments. :lol: @alberich, maybe it would be good to tell that you get it working by copying and adapting existing code. Not that I care you took my code (that's the purpose, and I'm glad it serves), but it may help forumers understand why you can get a...