Click or drag to resize

APIaddSeriesFunction Method

Add a time series function to the model
REST path: /function/add/[type]
REST verb: GET
REST header: {"x",Xlist}, {"y",Ylist}, {"units",units}

Namespace: NextFEMapi
Assembly: NextFEMapi (in NextFEMapi.dll) Version: 2.6.0.0 (2.6.0.0)
Syntax
public int addSeriesFunction(
	double[] Xlist,
	double[] Ylist,
	int type,
	string units = ""
)

Parameters

Xlist  Double
Array of times/periods
Ylist  Double
Array of values, same size of Xlist
type  Int32
0 displacement TH, 1 velocity TH, 2 acceleration TH, 3 acceleration spectrum, 4 displacement spectrum
units  String  (Optional)
Units of measure for data in ordinate (Y)

Return Value

Int32
The ID of the time series, -1 in case of errors
See Also