GRAPHISOFT®

Python APIVersion: 0.23 Beta

CreateWall

Creates an Wall element.

def CreateWall (element) -> String

 

Parameters

element
[in] An APIObject describing the Wall element to create.

 

Return Values

This function returns the GUID of the created element.

 

Remarks

This function is analogous to the ACAPI_Element_Create function of the C++ API for Wall elements. Undefined members will be set to the current defaults.

For information on how to fill the passed APIObject, visit the C++ documentation.

 

Example

def DrawWall (x1, y1, x2, y2):
    element = APIObject ()
    element.head = APIObject ()
    element.head.typeID = API_WallID
    element.begC = APIObject ()
    element.begC.x = x1
    element.begC.y = y1
    element.endC = APIObject ()
    element.endC.x = x2
    element.endC.y = y2
    return CreateWall (element)

DrawWall (0, 0, 10, 0)

 

Requirements

Version: Python API 0.1 or Later
Module: GS

 

See Also

ChangeWall, GetWall

All functions