Syntax/Synopsis of class-/method-/function-calls

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
DoNotGood

Syntax/Synopsis of class-/method-/function-calls

Post by DoNotGood »

Hello again,

what I really miss in FreeCAD is a description/specification of the available classes, methods and functions. So I have to know what parameters (variables) and in which order I must pass. Unfortunately, it is not clear from the help or the tooltips. I tried to find some help in the documentation of pythonocc and occ, but it led to nothing at all. Please can you post the parameter list (and maybe a simple example) of the following functions:
Part.BSplineCurve
Part.BezierCurve
makePipe
makePipeShell
makeThickness

This information would bring me much further. :?

Best wishes
DoNotGood
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Syntax/Synopsis of class-/method-/function-calls

Post by wmayer »

Hi,

Part.BSplineCurve & Part.BezierCurve -- for creation nothing needs to be passed. It creates an empty Bezier/B-Spline curve. You need to insert the knots afterwards. It's best to refer to the OCC docs therefore.
makePipe -- expects a single wire (i.e. a shape)
makePipeShell -- expects a list of shape and the second parameter True/False is optional to build a solid or not. The object itself must be a wire
makeThickness -- expects a list of shape (I guess it must be faces) to remove from this shape, optional is offset (double) and tolerance (double)

Werner
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Syntax/Synopsis of class-/method-/function-calls

Post by wmayer »

You'll find a chm help file here: http://www.4shared.com/file/128871432/9 ... occ52.html

Check the classes:
* Geom_BezierCurve & Geom_BSplineCurve
* BRepOffsetAPI_MakePipe
* BRepOffsetAPI_MakePipeShell
* BRepOffsetAPI_MakeThickSolid

There the parameters will be discussed in more detail.
Post Reply