modify dimension text from base point to selected point

modify dimension text from base point to selected point

Anonymous
Not applicable
909 Views
6 Replies
Message 1 of 7

modify dimension text from base point to selected point

Anonymous
Not applicable

modify dimension text from base point to selected point. Its not work with entmod and entupd functions.

0 Likes
Accepted solutions (1)
910 Views
6 Replies
Replies (6)
Message 2 of 7

Kent1Cooper
Consultant
Consultant
Accepted solution

@Anonymous wrote:

modify dimension text from base point to selected point. Its not work with entmod and entupd functions.



I can't explain why the (entmod (subst ...)) approach doesn't work, but I find in minimal testing that VLA Properties  can be used to do it:

(vlax-put DimensionAsVLAObject 'textposition YourNewPointCoordinatesList)

Kent Cooper, AIA
0 Likes
Message 3 of 7

john.uhden
Mentor
Mentor

Maybe you aren't using the proper DXF code.  I know that I have used entmod to modify dimension entities.

I suggest that you create a dimension, copy it in place, relocate the text, and compare the two (entget)s for differences

Here's a little helper...

(defun c:Entget ( / e)
  (if (setq e (car (entsel "\nSelect object to list entity data: ")))
    (print (entget e))
  )
  (princ)
)
or, if you want to see one dxf code per line, then...
(defun c:Entget ( / e)
  (if (setq e (car (entsel "\nSelect object to list entity data: ")))
    (mapcar 'print (entget e))
  )
  (princ)
)

John F. Uhden

0 Likes
Message 4 of 7

Anonymous
Not applicable

I am putting proper value in dxf code 11 which is text position.

0 Likes
Message 5 of 7

Anonymous
Not applicable

Thanks its Working properly for me

0 Likes
Message 6 of 7

Anonymous
Not applicable

thanks for reply sir

0 Likes
Message 7 of 7

dbhunia
Advisor
Advisor

Another approach.......

 

(vlax-put-property DimensionAsVLAObject 'textposition ActiveX-compatible (variant) 3D point structure)

 

(vlax-put-property (vlax-ename->vla-object (car(entsel "\nSelect Dimension: "))) 'textposition (vlax-3d-point (getpoint "\nPick Text position: ")))

 

@Anonymous  you wrote "I am putting proper value in dxf code 11 which is text position."

 

It works only for "Linear" Dimension for other Dimensions you have to control dxf code 10 also......

 

 


Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....
0 Likes