alanjt Posted November 4, 2009 Share Posted November 4, 2009 (edited) TextMatch will allow the user to select a source MText/Text object, then match the specified properties to all selected MText/Text objects. Properties available: "AttachmentPoint" "BackgroundFill" "Color" "Height" "Layer" "PlotStyleName" "Rotation" "ScaleFactor" "StyleName" "TextString" "Width" For now, I'm using the vla style names, but if it deems useful, I'll modify to be a little more user friendly. In regards to that AttachmentPoint = Justification. Call with: TextMatch or TM All comments are welcome and quite useful. Originally started here as a way to match text properties but ignore rotation. As you can see, I got a little carried away. TextMatch.LSP Edited October 12, 2010 by alanjt Quote Link to comment Share on other sites More sharing options...
Freerefill Posted November 6, 2009 Share Posted November 6, 2009 Very nice, Alan! That's a great little toy. Getting carried away is never a bad thing. We wouldn't have a tenth of the stuff we do today if someone, somewhere didn't step up and say, "What else could I do with this?" Quote Link to comment Share on other sites More sharing options...
alanjt Posted November 6, 2009 Author Share Posted November 6, 2009 Very nice, Alan! That's a great little toy. Getting carried away is never a bad thing. We wouldn't have a tenth of the stuff we do today if someone, somewhere didn't step up and say, "What else could I do with this?" HaHa, I just posted in the original thread, asking if this had sorted everything out since I hadn't seen a response in 2 days. Thanks. After looking at Match Properties, I wanted to see how much I could mimic it, without too much coding. The list box seemed like a good idea, since any additional options could be easily added/removed. Quote Link to comment Share on other sites More sharing options...
rfarah Posted December 8, 2009 Share Posted December 8, 2009 TextMatch will allow the user to select a source MText/Text object, then match the specified properties to all selected MText/Text objects. Properties available: "AttachmentPoint" "BackgroundFill" "Color" "Height" "Layer" "PlotStyleName" "Rotation" "ScaleFactor" "StyleName" "TextString" "Width" For now, I'm using the vla style names, but if it deems useful, I'll modify to be a little more user friendly. In regards to that AttachmentPoint = Justification. Call with: TextMatch or TM All comments are welcome and quite useful. [ATTACH]15304[/ATTACH] [ATTACH]15305[/ATTACH] [ATTACH]15306[/ATTACH] [ATTACH]15307[/ATTACH] Originally started here as a way to match text properties but ignore rotation. As you can see, I got a little carried away. it really nice, but is there a possibility to match Mtext height & width...because i have tried to match width but no action, if i match with Text it works...please advise. thanks Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted December 8, 2009 Share Posted December 8, 2009 Hehe that'll test him... delving into MText formatting codes is the point of no return... Quote Link to comment Share on other sites More sharing options...
alanjt Posted December 8, 2009 Author Share Posted December 8, 2009 it really nice, but is there a possibility to match Mtext height & width...because i have tried to match width but no action, if i match with Text it works...please advise.thanks Maybe I don't understand your request, but it will match height and width. Quote Link to comment Share on other sites More sharing options...
lpseifert Posted December 8, 2009 Share Posted December 8, 2009 Hehe that'll test him... delving into MText formatting codes is the point of no return... A formidable task... I see you've done it. http://www.cadtutor.net/forum/showthread.php?t=37230&page=2&highlight=MATCH+TEXT Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted December 8, 2009 Share Posted December 8, 2009 A formidable task... I see you've done it.http://www.cadtutor.net/forum/showthread.php?t=37230&page=2&highlight=MATCH+TEXT ...Yup .. Quote Link to comment Share on other sites More sharing options...
alanjt Posted December 8, 2009 Author Share Posted December 8, 2009 OK, now I understand what you are asking for. Yeah, as Lee has shown, it's possible. However, messing with formatting codes in MText is a hairy area to play around in. Even Lee's code has a nasty trade off of losing all other formatting code and symbols will be replaced with a "?", within the MText object. I'm not interested in bugging up the code for one little missing ability. If you are really needing something like that, you are welcome to use Lee's, but even his has a few bugs (no offense to you Lee, I'm just stating the facts). Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted December 8, 2009 Share Posted December 8, 2009 OK, now I understand what you are asking for. Yeah, as Lee has shown, it's possible. However, messing with formatting codes in MText is a hairy area to play around in. Even Lee's code has a nasty trade off of losing all other formatting code and symbols will be replaced with a "?", within the MText object.I'm not interested in bugging up the code for one little missing ability. If you are really needing something like that, you are welcome to use Lee's, but even his has a few bugs (no offense to you Lee, I'm just stating the facts). None taken Alan - I'm no expert with MText formatting codes, and I've seen members over at theSwamp produce reams and reams of code to account for all the combinations... I haven't got time for that... Quote Link to comment Share on other sites More sharing options...
alanjt Posted December 8, 2009 Author Share Posted December 8, 2009 None taken Alan - I'm no expert with MText formatting codes, and I've seen members over at theSwamp produce reams and reams of code to account for all the combinations... I haven't got time for that... I have no interest in bothering with it either, but I wanted to state my case and I had to use your code as an example. Quote Link to comment Share on other sites More sharing options...
Catsmeat Posted June 10, 2010 Share Posted June 10, 2010 Noob question, how do I use this? Do I need to download something? Paste something inot a script? I don't know how to get it from the web into my autocad. Thanks Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 10, 2010 Author Share Posted June 10, 2010 Noob question, how do I use this? Do I need to download something? Paste something inot a script? I don't know how to get it from the web into my autocad. Thanks LT won't run LISP. Quote Link to comment Share on other sites More sharing options...
Catsmeat Posted June 10, 2010 Share Posted June 10, 2010 Oh that's a shame, guess i'll have to do some (a lot) manual editing *sigh* Thanks for the quick reply. Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 10, 2010 Author Share Posted June 10, 2010 Oh that's a shame, guess i'll have to do some (a lot) manual editing *sigh*Thanks for the quick reply. No problem. Sorry to be the bearer of bad news. Quote Link to comment Share on other sites More sharing options...
Catsmeat Posted June 10, 2010 Share Posted June 10, 2010 Ha=) I found a workaround. I select evertything and then use the filter command to deselect everything but the text, and then I can apply the changes I need from the properties dialogue=) Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 10, 2010 Author Share Posted June 10, 2010 Ha=) I found a workaround. I select evertything and then use the filter command to deselect everything but the text, and then I can apply the changes I need from the properties dialogue=)Also look at the QSelect command. Quote Link to comment Share on other sites More sharing options...
Catsmeat Posted June 10, 2010 Share Posted June 10, 2010 Also look at the QSelect command. Thanks. Qselect works like a charm=) If everyone here on the forum are as friendly as you then I've come to a very nice place. Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 10, 2010 Author Share Posted June 10, 2010 Thanks. Qselect works like a charm=) If everyone here on the forum are as friendly as you then I've come to a very nice place. You're in luck, I have the worst attitude out of everyone. Enjoy. Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 10, 2010 Author Share Posted June 10, 2010 You should run through this thread, there's tons of good information. http://www.cadtutor.net/forum/showthread.php?t=11722 Quote Link to comment Share on other sites More sharing options...
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.