Creating lisp routine for dimension style
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm having a problem with a client and a dimension style would easily fix the problem that is occurring in the field. Our client has been pouring their foundations wrong for some reason and would like to create a diagonal dimension across the footprint of the building to aid them along with the normal dimensions. I have created a dimension by editing the properties and want to see if i can create a lisp routine in order to have this down with one easy step (Want to delay any other time consuming editing to improve workflow).
I have attached a picture of the dimension style wanted. Essentially I edited the properties to have the dimension lines and extensions removed, with the arrows facing opposite. The dimension is now on the outside of the house to show the diagonal length.
I have edited my DIMUPT, DIMTOFL, DIMAFIT & DIMTMOVE to create this style along with the property edits. I was wondering if i could create a lisp routine based on a dimensions lisp I learned in a tutorial-
(defun c:cdims ()
;define the function
(setq a (getpoint "\nEnter First Point : "))
;get the first point
(setq b (getpoint "\nEnter Second Point : "))
;get the second point
(command "dimaligned" a b b)
;draw the dimline
) ;end defun
This allow me to pick point 1 & 2 and create a dimension. I want to see if i can set up a command to do this, but take on my properties for this 'new' dim style.
Although i know a dim style would elimante this, I want to see if you can create a lisp routine for this. I am new to creating lisps, but want to try to expand my knowledge of this aspect in cad. Any help would be greatly appreciated.
Thanks!
-Ethan