Jump to content

Set Mtext tab distance via lisp


dan_g8

Recommended Posts

Hi, i have a long Mtext list which has been created externally from my office, the first 25 characters is the material name followed by the quantity. I need to get the quantity part of each line to line up currently it requires a user to use the space bar to line up the quantity part of the line, this is time consuming and not the most fun thing to do when you have 100's of lines to fix.

 

Is there a way that i can set the tab distance via a lisp and loop down each line removing everywhere where there is more than a single space and replace it with a tab(chr 9)?

 

Currently it comes in as follows, the problem is that spaces and the letters are not the same width:

 

Bricks 10000

4x2 wooden planks 6000

white doors 6

 

thanks in advanced.

 

Dan

Link to comment
Share on other sites

One no programming way. Open file in Word replace space with ^t then just copy paste into mtext

 

Ok another pick MTEXT select all, choose Columns.

 

Bring text into mtext pick it then FIND replace space with \U+0009 will insert tabs.

 

A good link about setting tabs http://www.augi.com/library/autocad-tricks-for-mtext-beyond-the-basics1

 

Mtext tabs.jpg

Edited by BIGAL
Link to comment
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
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...