Code: Select all
import FreeCAD
import Part
import Arch
fname = "archobj"
doc = FreeCAD.newDocument(fname)
Arch.makeComponent(Part.makeBox(300,200,2500))
doc.saveAs("/tmp/" + fname + ".FCStd")
cheers bernd
Code: Select all
import FreeCAD
import Part
import Arch
fname = "archobj"
doc = FreeCAD.newDocument(fname)
Arch.makeComponent(Part.makeBox(300,200,2500))
doc.saveAs("/tmp/" + fname + ".FCStd")
Code: Select all
...
if FreeCAD.GuiUp:
ArchComponent.ViewProviderComponent(obj.ViewObject)
...
Sorry, Bernd, but I still don't understand your question. What the hell does it mean creating a viewprovider outside of FreeCAD? A view provider is part of FreeCAD, how can you create one without it?
exactly. This is just an example. I would like to create a whole building in a script in a python interpreter outside FreeCAD.