Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
(defun c:DimJaiBasePointToInsertion ( / basePt selSet blkName blkObj blkPt dimOffset dimSpacing currentPt i count)
(setq dimSpacing 0.5)
(setq basePt (getpoint "\nSelect base point: "))
(setq blkName "jai")
(setq selSet (ssget '((0 . "INSERT") (2 . "jai"))))
(if selSet
(progn
(setq dimOffset 0.0)
(setq count (sslength selSet))
(setq i 0)
(while (< i count)
(setq blkObj (ssname selSet i))
(setq blkPt (cdr (assoc 10 (entget blkObj))))
(if blkPt
(progn
(setq currentPt (list (car basePt) (+ (cadr basePt) dimOffset) (caddr basePt)))
(command "._dimlinear" currentPt blkPt)
(setq dimOffset (+ dimOffset dimSpacing))
)
(princ "\nInvalid block point encountered.")
)
(setq i (1+ i))
)
)
(princ "\nNo blocks named 'jai' found.")
)
(princ)
)
i want mark dimension in block name having the name of "jai" but its mark only some blocks here i attached dwg file is what i need
Solved! Go to Solution.