poIPost AddSection

Adds a new section of the specified type to the current client.

Syntax

poIPost_handle AddSection type_args

Application

HyperView Tcl Modify

Description

This command adds a new section of the specified type to the current client.

Inputs

type_args
Specify the section type between planar and spherical.

0: planar

1: spherical

Note: Section handle commands for planar and spherical sections are under poISection and poISphericalSection respectively.

Example

To create a planar as well as a spherical section on a loaded model:
hwi OpenStack
hwi GetActiveClientHandle post_handle
# create a planar section
post_handle GetSectionHandle section_handle [post_handle AddSection 0]
# create a spherical section 
post_handle GetSectionHandle section_handle [post_handle AddSection 1]
hwi CloseStack

Errors

Returns the newly created section ID if successful, otherwise a null value is returned if AddSection failed.