ScoRm Posted November 16, 2020 Posted November 16, 2020 (edited) is have to manually create a line to get the length i needed between 2 points is there easier way or lisp to just copy the length of a LINE and i can paste it to anywhere? like excel or text?? Edited November 16, 2020 by ScoRm Quote
BIGAL Posted November 16, 2020 Posted November 16, 2020 (edited) "Properties" click line just "copy" Length. Ctrl+C or "List" click line again just copy length use F2 to see. Other objects support length. Edited November 16, 2020 by BIGAL Quote
ScoRm Posted November 16, 2020 Author Posted November 16, 2020 10 minutes ago, BIGAL said: "Properties" click line just "copy" Length. Ctrl+C or "List" click line again just copy length use F2 to see. Other objects support length. that is exactly what i am doing boss, i was hoping to find an easier way. but still thank you. Quote
BIGAL Posted November 16, 2020 Posted November 16, 2020 Ok there is copy to clipboard you will need to get the length property, a circle is circumference. (defun c:test ( / dist) (setq dist (distance (getpoint "\nPick p1")(getpoint "\nPick p2"))) (vlax-invoke (vlax-get (vlax-get (setq 2ClipB (vlax-create-object "htmlfile")) 'ParentWindow ) 'ClipBoardData ) 'SetData "Text" (rtos dist 2 2) ) ) Quote
ScoRm Posted November 16, 2020 Author Posted November 16, 2020 13 minutes ago, BIGAL said: (defun c:test ( / dist) (setq dist (distance (getpoint "\nPick p1")(getpoint "\nPick p2"))) (vlax-invoke (vlax-get (vlax-get (setq 2ClipB (vlax-create-object "htmlfile")) 'ParentWindow ) 'ClipBoardData ) 'SetData "Text" (rtos dist 2 2) ) ) Wow! this is actually easier now! thanks kind sir! 1 Quote
BIGAL Posted November 16, 2020 Posted November 16, 2020 No worries just had to find it. I would change the get point to a entsel and get length so can do plines etc. Quote
Dadgad Posted November 16, 2020 Posted November 16, 2020 (edited) It looks like BIGAL has gotten you pretty well squared away already, late to the party! Here is a rather Analog approach to the same task, but it spares one from having to draw, and or erase a line. Or writing code which is above my pay-grade. Damn I created a GIF, but couldn't upload it. At the top of your quick calculator you can select the Distance between points icon> Select the points, then Copy the distance from the calculator window and paste it wherever you care to. An old school Analog approach, for those of us who don't write code. Upload failure message looks like this. Edited November 16, 2020 by Dadgad typos & trying to attach GIF again. 243kb won't attach? Quote
BIGAL Posted November 16, 2020 Posted November 16, 2020 Damn I created a GIF, but couldn't upload it. I have same problem which is why I don't post animations as much as I would like to. 1 Quote
Dadgad Posted November 17, 2020 Posted November 17, 2020 That's too bad. But thanks for letting me know BIGAL.It was well below the attachment limit? I must have tried about 4 times, figured I had done something wrong as it was small enough. Looked like it was and said UPLOADING...until Ah well,sorry it doesn't work. Quote
rkmcswain Posted November 17, 2020 Posted November 17, 2020 I'll try to attach a GIF here for testing. Quote
BIGAL Posted November 18, 2020 Posted November 18, 2020 rkmcswain Dont want to hi jack this post maybe move to correct location any ideas why gif will not post ? They run and can be emailed. What software do you use not a pre made like example. Quote
Dadgad Posted November 18, 2020 Posted November 18, 2020 I'm using Ace Thinker Screen Grabber Pro, other people are able to open and view them, and like BIGAL said, I email them with no problems? I usually post lots of screenshots, it would be nice to be able to upload GIFS too. Thanks for rising to the challenge and checking it out. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.