LeaCar "LCLinePatch" Utility July 29, 2002 For AutoCAD 2000/2002 LeaCar Consulting Inc. 1604 Fairmont Dr. New Kensington, PA 15068-5858 USA http://www.leacar.com 724.448.2672 724.339.0958 FAX support@leacar.com 1.)DISCLAIMER/COPYRIGHT Copyright (c) 2002 by LeaCar Consulting Inc. All rights reserved. LeaCar Consulting Inc. (hereafter "LCI") provides this software "as is" and with all faults. LCI specifically disclaims any implied warranty of merchantability or fitness for a particular use. LCI does not warrant that the operation of the software will be uninterrupted or error free. Use at your own risk. You are hereby granted permission to use, copy and modify this software without charge, provided you do so exclusively for your own use or for use by others in your organization in the performance of their normal duties, and provided further that the above copyright notice and the limited warranty and restricted rights notice above remain in all copies. Incorporation of any part of this software into other software, except when such incorporation is exclusively for your own use or for use by others in your organization in the performance of their normal duties, is prohibited without the prior written consent of LCI. Copying, modification and distribution of this software or any part thereof in any form except as expressly provided herein is prohibited without the prior written consent of LCI. 2.)SUPPORT This is free software and as such is not officially supported. However, If you would like to be notified of updates (issued solely at our discretion), please send your name (no aliases please) and email address (and optionally street address) to support@leacar.com Problem reports and requests for enhancements can be sent to support@leacar.com Support is provided solely at the discretion of LeaCar (in other words, ask nicely…) Please see http://www.leacar.com/leacar_legal.htm for our privacy policy. 3.)LINEPATCH UTILITY This utility was originally developed to re-join collinear lines that had been broken into two separate lines using the BREAK command. Two lines are selected; the utility then modifies the first line to connect with the most distant end point of the second line. The second line is then deleted. The utility has since been expanded to perform the following: - Works with any combination of Line and simple 2 vertex PolyLine (2DPolyLine and LWPolyLine) entities. Other entities are ignored by the utility. - Includes functionality as described above for collinear entities. - Parallel, non-collinear entities are converted into a single entity of the same type as the first entity selected. The utilty connects the most distant points of the original entities. A point from both lines is always connected even if the greatest distance between points is the terminus points of the same entity. - Non-parallel entities are extended to their intersection point. If the intersection point falls on an intermediate point of one of the line segments, the shortest segment of the resultant entity is trimmed. The entity type (Line, PolyLine) of each segment remains unchanged. - Properties of the first entity selected (Layer, Color, Linetype, Lineweight and Thickness) are used to generate the resultant entity or entities. 4.)INSTALLATION The files in the installation ZIP file are: LCLinePatch.dvb – AutoCAD VBA Project File (Not Protected) ReadMe_LCLinePatch.doc and ReadMe_LCLinePatch.txt – Text and Word (97/2000) files with operating and installation notes (this document) LCLP.mns – AutoCAD Toolbar Source file containing a button to run the program. LCLP.mnr – Menu Resource file. LCLP.bmp – Button Image Bitmap To Install: - Copy the files (excluding the ReadMe) to your AutoCAD support directory or other directory specified in your AutoCAD support path. - Optionally load the toolbar source file using the MENULOAD command. The toolbar can be used as is or dragged onto another toolbar in customize mode. To Run: The toolbar button is the easiest way to invoke the utility. If the VBA project file is not loaded, the button command will load the project file (assuming it is on the AutoCAD Support file path) and run it. However, the program can also be run as follows: - From AuoCAD: Assist/Macro/Macros… Pull-down or . Select the "LCLinePatch.dvb!LinePatch.Lpatch" macro and click "Run". - From AutoCAD command line: VBARUN - From LisP: (vl-vbarun "LCLinePatch.dvb!LinePatch.LPatch" ) Monday, July 29, 2002 rw