How to display the total lenght by dyn(F12)?

How to display the total lenght by dyn(F12)?

Anonymous
Not applicable
1,375 Views
7 Replies
Message 1 of 8

How to display the total lenght by dyn(F12)?

Anonymous
Not applicable

动态输入.gif

 

Good morning.I'm from China.I want to ask a question.Thanks in advance and forgive my poor English.

 

After turning on the dyn(F12), a running total of the distance will display beside the mouse pointer when I use DIST (M) command.

 

Until now,I only know how to display the text beside the mouse pointer by getXXX function,in the meantime,only grread funtion can obtain the real-time mouse position.But they cannot be used at the same time.

 

Finally,How the DIST (M) command get the real-time  mouse position information and display it by dyn(F12) beside the mouse pointer .

 

Can anyone help? Please~~~~~

 

0 Likes
Accepted solutions (1)
1,376 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable

Up!!!Anybody here???

0 Likes
Message 3 of 8

BeKirra
Advisor
Advisor

Hi, both "dist" command and "getdist" function measure the distance between 2 points. They don't measure the total length of a polyline.

Please mark "Accept as Solution" and "Like" if my reply resolves the issue and it will help when others need helps.
= ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ =
A circle is the locus of a cursor, starting and ending at the same point on a plane in model space or in layout such that its distance from a given coordinates (X,Y) is always constant.
X² + Y² = C²
0 Likes
Message 4 of 8

Anonymous
Not applicable

Thanks for reply,you can try the way to measure the total length of a polyline that  following the step  1."dist"  2.input a point  3."M" .

0 Likes
Message 5 of 8

BeKirra
Advisor
Advisor

Sorry, you're right. I am old school - learned it then never looked back after decade...

Can you show your code here so your question would be better understood?

 

BTW Here is a kind suggestion as I see you are a new member here. You may also post your questions in 中文 forum - Just ask your questions where you like.

https://forums.autodesk.com/t5/autocad-zong-he-tao-lun-qu/bd-p/923

Please mark "Accept as Solution" and "Like" if my reply resolves the issue and it will help when others need helps.
= ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ =
A circle is the locus of a cursor, starting and ending at the same point on a plane in model space or in layout such that its distance from a given coordinates (X,Y) is always constant.
X² + Y² = C²
0 Likes
Message 6 of 8

Anonymous
Not applicable

(defun c:d()
 (vl-cmdf "dist" pause "M")
)

Hey friend,it's the code.But I want to get the point to entmake a lwpolyline.

 

 

For example,

(defun c:tt ()
 (setq pt1 (getpoint))
 (setq pt_list '(pt1))
 (command "dist" pt1 "m")
 (while (= 1 (getvar "cmdactive"))
 (command pause)
 (setq pt1(getvar "lastpoint"))
 (setq pt_list (cons pt1 pt_list))
 )
 pt_list
 )

 

I can get the  pt_list ,but can not get the real-time length.

 

 

I only can get the real-time length by the function "grread",but can not display it beside the cross cursor like the "dist" do.

 

 

I only want to know how the "dist" make use of dyn mode (F12) to display the message.

 

 

I already ask this question in Chinese forum,but nobody know.

http://bbs.mjtd.com/thread-176461-1-1.html

0 Likes
Message 7 of 8

Anonymous
Not applicable

knock knock knock

0 Likes
Message 8 of 8

ВeekeeCZ
Consultant
Consultant
Accepted solution

HERE from the Lee's code you can pick up the principle.