API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

ShapeItem Methods

The ShapeItem type exposes the following members.

Public methodCleanAndModify
Cleans and stores the brep into the shape catalog
Public methodDelete
Deletes a shape from shape catalog based on the shape name.
Public methodCode exampleExport
Exports the shape item in *.tsc-format to the to given file name. If path is not given shape is exported to model folder. If filename is empty shape name is used as filename.
Public methodCode exampleGetInstanceCount
Get the number of instances used in the model of a shape
Public methodCode exampleInsert
Inserts a shape to the shape catalog based on the shape geometry.
Public methodCode exampleInsertUsingNormals
Inserts a shape to the shape catalog using the shape geometry. Uses vertex normals to determine edge visibility. If the normal vectors of the vertices belonging to one geometrical location are close enough, the edge will be considered smooth and will be marked as hidden.
Public methodCode exampleModify
Modifies a shape in the shape catalog based on the shape name or if not found, based on shape guid.
Public methodCode exampleRename
Renames a shape in the shape catalog with the given shape name.
Public methodSelect
Selects the shape from the database based on the name given in this instance.
Public methodSelect(String)
Selects the shape based on the given name from the database.
Public methodCode exampleSetHandlePoints
Set the Shape item's Handle Points
See Also
Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.