When learning how to write a python script for FreeCAD I am struggling to find out what attributes a class or method will accept.
Some times its easy for example when I type Part.circle() into the Python console FreeCAD gives me a handy little text pop up that says all of the possible attributes I can put into the brackets to make a circle.
Then there are others with no handy pop up text recently I found
myRev = FreeCAD.activeDocument().addObject("PartDesign::Revolution", "MyRev")
Which gives me no indication of how I should define the axis. I tries as a FreeCad.Vector but no dice. I did get the friendly error:
TypeError: Property 'ReferenceAxis': type must be 'DocumentObject', 'NoneType' or ('DocumentObject',['String',]) not Base.Vector
Which helps a bit.
What I am looking for is some comprehensive straight forward documentation on these modules their methods and what attributes / attribute types I need to enter. Instead of mustering my way through errors, hoping some helpful text will pop up in the consol or hoping I can find some possibly questionable code on a forum somewhere where these modules are used.
Help much appreciated