Search found 6141 matches
- Tue Apr 16, 2024 5:25 pm
- Forum: TechDraw
- Topic: Detailed view linked dimensions move
- Replies: 6
- Views: 565
Re: Detailed view linked dimensions move
I would also loke to find out why he first method I tried didn't work. The code for dimensions in a detail view was broken. It was computing the dimension points as if they were to go on the base view, not the detail. Should be fixed in main branch after 96cfd6b3dc . Sewing Machine Case_mwe_dim3d.p...
- Tue Apr 16, 2024 12:41 pm
- Forum: TechDraw
- Topic: API: getVertexBySelection() is broken in version 0.21.x
- Replies: 10
- Views: 905
Re: API: getVertexBySelection() is broken in version 0.21.x
While you are waiting for getVisibleVertexes(), you could try this: vertices = list() edges = view.getVisibleEdges() for item in edges: vertices.append(item.firstVertex().Point) vertices.append(item.lastVertex().Point) uniqueVerts = list() for v in vertices: if v not in uniqueVerts: uniqueVerts.app...
- Tue Apr 16, 2024 12:17 am
- Forum: TechDraw
- Topic: Issue #5694 Broken View
- Replies: 30
- Views: 2864
Re: Issue #5694 Broken View
Dimensioning should be improved by git commit 41bce2eaf4.
- Mon Apr 15, 2024 5:50 pm
- Forum: TechDraw
- Topic: API: getVertexBySelection() is broken in version 0.21.x
- Replies: 10
- Views: 905
- Fri Apr 12, 2024 11:37 pm
- Forum: TechDraw
- Topic: Issue #5694 Broken View
- Replies: 30
- Views: 2864
- Fri Apr 12, 2024 11:28 pm
- Forum: TechDraw
- Topic: API: getVertexBySelection() is broken in version 0.21.x
- Replies: 10
- Views: 905
- Fri Apr 12, 2024 5:46 pm
- Forum: TechDraw
- Topic: Issue #5694 Broken View
- Replies: 30
- Views: 2864
Re: Issue #5694 Broken View
Version 0.1 of Broken View is available after git commit 74556bced8
- Fri Apr 12, 2024 3:33 pm
- Forum: TechDraw
- Topic: Missing lines in TechDraw Workbench
- Replies: 20
- Views: 2632
- Fri Apr 12, 2024 2:54 pm
- Forum: TechDraw
- Topic: API: getVertexBySelection() is broken in version 0.21.x
- Replies: 10
- Views: 905
Re: API: getVertexBySelection() is broken in version 0.21.x
The HLR & face finding threads started as a result of doc.recompute() are not finished before the call to getVertexBySelection. Until the HLR thread completes, there is no geometry to provide a vertex. If you add a short wait it should work. The wait status methods are not exposed to Python, so...
- Fri Apr 12, 2024 2:24 pm
- Forum: TechDraw
- Topic: API: getVertexBySelection() is broken in version 0.21.x
- Replies: 10
- Views: 905
Re: API: getVertexBySelection() is broken in version 0.21.x
This is really odd. getVertexBySelection works from the console, but not from a macro. Will have to dig a bit on this one. >>> # doc = App.getDocument("touchedOnClickTest") >>> # obj = doc.getObject("View") >>> ### End command Std_SendToPythonConsole >>> obj <DrawViewPart object...