Talk:Topological data scripting

From FreeCAD Documentation
Revision as of 13:13, 1 July 2008 by Wmayer (talk | contribs)

Hellow,Please teach me a solution.

After File->New command, I input a command in python console as follows.

>>>>import Part

>>>>b = Part.createBox(0,0,0,100,100,100)

Next command does not work.

>>>>Part.show(b)

Traceback (most recent call last):

 File "<input>", line 1, in <module>

AttributeError: 'module' object has no attribute 'show' [User:Aki]

show() is probably not available in your version. But you can achieve the same with a bit more of typing.
doc=App.newDocument() 
obj=doc.addObject("Part::Feature")
obj.Shape=b
-- Wmayer 15:11, 1 July 2008 (CEST)