Talk:Topological data scripting

From FreeCAD Documentation
Revision as of 13:11, 1 July 2008 by Wmayer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.
App.newDocument() 
App.ActiveDocument.addObject("Part::Feature").Shape=b
-- Wmayer 15:11, 1 July 2008 (CEST)