Jump to content
ScoRm

(Quick Help) line length to clipboard

Recommended Posts

ScoRm

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 by ScoRm

Share this post


Link to post
Share on other sites
BIGAL

"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 by BIGAL

Share this post


Link to post
Share on other sites
ScoRm
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.

Share this post


Link to post
Share on other sites
BIGAL

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)
	)
)

 

 

Share this post


Link to post
Share on other sites
ScoRm
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!

 

 

  • Like 1

Share this post


Link to post
Share on other sites
BIGAL

No worries just had to find it. I would change the get point to a entsel and get length so can do plines etc.

Share this post


Link to post
Share on other sites
Dadgad

It looks like BIGAL has gotten you pretty well squared away already, late to the party!   :thumbsup:

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.  :beer:

 

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.

image.thumb.png.3cb8e52b260149b6876e285f847732c6.png

Edited by Dadgad
typos & trying to attach GIF again. 243kb won't attach?

Share this post


Link to post
Share on other sites
BIGAL

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.

  • Like 1

Share this post


Link to post
Share on other sites
Dadgad

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  :nono:  Ah well,sorry it doesn't work.   :beer:

Share this post


Link to post
Share on other sites
rkmcswain

I'll try to attach a GIF here for testing.

 

GWXT4fi.gif

Share this post


Link to post
Share on other sites
BIGAL

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.

Share this post


Link to post
Share on other sites
Dadgad

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.   :beer:

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...