This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Notes | |
# - All IDs are GUIDs | |
# - You get the client ID and the client secret by registering your app. You can | |
# do this through sharepoint online or through Azure AD. | |
# - Getting an access token goes in two steps; you request an authorization token from Sharepoint, | |
# then an access token from ACS. | |
# - Getting the authorization token from Sharepoint works (returned as a request to | |
# /login?code=XXX ) | |
# - Getting the access token doesn't work. Apparently because Sharepoint and ACS disagree about | |
# what is a valid client ID. Sharepoint wants just the app's GUID, while ACS wants to see |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Molecule: | |
def __init__(self, obj): | |
''' Add two point properties ''' | |
obj.addProperty("App::PropertyVector","p1","Line","Start point") | |
obj.addProperty("App::PropertyVector","p2","Line","End point").p2=FreeCAD.Vector(5,0,0) | |
obj.Proxy = self | |
def onChanged(self, fp, prop): | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Part | |
from pivy import coin | |
class Molecule: | |
def __init__(self, obj): | |
''' Add two point properties ''' | |
obj.addProperty("App::PropertyVector","p1","Line","Start point") | |
obj.addProperty("App::PropertyVector","p2","Line","End point").p2=FreeCAD.Vector(5,0,0) | |
obj.Proxy = self |