|
|
Article: Insert blocks from a database: AutoLISP routine draws on database listing to place blocks.(Autolisp solutions: reader-requested AutoLISP routines)
- Article from:
- CADalyst
- Article date:
- November 1, 2003
- Author:
CopyrightCOPYRIGHT 2003 Questex Media Group, Inc. This material is published under license from the publisher through the Gale Group, Farmington Hills, Michigan. All inquiries regarding rights should be directed to the Gale Group. (Hide copyright information)
|
Sean Serin e-mailed from Switzerland to request a routine that inserts premade blocks into a drawing sheet using information that comes from a Microsoft Access database. The solution is INSBLK.LSP and its dialog-box counterpart, INSBLK.DCL. The program inserts blocks from any comma- or semicolon-delimited file, or from a fixed-width-field format file. You can export all of these file types from Microsoft Access. The fields are assumed to be in the order of the local block name, then the x, y, and z coordinates, and then any other information such as a description and a unique ID number. The routine uses only the first four fields from the database, although the delimiter, ...