SLW210 Posted March 15, 2016 Share Posted March 15, 2016 Sorry for the above garbage, but it was an image. Not sure what happened All you had to do was select "Edit Post" on lower right and fix it. How to upload files to the forum? Quote Link to comment Share on other sites More sharing options...
Corro Posted March 15, 2016 Share Posted March 15, 2016 Hi Lee Still does not work. I have attached a sample of the attribute / polyline Area dwg and a copy of my modified version of your lisp routine. Thanks for your help. Attrib Area Test.dwg Areas2AttributeV1-10.lsp Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 15, 2016 Share Posted March 15, 2016 Still does not work. I have attached a sample of the attribute / polyline Area dwg and a copy of my modified version of your lisp routine. Of course it doesn't - looking at your drawing, I see that you are using a single-line attribute which doesn't support MText formatting - as per my earlier response: Since you state that you are using my Area Field to Attribute program, are you using multiline attributes? (As single-line attributes cannot support MText Formatting) Quote Link to comment Share on other sites More sharing options...
Corro Posted March 15, 2016 Share Posted March 15, 2016 Hi Lee Sorry, my bad. I had not used multiline attributes before. It now works as you said. Thanks heaps Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 15, 2016 Share Posted March 15, 2016 You're welcome - But note that modifying the attribute value 'manually' will remove the formatting (as such formatting when used in conjunction with MAttributes is not officially supported in AutoCAD). Quote Link to comment Share on other sites More sharing options...
Corro Posted March 15, 2016 Share Posted March 15, 2016 Hi Lee Everyone is excited that we now have this working, but a question has been asked, is it possible to move the M squared out of the field area. It can stay the same colour as the value, magenta. Quote Link to comment Share on other sites More sharing options...
Corro Posted March 16, 2016 Share Posted March 16, 2016 Hi Lee We are extracting the attribute data to an Excel spread sheet, but the formatting is being included with the data, refer attached screen grabs. Is there a way to resolve? Thanks again Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 16, 2016 Share Posted March 16, 2016 We are extracting the attribute data to an Excel spread sheet, but the formatting is being included with the data, refer attached screen grabs.Is there a way to resolve? Thanks again Unfortunately not, as AutoCAD is not expecting to find MText formatting codes within attribute content (for the reasons I have given above). Quote Link to comment Share on other sites More sharing options...
Corro Posted March 16, 2016 Share Posted March 16, 2016 Hi Lee Are you able to move the m squared outside of the field, like the (PAD), but can remain the same color and text size? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 16, 2016 Share Posted March 16, 2016 Yes, change the field formatting to: "%lu2%ct8[1e-006]" And change the other two lines to: ">%).Area \\f \"" fmt "\">%[highlight]m²[/highlight] \\H0.722x;\\C4;(PAD)" " \\f \"" fmt "\">%[highlight]m²[/highlight] \\H0.722x;\\C4;(PAD)" Quote Link to comment Share on other sites More sharing options...
Corro Posted March 16, 2016 Share Posted March 16, 2016 Thank you, thank you, thank you Quote Link to comment Share on other sites More sharing options...
Corro Posted April 13, 2016 Share Posted April 13, 2016 Hi All We have been using the routing that Lee so kindly resolved for us, but now have a requirement to be able to enter multiline, with spaces, into one of the attributes. Is this possible? Thanks Quote Link to comment Share on other sites More sharing options...
Corro Posted April 14, 2016 Share Posted April 14, 2016 Sorry I meant to attached sample files. The dwg file is the attributed block we are inserting and need to enter the CODE number and the BRAND name into attrib. The BRAND name is to be able to have spaces and also may have multiple lines of text. Areas2AttributeV2.lsp AREA_ATTRIB_S.dwg 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.