TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: mohan on June 19, 2015, 02:14:36 PM

Title: Text Over-Lapping
Post by: mohan on June 19, 2015, 02:14:36 PM
As i explain in the cad file inside to save time by some lisp routines

thanks
Title: Re: Text Over-Lapping
Post by: ribarm on June 19, 2015, 03:04:29 PM
Welcome to theswamp... Unfortunately we also don't have time for this after brief examining of posted DWG. I am not telling that it's not doable, but there are much issues to be checked if the code is to be written (text orientation, overlapping, extraction of data from attribute of block and result would be maybe not exact as it should as if you're to be doing it like you've started - manually)... If you have that number of blocks than coding isn't the best choice... If you have n * 1000 those blocks coding is the best, but you have to consider those stated issues...
Title: Re: Text Over-Lapping
Post by: ur_naz on June 19, 2015, 04:19:05 PM
i am too lazy to write code, but in few words:
select polylines
select blocks for each polyline
for each block
 - get attachment point
 - get first deriv
 - get attribute value
 - generate random number (155.34 --> 155.338)
 - create text
Title: Re: Text Over-Lapping
Post by: mohan on July 05, 2015, 05:28:05 AM
Many thanks to ribarm & ur_naz for replied to my thread

Need help :|,
Atleast please write a small lisp routine that will Rotate the selected text Perpendicular to the nearest polyline as shown in the image

thanks
mohan

''Sorry for my english''
Title: Re: Text Over-Lapping
Post by: Sam on July 06, 2015, 01:52:34 AM
dear sir
for u r reference Align text program by LEE MAC SIR

http://lee-mac.com/dtcurve.html (http://lee-mac.com/dtcurve.html)