Author Topic: LM:Unformat %%U & %%B  (Read 2180 times)

0 Members and 1 Guest are viewing this topic.

mailmaverick

  • Bull Frog
  • Posts: 494
LM:Unformat %%U & %%B
« 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.

JohnK

  • Administrator
  • Seagull
  • Posts: 10605
Re: LM:Unformat %%U & %%B
« Reply #1 on: October 03, 2017, 09:07:53 AM »
In this case I'd be tempted to use that super-duper one mailmaverick wrote?
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: LM:Unformat %%U & %%B
« Reply #2 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.

mailmaverick

  • Bull Frog
  • Posts: 494
Re: LM:Unformat %%U & %%B
« Reply #3 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.

mailmaverick

  • Bull Frog
  • Posts: 494
Re: LM:Unformat %%U & %%B
« Reply #4 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.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2124
  • class keyThumper<T>:ILazy<T>
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

ribarm

  • Gator
  • Posts: 3225
  • Marko Ribar, architect
Re: LM:Unformat %%U & %%B
« Reply #6 on: October 06, 2017, 08:39:38 AM »
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18