Code: Select all
import Part
class IShape:
def __init__(self,obj):
obj.Proxy = self
obj.addProperty("App::PropertyFloat","Length").Length = 60.0
obj.addProperty("App::PropertyFloat","Depth").Depth = 44.0
obj.addProperty("App::PropertyFloat","Flange Width").Flange_Width = 16.0
obj.addProperty("App::PropertyFloat","Web Thickness").Web_Thickness = 1.0
obj.addProperty("App::PropertyFloat","Flange Thickness").Flange_Thickness = 1.75
def execute(self,obj):
...
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6706 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: f86a4e411ff7848dea98d7242f43b7774bee8fa0
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17