std-block-require


Synopsis

(std-block-require <name>)

Description

If the block is not defined, it searches for the external block on the harddisc, searching the standard library path for a matching DWG file, updating its internal definition then.

It returns the found filename of the DWG if the block was updated or the blockname if it was already defined, or calls STD-ERROR if the the external block was found but couldn't be inserted successfully.

Arguments

name: A string naming a block

Return Value

A string of the found blockname or the filename or nil

Side Effects

See description. Only called because of its sideeffects.

Module

(std-require 'STDMISC)

Defined in STDMISC