コード例 #1
0
    def Activated(self):
        selection = FreeCADGui.Selection.getSelectionEx()

        c = a2p_constraints.PointOnPlaneConstraint(selection)
        cvp = a2p_constraintDialog.a2p_ConstraintValuePanel(
            c.constraintObject, 'createConstraint')
        FreeCADGui.Selection.clearSelection()
コード例 #2
0
ファイル: a2p_constraintDialog.py プロジェクト: luzpaz/A2plus
 def onPointOnPlaneButton(self):
     selection = FreeCADGui.Selection.getSelectionEx()
     self.activeConstraint = a2p_constraints.PointOnPlaneConstraint(selection)
     self.manageConstraint()