<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Automating the removal/replacement of ltypeshp.shx from all text styles. in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/automating-the-removal-replacement-of-ltypeshp-shx-from-all-text/m-p/8613805#M149140</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We've inherited some drawings with myriad Text Styles defined, some of which specify ltypeshp.shx as the Font.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Presumably, this was done in error, because I can't think why you would define a Text Style with a 'Font' that was really just a series of random shapes - but I'm happy to stand corrected on that!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, defining this 'Font' in these Text Styles interferes with the proper use of those shapes for linetypes - things like Batting, Fencelines, etc. So, I'd like to replace every instance of the 'Font', wherever it occurs in a Text Style, with something else, e.g. simplex.shx.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas how to automate that process?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2019 10:14:33 GMT</pubDate>
    <dc:creator>strawberry12</dc:creator>
    <dc:date>2019-02-22T10:14:33Z</dc:date>
    <item>
      <title>Automating the removal/replacement of ltypeshp.shx from all text styles.</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automating-the-removal-replacement-of-ltypeshp-shx-from-all-text/m-p/8613805#M149140</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We've inherited some drawings with myriad Text Styles defined, some of which specify ltypeshp.shx as the Font.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Presumably, this was done in error, because I can't think why you would define a Text Style with a 'Font' that was really just a series of random shapes - but I'm happy to stand corrected on that!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, defining this 'Font' in these Text Styles interferes with the proper use of those shapes for linetypes - things like Batting, Fencelines, etc. So, I'd like to replace every instance of the 'Font', wherever it occurs in a Text Style, with something else, e.g. simplex.shx.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas how to automate that process?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 10:14:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automating-the-removal-replacement-of-ltypeshp-shx-from-all-text/m-p/8613805#M149140</guid>
      <dc:creator>strawberry12</dc:creator>
      <dc:date>2019-02-22T10:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Automating the removal/replacement of ltypeshp.shx from all text styles.</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automating-the-removal-replacement-of-ltypeshp-shx-from-all-text/m-p/8613847#M149141</link>
      <description>&lt;P&gt;Load this lisp script and run CF - change font all text style to ISOCPEUR.ttf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;(vl-load-com)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(defun setfont (font-name / selset)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(if (findfile font-name)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(progn&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(vlax-for style&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(vla-get-textstyles&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(vla-get-activedocument (vlax-get-acad-object))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;) ;_ end of vla-get-textstyles&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(vl-catch-all-apply&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'(lambda () (vla-put-fontfile style (findfile font-name)))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;) ;_ end of VL-CATCH-ALL-APPLY&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;) ;_ end of vlax-for&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;) ;_ end of progn&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;) ;_ end of if&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;) ;_ end of defun&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(defun C:cf ()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(setfont "c:\\windows\\fonts\\&lt;STRONG&gt;ISOCPEUR.ttf&lt;/STRONG&gt;")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(redraw)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;(vla-regen (vla-get-activedocument (vlax-get-acad-object)) acactiveviewport)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 10:33:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automating-the-removal-replacement-of-ltypeshp-shx-from-all-text/m-p/8613847#M149141</guid>
      <dc:creator>alex101000</dc:creator>
      <dc:date>2019-02-22T10:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Automating the removal/replacement of ltypeshp.shx from all text styles.</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automating-the-removal-replacement-of-ltypeshp-shx-from-all-text/m-p/8613957#M149142</link>
      <description>&lt;P&gt;This is certainly a solution - but this changes ALL styles to ISCOPEUR (or whatever). I'd prefer to change only those styles that have ltypeshp.shx defined as their font&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 11:21:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automating-the-removal-replacement-of-ltypeshp-shx-from-all-text/m-p/8613957#M149142</guid>
      <dc:creator>strawberry12</dc:creator>
      <dc:date>2019-02-22T11:21:49Z</dc:date>
    </item>
  </channel>
</rss>

