Platform: 32-bit
Version: 0.13.1828
Python version: 2.6.2
Qt version: 4.5.2
Coin version: 3.1.0
SoQt version: 1.4.1
OCC version: 6.3.0
hi, i'm trying to use the following snippet (that i lifted from one of Werner's examples) in my code
Code: Select all
shape = App.ActiveDocument.ActiveObject.Shape
Code: Select all
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:/Users/Edward/Desktop/EVM/freecad stuff/FCPython\reconstruct_SVG_import.py", line 4, in <module>
shape = App.ActiveDocument.ActiveObject.Shape
NameError: name 'App' is not defined
Code: Select all
import Part
from FreeCAD import Base
from FreeCAD import Gui
import math
my goal here is to extract BSpline info from imported SVG files, and if i put each line in the interpreter it all works. Any help greatly appreciated