Please try this code-snippets in the console of FreeCAD. Both methods should create a new scene with a cone. For me both methods work:Yes, it works perfectly. I can move the points, create some new line attachment points, create lines in-between and validate.
The glider is displayed with the change in the lines.
But the others menu I mentioned just show an error and the glider disappears.
Code: Select all
import FreeCAD as App
import FreeCADGui as Gui
from pivy import coin
App.newDocument()
class Container(coin.SoSeparator):
def __init__(self):
super(Container, self).__init__()
a = Container()
a += [coin.SoCone()]
sg = Gui.ActiveDocument.ActiveView.getSceneGraph()
sg += a
Code: Select all
import FreeCAD as App
import FreeCADGui as Gui
from pivy import coin
App.newDocument()
class Container(coin.SoSeparator):
def __init__(self):
super(Container, self).__init__()
self += [coin.SoCone()]
a = Container()
sg = Gui.ActiveDocument.ActiveView.getSceneGraph()
sg += a