Macro Parametric Curve FP
{{Macro
|Name=Macro Parametric_Curve_FP
|Icon=Parametric_Curve_FP.svg
|Description=Update of Macro 3D Parametric Curve, but with new features. Creates a Feature Python object, offers spreadsheet and JSON integration, expanded parameters.
It has support for the same a, b, c parameters, but also can have as many d parameters in the form of d1, d2, d3, d4, etc. as you like.
It also supports saving formulas to a text file in JSON format and support for Spreadsheet integration of the current formula.
Full documentation can be found [https://github.com/mwganson/Parametric_Curve_FP Full Documentation on Github Parametric_Curve_FP] on github.
|Author=TheMarkster
|Version=2023.05.06
|Date=2023-05-06
|FCVersion=All Python 3
|Download=[https://wiki.freecadweb.org/https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/5/59/Parametric_Curve_FP.svg ToolBar Icon]
|SeeAlso=Macro 3D Parametric Curve
|Links=[https://github.com/mwganson/Parametric_Curve_FP Full Documentation on Github]
}}
Description
This macro is an update to the Macro 3D Parametric Curve by Gomez Lucio and later Modified by Laurent Despeyroux on 9th feb 2015. The macro has been updated to a parametric Feature Python object. It has support for the same a, b, c parameters, but also can have as many d parameters in the form of d1, d2, d3, d4, etc. as you like. If you want to reference a VarSet or DynamicData dd object in a formula you can use the {{Incode|fc(expr)}} command to do this. For example, if there is a float value in a dd object named my_float and you wish to reference it in the formula for the b parameter, enter for b: {{Incode|fc(dd.my_float)}} or if you want to use it in a more complex way: b: {{Incode|fc(dd.my_float) * a + pi}} as another example.
It also supports saving formulas to a text file in JSON format and support for Spreadsheet integration of the current formula. Full documentation can be found Parametric_Curve_FP on github.
![](https://raw.githubusercontent.com/FreeCAD/FreeCAD-documentation/master/wiki/images/Parametric_Curve_FP_SCR.png)
Legend
ToolBar Icon
Script
Macro Parametric_Curve_FP.FCMacro
{{CodeDownload|https://gist.github.com/mwganson/473920ad317fb2dc3e37638112874e2a|Parametric_Curve_FP.FCMacro}}
⏵ documentation index > Macro Parametric Curve FP
This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/Macro_Parametric_Curve_FP.md