AboutBill DeShawn Expertise I can address all 2-D questions and some 3-D questions. I do programming in AutoLISP if it doesn`t involve solid modeling. I can also address menu customization issues and can help you find answers to questions I can`t answer by taking your question directly to Autodesk via their newsgroups.
Experience I used to do electronic and mechanical design for a flat panel monitor manufacturer, and now I do architectural drafting for an architect. I did and do AutoLISP and menu customization and take pride in making my lisp routines to do the work exactly the way the client likes them done.
Publications I had a routine published in CADENCE magazine (no longer in publication and taken over by CADALYST). Some of my routines are published on my website at http://my.sterling.net/~bdeshawn
I work with a lot of easements in final plats of subdivisions and finding the delta for each curve is extremely time consuming. There may be 100 curves on an easement and all need a number, radius, arc length, and delta's. Delta's take the longest to figure out and I didn't know if their was a way to make a quick leader reference to delta information or not. If you could help me with this I would greatly appreciate it. Thanks
Pete
Answer There is a way to do it, and it would be good if you knew how to write at least basic AutoLISP. Here is a start:
(setq arclen (rtos (* arcrad arcang) 2 2))
(cond
(
(< ANG1 ANG2)
(setq ANG (- ANG2 ANG1))
)
(
(> ANG1 ANG2)
(setq ANG (- (* pi 2) (- ANG1 ANG2)))
)
)
(setq C (* pi 2 RAID)
L (* C (/ ANG (* 2 pi)))
)
(princ (strcat "\nDelta = " (angfix ANG 1)". R= " (rtos RAID 2 2) ". L= " arclen "."))
; (command
; "TEXT" PT (angtos ANGT 0) (strcat ". L = " (rtos L 2 2) "'")
; )
; (command "TEXT" PT "" (angtos ANGT 0) (strcat "%%u/%%092%%u = " (angfix ANG 1))
; "TEXT" "" (strcat "R= " (rtos RAID 2 2)"'")
; "TEXT" "" (strcat "L= " (rtos L 2 2) "'")
; )
(princ)
(if ucschg (command "_.ucs" "_p"))
(command "_.undo" "_end")
(princ)
)
(alert "Object must be an arc.")
)
(princ)
)
I'm hoping this doesn't get messed up with the hard returns that AllExperts might force upon the text. Let me know if you understand at least what to do with this code. If not, I'll talk you through it.
Keep the dialog going till you solve the problem.
Bill DeShawn http://my.sterling.net/~bdeshawn