Project Overview
Project Installation
Project Usage Method 1: Manual Entry
Project Usage Method 2: Udb Entry
Project Notes
Project Directory Structure
Project Release History
Top of Page
This sample project is to demostrate how to interface LaserDWG to a custom Lisp routine.
LaserDWG has the ability to transmit distance measurements from a laser distance meter (i.e. Disto A6) to the command line of IntelliCAD. The measured distance is transferred by pressing the Enter key on the laser distance meter.
This project can be done using one of two methods. Method 1 is a manual step by step procedure. Method 2 show a procedure that uses LaserDWG User Defined Buttons feature.
Top of Page
The project depends on the the directory structure as provide in the zip file.
- Extract the contents of the zip file.
- The extracted directories and files should on the C: drive
- Open Windows Explore to verify that C:\Sample_CeilingHeight_Project has been created.
Top of Page
Method 1 show the manual steps to utilize the CeilingHeight LISP routine. To use the project follow the steps listed below.
- Files must be in the directory C:\Sample_CeilingHeight_Project
- Launch LaserDWG.
- Make sure to start the Disto device.
- Switch to IntelliCAD after LaserDWG has finished loading.
- Open the drawing.
- Select File->Open
- The Open File Dialog will be displayed.
- Navigate to C:\Sample_CeilingHeight_Project
- Select the file SampleCeilingHeightRoom.dwg
- Click Open button in the dialog box.
- Load the lisp function:
- Select Tools->Load LISP or SDS applications
- The Load Application Files dialog will be displayed
- Click Add File ... button (left lower corner)
- Pull Down the Look in box
- Navigate to C:\Sample_CeilingHeight_Project
- Select the file CeilingHeight.lsp
- Click Open button in the dialog box.
- Highlight the C:\Sample_CeilingHeight_Project\CeilingHeight.lsp
- Click Load button in the dialog box.
- The Load Application Files dialog disappears.
- On the IntelliCAD command.
- Type in CeilingHeight
- Press Enter key.
- The CeilingHeight LISP function will now prompt for the following:
- Enter the insertion point Now pick a the place point on the drawing area.
- Enter the Ceiling Height
- Match sure that the 2nd function on the Disto is visible on the screen.
- Make a measurement on the Disto
- Now press the Enter on the Disto keypad. (Note on the A6 this the Bluetooth key)
- The CeilingHeight block is now been inserted at the selected point with measurement from Disto displayed in the drawing.
Top of Page
Method 2 show the to utilize the CeilingHeight LISP routine using LaserDWG User Defined Buttons. To use the project follow the steps listed below.
- Files must be in the directory C:\Sample_CeilingHeight_Project
- Launch LaserDWG.
- Make sure to start the Disto device.
- Switch to IntelliCAD after LaserDWG has finished loading.
- Open the drawing.
- Select File->Open
- The Open File Dialog will be displayed.
- Navigate to C:\Sample_CeilingHeight_Project
- Select the file SampleCeilingHeightRoom.dwg
- Click Open button in the dialog box.
- Import the file CeilingHeight.udb
- Switch to LaserDWG. Click on LaserDWG in the taskbar
- Select File->Export/Import Buttons
- Dialog box will appear for selecting Export or Import function.
- Click the button labeled Import
- The Open File Dialog will be displayed.
- Navigate to C:\Sample_CeilingHeight_Project
- Select the file CeilingHeight.udb
- Click Ok button in the dialog box.
- The maindialog should now be updated
- The middle row of buttons should now read Load and Ceiling
- Click button labeled Load. This will load the CeilingHeight.lsp file into IntelliCAD.
- Click button labeled Ceiling. The CeilingHeight command will now execute in IntelliCAD.
- The CeilingHeight LISP function will now prompt for the following:
- Enter the insertion point Now pick a the place point on the drawing area.
- Enter the Ceiling Height
- Match sure that the 2nd function on the Disto is visible on the screen.
- Make a measurement on the Disto
- Now press the Enter on the Disto keypad. (Note on the A6 this the Bluetooth key)
- The CeilingHeight block is now been inserted at the selected point with measurement from Disto displayed in the drawing.
Top of Page
The following are some highlights and notes on this project.
- This LISP functions turns off the Attribute dialog so the measured distance from LaserDWG can be processed by IntelliCAD. When the LISP function completes the Attribute dialog is restored to its previous value. The Attribute dialog box will not accept the distance from LaserDWG.
- Once the CeilingHeight LISP routine is loaded it is not required to do so during the session again.
- CeilingHeight can be launched in one of the following:
- LaserDWG User Defined Button,
- IntelliCAD Menu,
- IntelliCAD Toolbar,
- IntelliCAD command Line.
- The Enter key will cause LaserDWG to send the distance to the IntelliCAD commmand line. If any of the arrow keys on the Disto keypad are used the distance will be sent as a relative polar coordinate. (i.e. @65.6<45.0)
- This will only function as along as all line work has been terminate prior to executing the LISP function.
- If Method 2 was used, the User Defined Buttons (Udb) can be reset to their default definitions by importing the Udb file InitialUserDefinableButtons.udb. The file is located usually in C:\Program Files\LaserDWG v1.1\Support.
Top of Page
To directory structure for the project is listed below.
- Drive C:
- Main Folder: Sample_CeilingHeight_Project
- Subdirectories for project: none.
- Files contained in the project:
- readme.html - this file.
- CeilingHeight.lsp - LISP function for inserting the CeilingHeight.dwg file into the drawing.
- CeilingHeight.dwg - contains the block to be inserted for displaying the ceiling height measurement.
- CeilingHeight.udb - Is the User Defined Button definition file for just Load and Ceiling.
- SampleCeilingHeightRoom.dwg - drawing file that is setup for LaserDWG and has the CeilingHeight.dwg already inserted.
- CPL.TXT - copy of Common Public License version 1.0
- CeilingHeight.lsp does not check for the CeilingHeight block being present in the drawing.
Top of Page
The following table describes the release history of Ceiling Height Lisp Sample Project.
| Release |
Date |
Description |
| Cieling Height 1.0 |
8/1/2008 |
Initial release of sample project. |
Top of Page
JMA is a trademark of JMA Technology, Inc.
All registered trademarks, trade names or logos belong to their respective companies.
Copyright © 2008 JMA Technology, Inc. All Rights Reserved.