Message 1 of 12
Force Dimension Text Not Working For Entmake
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I have a function that creates a dimension. I supply the start and end points as well as the dimension location and dimension text.
The problem is when I pass the dimension text "2.325 (23X)" to the function, it creates a dimension with only "2.325". Is there a way I can add a suffix to the text while using entmake?
Thanks
(defun CreateDim (startPnt endPnt dimLoc horORver txtVal) (if (= horORver "hor") (setq newStartPnt startPnt newEndPnt endPnt dimRot 0.0)) (if (= horORver "ver") (setq newStartPnt endPnt newEndPnt startPnt dimRot 1.5708)) (entmake (list (cons 0 "DIMENSION") (cons 1 txtVal) (cons 100 "AcDbEntity") (cons 100 "AcDbDimension") (cons 10 dimLoc) ;Dimension location (cons 11 dimLoc) ;Text location (cons 70 32) (cons 100 "AcDbAlignedDimension") (cons 13 newStartPnt) (cons 14 newEndPnt) (cons 50 dimRot) (cons 100 "AcDbRotatedDimension") ) ) )