Skip to content

urltypemaker

Prepare and compile url script types.

Attributes

mlogger = logger.get_logger(__name__) module-attribute

Functions

create_executor_type(extension, module_builder, cmd_component)

Create the dotnet type for the executor.

Parameters:

Name Type Description Default
extension Extension

pyRevit extension

required
module_builder ModuleBuilder

module builder

required
cmd_component GenericUICommand

command component

required
Source code in pyrevitlib/pyrevit/runtime/urltypemaker.py
def create_executor_type(extension, module_builder, cmd_component):
    """Create the dotnet type for the executor.

    Args:
        extension (Extension): pyRevit extension
        module_builder (ModuleBuilder): module builder
        cmd_component (GenericUICommand): command component
    """
    cmd_component.arguments = [cmd_component.get_target_url()]
    bundletypemaker.create_executor_type(
        extension,
        module_builder,
        cmd_component
        )