Auto dimenion offset from object?

Auto dimenion offset from object?

rockybalboa1
Enthusiast Enthusiast
225 Views
1 Reply
Message 1 of 2

Auto dimenion offset from object?

rockybalboa1
Enthusiast
Enthusiast

I dont know what is not set correctly but when I dimension and hit two points then drag up and type in the distance I want it does not snap to that distance  from the two points I selected. This also happens when I hover over last dimension point and then drag up . I dimension and type 24" for example and it will snap to any thing other than 24" for the offset from baseline.  Is there also a way to set this in the dim style so there is no need to type 24" , so it will do it automatically.

I am working with with imported PDFs and have also noticed that when drawing some lines and I get to the end point and see my green snap if the mouse point is not exactly over the point it doesnt snap to the line it will set itself where the mouse pointer is .

0 Likes
226 Views
1 Reply
Reply (1)
Message 2 of 2

ВeekeeCZ
Consultant
Consultant

@rockybalboa1 wrote:

I dont know what is not set correctly but when I dimension and hit two points then drag up and type in the distance I want it does not snap to that distance  from the two points I selected. This also happens when I hover over last dimension point and then drag up . I dimension and type 24" for example and it will snap to any thing other than 24" for the offset from baseline.  Is there also a way to set this in the dim style so there is no need to type 24" , so it will do it automatically.

....


 

Probably not a built-in feature. But you can try a LISP... To see how to load and run a lisp, see THIS 

 

(defun c:DAF ( / p q done) 

  (or *daf-height*
      (setq *daf-height* (cvunit 24 "inch" "m"))) ; default

  
  (while (not done)
    (princ (strcat "\nCurrent dimheight: " (rtos *daf-height*))) 
    (initget 128)
    (setq p (getpoint "\nSpecify left extension line origin [Height]: "))
    (if (= p "Height")
      (setq *daf-height* (cond ((getdist (strcat "\nDimheight <" (rtos *daf-height*) ">: ")))
			       (*daf-height*)))
      (if (listp p)
	(setq p (if (and (not p) (not q) *daf-point*) *daf-point* p)
	      done T)
	(setq *daf-height* (distof p)))))

  (if (and p
	   (setq q (getpoint p "\nSpecify next extension line origin: "))
	   (setq *daf-point* q))
    (command "_.dimaligned" "_non" p "_non" q "_non" (polar q (+ (angle p q) (* 0.5 pi)) *daf-height*)))

  (princ)
  )

 

0 Likes