Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.ExtensibleSchemas package

Submodules

duHast.Revit.ExtensibleSchemas.extensible_schemas module

This module contains a number of functions around Extensible storage in Revit.

duHast.Revit.ExtensibleSchemas.extensible_schemas.create_schema(schema_name, schema_documentation, string_guid, access_level_read=Autodesk.Revit.DB.ExtensibleStorage.AccessLevel.Public, access_level_write=Autodesk.Revit.DB.ExtensibleStorage.AccessLevel.Public)

Basic schema creation sample (excludes any fields). Creates a scheme or returns the already existing scheme with the same guid.

Parameters:
  • schema_name (str) – The name of the schema

  • schema_documentation (str) – A short description of the schema

  • string_guid (str) – A guid. (unique identifier of this schema)

  • access_level_read (Autodesk.Revit.DB.ExtensibleStorage.AccessLevel) – Access level to schema for read operations. Default is Public.

Access_level_write:

Access level to schema for write operations. Default is Public

Access_level_write:

Autodesk.Revit.DB.ExtensibleStorage.AccessLevel

Returns:

The newly created schema, or existing schema with same guid.

Return type:

Autodesk.Revit.DB.ExtensibleStorage.Schema

Module contents