Click or drag to resize

APIaddRectangleInSection Method

Add a rectangular figure in the selected section
REST path: /section/add/addrect/[sectionID]/[b]/[h]/[centerX]/[centerY]/[isEmpty]/[material]/[doNotCenter]
REST verb: GET

Namespace: NextFEMapi
Assembly: NextFEMapi (in NextFEMapi.dll) Version: 2.6.0.0 (2.6.0.0)
Syntax
public bool addRectangleInSection(
	int sectionID,
	double b,
	double h,
	double centerX,
	double centerY,
	bool isEmpty = false,
	int material = 0,
	bool doNotCenter = false
)

Parameters

sectionID  Int32
ID of the section
b  Double
Base
h  Double
Height
centerX  Double
Center X
centerY  Double
Center Y
isEmpty  Boolean  (Optional)
Optional, True if figure is a hole
material  Int32  (Optional)
Optional, ID of the figure material
doNotCenter  Boolean  (Optional)
Optional, avoid section centering

Return Value

Boolean
True if successful
See Also