Пример #1
0
    def Activated(self):
        selection = FreeCADGui.Selection.getSelectionEx()

        c = a2p_constraints.AxisPlaneNormalConstraint(selection)
        cvp = a2p_constraintDialog.a2p_ConstraintValuePanel(
            c.constraintObject, 'createConstraint')
        FreeCADGui.Selection.clearSelection()
Пример #2
0
 def onAxisPlaneNormalButton(self):
     selection = FreeCADGui.Selection.getSelectionEx()
     self.activeConstraint = a2p_constraints.AxisPlaneNormalConstraint(selection)
     self.manageConstraint()