HyperWorks Desktop

*RegisterPythonFunction()

Registers a Python function.

*RegisterPythonFunction()

Registers a Python function.

Previous topic Next topic No expanding text in this topic  

*RegisterPythonFunction()

Registers a Python function.

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Syntax

*RegisterPythonFunction(function, file, parameters)

Arguments

Name

Description

 

function

The name of the Python function.

 

file

The name of the Python file where the function resides.

 

parameters

The number of parameters the function accepts as input.  This is for syntax presentation only.

Example

*BeginPlotDefaults()

  *RegisterPythonFunction(“NewFunc”, “C:/funcs/pythonfunc.py”, 2)

*EndPlotDefaults()

Application

HyperGraph 2D, HyperGraph 3D

Context

*BeginDefaults()

*BeginPlot3DDefaults()

*BeginPlotDefaults()

See also

 

*BeginPlotDefaults()

*EndPlotDefaults()

*RegisterExternalFunction()

List of Preference Statements