OpenDCL Forums

OpenDCL => Show and Tell => Topic started by: jb on August 12, 2008, 07:09:41 AM

Title: Import Layers
Post by: jb on August 12, 2008, 07:09:41 AM
Posted at theSwamp.org

This idea came from this thread:

http://www.theswamp.org/index.php?topic=23775.0 (http://www.theswamp.org/index.php?topic=23775.0)

I've got an Import Layers program - it just wasn't "packaged for public consumption".  So after a little repackaging here's what we've got.  This is an OpenDCL modal form, meaning it acts like any other AutoCAD "dialog box" - think Insert, or Hatch.  The dialog keeps focus until it's closed. 

(http://i283.photobucket.com/albums/kk302/bothetraveler/kbImportLayers.jpg?t=1218548641)

You can open any unopened drawing to view and import Layers.  The Layer Filter Tree Control uses the filters found in ACAD_LAYERFILTERS.  I use a modified version of the AIA Layer Guidelines so my filters are pretty simple: Architectural; A*; A-Anno-Text, A-Wall, A-Door, etc.  Well, it's pretty straight forward.  Remember, if you don't have the OpenDCL runtime installed go to http://sourceforge.net/projects/opendcl/?abmode=1 (http://sourceforge.net/projects/opendcl/?abmode=1) to download.  I'm using the latest stable release: 4.1.2.2.

The attached zip file has the main lisp file, kbImportLayers.lsp, which has everthing needed to run the program - OpenDCL stuff and all.  kb001.odcl is the OpenDCL project definition file edited in the studio editor. kb001.lsp is the compiled Project code generated in the editor I copy and paste into kbImportLayers.lsp.

Let me know of any problems.

jb


< deleted attachment - see below >
Title: Re: Import Layers
Post by: jb on August 12, 2008, 08:06:28 AM
caught a few bugs  :o
Title: Re: Import Layers
Post by: cescalante73 on October 30, 2008, 04:22:17 PM
Jb,
This is a great application.
Do you have something similar for Layer States?