Address based Zoom-To

Started by nwgeo, October 17, 2007, 09:45:38 PM

Previous topic - Next topic

nwgeo

After all of the questions I've posted in the "Runtime/AutoLISP" section and the great responses, I feel I owe at least a quick view of what I've been working on these last few days.

A client of mine needs to have a quick way to locate an address within their city using an AutoCAD drawing with many xrefs.    They print out plot plans for the residents who are interested in doing some sort of building activity.  It needs to be simple because it will be operated by non-technical, admin staff [yikes!].  This is not a replacement for a full design drawing, but a quick, paperspace-generated plot of their property.

I cobbled together this project using Kerry Brown's reference to an ADOLisp link: http://acad.fleming-group.com/index.html so I could connect to an Access database.  And, of course, OpenDCL which I just discovered only last week.  Looking at the other examples posted in this section truly humbles me.

The process:

I built a database that contained the X/Y coordinates of a city address.  The user types in a street NUMBER, then the lookup returns all addresses that share that number.  After selecting the desried "full" address, the user clicks the "ZoomTo" button to navigate to that location within the city limits.

Thanks again for all of the people who commented and gave me tips, especially BazzaCAD and his mention of the "EventInvoke" property.  I was dead in the wate without that one.

Quick question: Is there any way to get an image to display with better color depth?  You will notice that the shadows and reflections don't look very nice in the background.  The orignal image looked pretty good [see "DCL_Sample3.jpg" attached]




[attachment deleted by admin]

owenwengerd

Nice job!  Regarding the image color depth, you should post a bug report on SourceForge along with the original image and instructions for reproducing the problem (primarily, what kind of control, and how you added the image, although that may be irrelevant). I don't have much experience with image processing, but I'll have a look at the problem to see if I can fix it. :)
Owen Wengerd (Outside The Box) / ManuSoft

nwgeo

Thanks Owen,

I did try to change the image from RGB to indexed color [in Photoshop], but I think that the creator of the image used some gradients in the final grahpic for high lighting.  I even tried saving as a GIF, same result.  Looks great in a standard image viewer.

Is there a way to draw a straight line on the forms?  I like being able to draft a rectangle shape, but would like to underline objects too.

jb

I use the rectangle control and give it a height of say 2.  This form uses them for the line under the "toolbar" and for a seperator:

James Buzbee
Managing Memeber
Black Horse Development, LLC

nwgeo

#4
jb,

Thanks, that's a good idea.  This is a great library of tools and I look forward to it's continued development.  I stepped into this at release 4.x so I know I am not fully appreciating all of the development that went on prior to October 15th.

BazzaCAD

Looks great. I wonder how it would look with the title bar turned off, since you have that nice background image.
(But then you may not be able to move it on screen, since the image is covering the form & you couldn't grab the form to move it)
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

nwgeo

#6
The display is already changing a bit.  I've dropped off the "OpenDatabase" button, opting to open and close the db connection with the Form_Initialize event. 

BTW, what exactly does the "BeginGroup" property for an option button refer to?

Thanks for the comment.

owenwengerd

Quote from: nwgeo on October 19, 2007, 10:42:16 AM
BTW, what exactly does the "BeginGroup" property for an option button refer to?

Grouped option buttons are mutually exclusive (check one, and all others in the group become unchecked).  The 'BeginGroup' property marks the first option button in a group, in order to separate different groups from each other. :)
Owen Wengerd (Outside The Box) / ManuSoft