Search found 6141 matches

by wandererfan
Tue Apr 16, 2024 5:25 pm
Forum: TechDraw
Topic: Detailed view linked dimensions move
Replies: 5
Views: 465

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...
by wandererfan
Tue Apr 16, 2024 12:41 pm
Forum: TechDraw
Topic: API: getVertexBySelection() is broken in version 0.21.x
Replies: 10
Views: 855

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...
by wandererfan
Tue Apr 16, 2024 12:17 am
Forum: TechDraw
Topic: Issue #5694 Broken View
Replies: 29
Views: 2601

Re: Issue #5694 Broken View

Dimensioning should be improved by git commit 41bce2eaf4.
by wandererfan
Mon Apr 15, 2024 5:50 pm
Forum: TechDraw
Topic: API: getVertexBySelection() is broken in version 0.21.x
Replies: 10
Views: 855

Re: API: getVertexBySelection() is broken in version 0.21.x

JarvisOac wrote: Sun Apr 14, 2024 8:55 pm
You are missing the sleep() between recompute() and find_vertices().
by wandererfan
Fri Apr 12, 2024 11:37 pm
Forum: TechDraw
Topic: Issue #5694 Broken View
Replies: 29
Views: 2601

Re: Issue #5694 Broken View

user1234 wrote: Fri Apr 12, 2024 6:04 pm The dimension of the first side is wrong. See real measurement,
Yeah, it is the real value + (removed area of the break - gap width). If have a >= somewhere that should be a >.
by wandererfan
Fri Apr 12, 2024 11:28 pm
Forum: TechDraw
Topic: API: getVertexBySelection() is broken in version 0.21.x
Replies: 10
Views: 855

Re: API: getVertexBySelection() is broken in version 0.21.x

JarvisOac wrote: Fri Apr 12, 2024 9:00 pm
Is the code you posted not working after 10 seconds? Or is that just a minimal example? 1 second is enough here for the sample code.

If there is a more complex version, I'd be happy to look at it.
by wandererfan
Fri Apr 12, 2024 5:46 pm
Forum: TechDraw
Topic: Issue #5694 Broken View
Replies: 29
Views: 2601

Re: Issue #5694 Broken View

Version 0.1 of Broken View is available after git commit 74556bced8
break_not_fixedwDims.png
break_not_fixedwDims.png (10.9 KiB) Viewed 289 times
by wandererfan
Fri Apr 12, 2024 3:33 pm
Forum: TechDraw
Topic: Missing lines in TechDraw Workbench
Replies: 20
Views: 2623

Re: Missing lines in TechDraw Workbench

SLJeans wrote: Fri Apr 12, 2024 1:40 pm
user1234's suggest is the "correct" fix. For a quick and dirty workaround, use the Perspective projector with a long focal distance instead of the standard projector. Perspective sometimes works when the default does not.
perspectiveProjector.png
perspectiveProjector.png (36.97 KiB) Viewed 91 times
037_perspectiveProjector.png
037_perspectiveProjector.png (42.59 KiB) Viewed 91 times
by wandererfan
Fri Apr 12, 2024 2:54 pm
Forum: TechDraw
Topic: API: getVertexBySelection() is broken in version 0.21.x
Replies: 10
Views: 855

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...
by wandererfan
Fri Apr 12, 2024 2:24 pm
Forum: TechDraw
Topic: API: getVertexBySelection() is broken in version 0.21.x
Replies: 10
Views: 855

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...