TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: mailmaverick on October 03, 2017, 02:15:39 AM

Title: LM:Unformat %%U & %%B
Post by: mailmaverick on October 03, 2017, 02:15:39 AM
Hi all,

Lee Mac has an excellent function LM:Unformat and I use it lot of times. However, it does not remove %%U and %%B from the string. Please guide me how to remove it and all other types of formatting.
Title: Re: LM:Unformat %%U & %%B
Post by: JohnK on October 03, 2017, 09:07:53 AM
In this case I'd be tempted to use that super-duper one mailmaverick wrote?
Title: Re: LM:Unformat %%U & %%B
Post by: roy_043 on October 03, 2017, 09:47:53 AM
I do not recognise %%B and AFAIK %%U only works in text entities not mtext entities. %%C, %%D and %%P can be used in mtexts though.
Title: Re: LM:Unformat %%U & %%B
Post by: mailmaverick on October 03, 2017, 08:25:36 PM
I have certain text entities and mtext entities for which I want to remove all formatting and get only the unformatted string.
Title: Re: LM:Unformat %%U & %%B
Post by: mailmaverick on October 05, 2017, 12:24:21 PM
In this case I'd be tempted to use that super-duper one mailmaverick wrote?
Dear John, in case only %%B and %%U are to be replaced, I can do it through vl-string-subst but there may be many other formattings which I am not aware of and I want to remove all of them. Please guide me.
Title: Re: LM:Unformat %%U & %%B
Post by: kdub_nz on October 05, 2017, 06:44:03 PM

http://adndevblog.typepad.com/autocad/2017/09/dissecting-mtext-format-codes.html
Title: Re: LM:Unformat %%U & %%B
Post by: ribarm on October 06, 2017, 08:39:38 AM
https://www.theswamp.org/index.php?topic=31584.0
Title: Re: LM:Unformat %%U & %%B
Post by: roy_043 on October 18, 2017, 11:36:03 AM
http://help.autodesk.com/view/ACD/2018/ENU/?guid=GUID-7D8BB40F-5C4E-4AE5-BD75-9ED7112E5967