Navigation: Scripting Reference Manual > Functions & Subroutines > ElemAddNsidedPyramidSolid

 

ElemAddNsidedPyramidSolid

 

Contact Us: fredsupport@photonengr.com

 

Description

This function adds a new N-Sided Pyramid Solid type Element Primitive node and returns the node number of the added object.

 

Syntax

epNode = ElemAddNsidedPyramidSolid( tEnt )

 

Parameters

epNode (Long)

Node number of the element primitive that was added.

 

tEnt As T_ENTITY

Data structure containing the generic entity information (name, parent, description, etc.) required to add a node to the object tree.

 

Example

The example below shows how to initialize a T_ENTITY structure, add an N-Sided Pyramid Solid type element primitive and then modify the element primitive parameters.

Sub Main

 

    'Initialize the generic element data

    Dim tEnt As T_ENTITY

    InitEntity( tEnt )

    tEnt.name   = "EP N-Sided Pyramid Solid"

    tEnt.parent = 2 'Geometry folder

 

    'Create the element primitive node

    Dim epNode As Long

    epNode = ElemAddNsidedPyramidSolid( tEnt )

 

    'Modify the element primitive parameters

    ElemSetParmValue( epNode, 0, 6 ) 'Number of sides

    ElemSetParmValue( epNode, 1, 4 )   'Semi-aperture

    ElemSetParmValue( epNode, 2, 3 )   'Height

 

    'Update the model

    Update

 

End Sub

 

See Also

 

T_ENTITY

Element Primitive Script Commands

Element Composite (boolean) Script Commands

 

 

 

 

 

 

Copyright © Photon Engineering, LLC