AdaCAD Library Documentation - v1.1.4
    Preparing search index...

    Type Alias Operation

    a standard opeartion

    the internal name of this opearation (CHANGING THESE WILL BREAK LEGACY VERSIONS)

    the name to show upon this operation in the interface

    the description of this operation

    the parameters associated with this operation

    the inlets associated with this operation

    referes to any prior name of this operation to aid when loading old files

    a function that executes when this operation is performed, takes a series of inputs and resturns an array of drafts

    a function that computes the system provided name default based on the inputs. a number can be passed in args to handle cases where the operation needs to assign different names to different draft outputs

    type Operation = {
        generateName: (
            op_settings: OpParamVal[],
            op_inputs: OpInput[],
        ) => string;
        inlets: OperationInlet[];
        name: string;
        old_names: string[];
        params: OperationParam[];
        perform: (
            op_settings: OpParamVal[],
            op_inputs: OpInput[],
        ) => Promise<Draft[]>;
    }
    Index

    Properties

    generateName: (op_settings: OpParamVal[], op_inputs: OpInput[]) => string
    inlets: OperationInlet[]
    name: string
    old_names: string[]
    params: OperationParam[]
    perform: (op_settings: OpParamVal[], op_inputs: OpInput[]) => Promise<Draft[]>