Jump to content

Copy text and paste on the top or bottom of the others text


Recommended Posts

Posted

Anybody can help make a lisp routine, copy a text and paste on the [option] Top/Above or Under/Bottom of others text by just select the base text. The copied (new) text will be aligned same as on the alignment of the based text.

 

1. After the select of the text to be copied, it will ask the "distance factor: " as

explain on the image attached.

 

COPY TEXT PASTE.jpg

2. Next, ask an option whether [T]op or ottom of the base text where the new

text paste. Pls. make as default the previous selection on the second time it run.

3. Copied text has ability to paste in many/multiple (base) text.

 

If anyone can do this routine, it can really shorten my time of works, copying text and paste into others text and exactly place with my desire text distances and alignment.

 

Many thanx!!

Posted

This is a good task to start learning lisp we will help, the steps below, but without code I would use VL it returns value you want more descriptive rather than ASSOC's. Check help for the words in bold.

 

1 Entsel pick txt

2 Gestring Above or Below

3 using VL-get HEIGHT this is text height calc diff a fudge factor * height try 1.4 * height

4 Up or down IF A or B then use copy OBJ 0,0 0,diff to new point, OBJ is from Entsel name of object

5 Getstring new text value

6 Entsel Entlast picks text just created as last object

6 VL-put new text value obj2

 

all done

Posted (edited)

If you are unfamiliar with Lee Mac's excellent website and numerous inspired free lisps, then I suggest you check it, and them out.

He offers a large number of TEXT lisps to assist with text issues, as well as just about everything else under the sun.

 

http://www.lee-mac.com/programs.html#general

 

He also offers suggestions and insights on writing lisps there.

 

Thanks Lee! :beer:

Edited by Dadgad
Posted

BIGAL,

Thank you for your Guide. But, by this time I don't have time to learn lisp cause I'm busy with my work.

But, time will come if I hav me vaccant time, I will try to learn lisp.

 

DADGAD,

I'm familiar with excellent Lee Mac's website. Thank you Lee!! But, this what I need was not there in Lee Mac's program.

 

If anyone of you have time to make this, I really appreciate!!

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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