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)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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)