How can I add dimensions to my Part objects in a Python script?
I've tried:
import Draft
Draft.makeDimension(FreeCAD.Vector(0, 0, 0), FreeCAD.Vector(100, 0, 0))
but it returns
Exception: 'module' object has no attribute 'getDocument'
Python-scripted Dimensions
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: Python-scripted Dimensions
You code snippet works for me. Whjich version of FreeCAD are you using? Maybe check if you can install a later version.