onekk wrote: ↑Wed Sep 28, 2022 8:28 am
Probably you are missing "the point".
This is the concept of "Minimal Working Example".
An helper must not guess thing, it has to solve (if possible) problems.
Agreed. it took me 90 minutes to get the point. Still after a solution should someone have the motivation.
. That's all I have + some draft squiggles in file... It shows list problem I wanted help with The eval is used only since idk how to do this: for i in objects: loc = doc.i.Placement? edit: Does it help to know I was playing around with console: first block is only to show second block failure.
Check variables. In 2nd 'for' loop, you use 'lol' which doesn't exist. At the end you print 'place_', which is initialized to empty list then never touch again. A residual error made when posting, srry, was using "lol" as list of lists. newL[num].append(j) == place_.append(j) == same error
Task: get some data (1st block) if there's Vector tuples, replace "Vector" with "App.Vector" (2nd block) Text is printed to console (unintended) with corrected formatting, but new list is not being remembered place = [] length = [] objects = [o.Label for o in App.ActiveDocument.O...
Hi Problem 1 - Vertex list shows [20] - Vertex gui shows [60] How to find true list value of vertex 60? I.e. pick a vertex in GUI then get its placement. 60 is out of range. Problem 2 var = doc.Sketch.Shape.Vertexes[9] var.Placement.Base var = doc.Sketch.Shape.Edges[8] var.Placement.Base Is this wro...
When a Link placement is changed in Assembly, placement of the Link outside of assembly doesn't change. and, Link placement inside assembly doesnt change either!.. despite its position in GUI changing... Recomputes don't help. Is this normal behaviour? If not, can you suggest why this could be happe...
What's the correct way to do this in GUI with placement?
How do I "accept" rotation, and continue with new rotation?
There is no recompute symbol waiting
Note: cannot use new transform feature as the assumed center of rotation is not wanted.
It works fine in-scriptu
So isn't this what you wanted - rotate the cone 20 degrees about a vertical axis through the attached point? If not, what are you trying to achieve? It worked on the test object fine. this video demonstrates issue ... https://youtu.be/KdaP-P2SIP8 Does it provide any clues? Placement, & two diff...
trying to understand it's not going well. I think this is it import Part doc = App.ActiveDocument obj = doc.Cone objB = obj.Placement.Base ## Get center centre = doc.AttachedPoint.Placement.Base center = App.Vector(centre.x,centre.y, objB.z) center axis = App.Vector(0, 0, 1) trans = App.Vector(0, 0...