During this confinement period I try to learn a little about Python and TechDraw
So I did a short ("and silly") python macro to read vertexes position from a view and create CosmeticVertex from this positions :
Code: Select all
import FreeCAD
import TechDraw
ft = App.ActiveDocument.ProjItem
dvp = App.ActiveDocument.ProjItem
i = 0
while (i < 7):
vect = ft.getVertexByIndex(i).Point
org = App.Vector(vect)
dvp.makeCosmeticVertex(org)
i = i+1
CosmeticVertexes are well positionned for the rectangle shape, but not for the triangle shape !?
Is it normal ?
I did something wrong ?
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20738 (Git)
Build type: Release
Branch: master
Hash: 0c96f77184edc0a6747483b2ff1462fc6dae46ff
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)