Add magnet position extraction script

This commit is contained in:
Rahix 2025-09-10 07:27:54 +02:00
parent 31a2729cf1
commit 2d41e30072

View file

@ -0,0 +1,9 @@
import FreeCAD
doc = FreeCAD.open("STM-Frame.FCStd")
magnets = doc.findObjects(Label="Magnet.*")
for m in magnets:
if m.TypeId != "App::Link":
continue
pos = m.Placement.Base
print(f"{pos.x:.5f}, {pos.y:.5f}, {pos.z:.5f}")