<?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 Re: how to display only a part of a field in autocad in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10928243#M63278</link>
    <description>&lt;P&gt;Ok, I have entered in RTEXT&amp;nbsp; $(getprop, %ART-1) where ART-1 is the drawing property with value 011-210015.&lt;/P&gt;&lt;P&gt;If it is possible to get the number 0015 I would be satisfied, but what should I have to enter behind ART-1 to get this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jos.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Feb 2022 10:45:49 GMT</pubDate>
    <dc:creator>j.bongers</dc:creator>
    <dc:date>2022-02-04T10:45:49Z</dc:date>
    <item>
      <title>how to display only a part of a field in autocad</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10913049#M63271</link>
      <description>&lt;P&gt;In a block i have created a field which reads a custom dwg property, containing an article number as "011-210015"&lt;/P&gt;&lt;P&gt;Now I want to create another field in this block which returns only the last 4 caracters of this number, with trailing On, so in this case the number 15, if it was 011-210150 the number 150 etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying a diesel expression but nothing seems to work.&lt;/P&gt;&lt;P&gt;What is the best way to do this?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 11:17:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10913049#M63271</guid>
      <dc:creator>j.bongers</dc:creator>
      <dc:date>2022-01-28T11:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to display only a part of a field in autocad</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10914462#M63272</link>
      <description>&lt;P&gt;I think you can assign your target value to a variable (a little lisp) and then use the value of that variable to supply your field.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 21:10:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10914462#M63272</guid>
      <dc:creator>hencoop</dc:creator>
      <dc:date>2022-01-28T21:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to display only a part of a field in autocad</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10915348#M63273</link>
      <description>&lt;P&gt;This Diesel expression takes the last 4 characters but for some reason only once. If you change the property and regen you will see that the field text is static.&lt;/P&gt;&lt;P&gt;Change "test" to the name of your custom property.&lt;/P&gt;&lt;P&gt;$(substr, %&amp;lt;\AcVar CustomDP.test&amp;gt;%, $(-, $(strlen, %&amp;lt;\AcVar CustomDP.test&amp;gt;%), 3))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So to really solve this you need a piece of AutoLISP reactor that saves the custom property as USERS1 and then have the Diesel like:&lt;/P&gt;&lt;P&gt;$(substr, $(getvar,USERS1), $(-, $(strlen, $(getvar,USERS1)), 3))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want help with that &lt;A href="https://jtbworld.com/contact" target="_blank" rel="noopener"&gt;contact me&lt;/A&gt; directly or if you could have the article number in Excel you can use our app&amp;nbsp;&lt;A href="https://jtbworld.com/jtb-excel2textfield" target="_blank"&gt;JTB Excel2TextField&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 13:24:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10915348#M63273</guid>
      <dc:creator>JTBWorld</dc:creator>
      <dc:date>2022-01-29T13:24:23Z</dc:date>
    </item>
    <item>
      <title>Betreff: how to display only a part of a field in autocad</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10917228#M63274</link>
      <description>&lt;P&gt;It you need it for users with ExpressTools installed, &lt;A href="http://$(fix,$(substr,$(getprop,%20%ART),$(-,$(strlen,$(getprop, %ART)),3),4))" target="_blank" rel="noopener"&gt;use RTEXT&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/405101"&gt;@JTBWorld&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is what it is, simple rule: You can not nest a field inside an diesel field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jan 2022 22:59:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10917228#M63274</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-01-30T22:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to display only a part of a field in autocad</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10922093#M63275</link>
      <description>&lt;P&gt;Without any need for diesel expressions and lisp reactors you could divide your dwg property into several dwg properties and make the block attribute a combination of several fields each referring to a different property. If you want to represent part of that total value somewhere else you can directly refer to the separate dwg property that contains the value that you wish to represent.&lt;BR /&gt;&lt;BR /&gt;Or check out &lt;A href="https://forums.autodesk.com/t5/autocad-forum/partial-field-in-attribute/td-p/1276861" target="_blank" rel="noopener"&gt;this&lt;/A&gt; old forum post about a similar issue.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 21:33:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10922093#M63275</guid>
      <dc:creator>Michiel.Valcke</dc:creator>
      <dc:date>2022-02-01T21:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to display only a part of a field in autocad</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10922949#M63276</link>
      <description>&lt;P&gt;I was more thinking of a way to mock up the field, so not by programming but by blinding off the first part.&lt;/P&gt;&lt;P&gt;That would be easier to do, but it seems that although Autocad has a lot of possibilities, they didn't think of that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jos.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 09:36:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10922949#M63276</guid>
      <dc:creator>j.bongers</dc:creator>
      <dc:date>2022-02-02T09:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to display only a part of a field in autocad</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10924221#M63277</link>
      <description>&lt;P&gt;It would works with a diesel expression, but there is no native diesel function to read dwgprops (and nested fields in diesel fields not possible).&lt;/P&gt;
&lt;P&gt;The only way I know, see post #4, RTEXT.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 19:29:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10924221#M63277</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-02-02T19:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to display only a part of a field in autocad</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10928243#M63278</link>
      <description>&lt;P&gt;Ok, I have entered in RTEXT&amp;nbsp; $(getprop, %ART-1) where ART-1 is the drawing property with value 011-210015.&lt;/P&gt;&lt;P&gt;If it is possible to get the number 0015 I would be satisfied, but what should I have to enter behind ART-1 to get this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jos.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 10:45:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10928243#M63278</guid>
      <dc:creator>j.bongers</dc:creator>
      <dc:date>2022-02-04T10:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to display only a part of a field in autocad</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10928288#M63279</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt; kidding me? &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first you asked for:&lt;/P&gt;
&lt;P&gt;"011-210015" ==&amp;gt; "15"&lt;/P&gt;
&lt;P&gt;"011-210315" ==&amp;gt; "315"&lt;/P&gt;
&lt;P&gt;"011-214315" ==&amp;gt; "4315"&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"Now I want to create another field in this block which returns only the last 4 caracters of this number, with trailing On,"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"so in this case the number 15, if it was 011-210150 the number 150 etc."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10913049#M1071552" target="_blank"&gt;https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10913049#M1071552&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I posted the solution in my hidden Link &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; , &lt;A href="https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10917228#M1071689" target="_blank" rel="noopener"&gt;read my post #4&lt;/A&gt;, and copy the link url from "&lt;A href="http://$(fix,$(substr,$(getprop,%20%ART),$(-,$(strlen,$(getprop,%20%ART)),3),4))" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;use RTEXT&lt;/STRONG&gt;&lt;/A&gt;" link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And now you want "011-210015" =&amp;gt; "0015" &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but okay, it is &lt;A href="http://$(substr,$(getprop,%20%ART),$(-,$(strlen,$(getprop,%20%ART)),3),4)" target="_blank" rel="noopener"&gt;&lt;U&gt;also possible&lt;/U&gt;&lt;/A&gt; by remove the FIX part of my DieselExpression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 11:24:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10928288#M63279</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-02-04T11:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to display only a part of a field in autocad</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10928926#M63280</link>
      <description>&lt;P&gt;No, I am not kidding, but at some point I am doing what wrong, so I automatically assumed that 0015 would be easier.&lt;/P&gt;&lt;P&gt;Here is wat I get , the figure "-2" I have put behind your Diesel expression, because otherwise I cannot find it anymore on the drawing.&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Jos.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jbongers_0-1643988560903.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1020845iA077B95B11DAD693/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jbongers_0-1643988560903.png" alt="jbongers_0-1643988560903.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 15:29:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10928926#M63280</guid>
      <dc:creator>j.bongers</dc:creator>
      <dc:date>2022-02-04T15:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to display only a part of a field in autocad</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10929007#M63281</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11986084"&gt;@j.bongers&lt;/a&gt;&amp;nbsp; schrieb:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;so I automatically assumed that 0015 would be easier.&lt;/P&gt;
&lt;P&gt;That's right! But I already posted the solution for 15, 115 or 1115&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "-2" is to much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It wasn't part of the link and not written in my PM,&lt;/P&gt;
&lt;P&gt;I don't know from where the "-2" came?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;again&lt;/P&gt;
&lt;P&gt;$(fix,$(substr,$(getprop,%ART),$(-,$(strlen,$(getprop,%ART)),3),4))&lt;/P&gt;
&lt;P&gt;for the version without leading zeros and&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="http://$(substr,$(getprop,%20%ART),$(-,$(strlen,$(getprop,%20%ART)),3),4)" target="_blank" rel="nofollow noopener noreferrer"&gt;$(substr,$(getprop,%ART),$(-,$(strlen,$(getprop,%ART)),3),4)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;for "the last 4 chars"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 16:00:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10929007#M63281</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-02-04T16:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to display only a part of a field in autocad</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10929024#M63282</link>
      <description>&lt;P&gt;ahhh&lt;/P&gt;
&lt;P&gt;I saw the other problem.&lt;/P&gt;
&lt;P&gt;The link edited my Diesel-String, all "%" swaps to "%20%", oups.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I correct this in the post above, try it again with both DieselExpressions&lt;/P&gt;
&lt;P&gt;and your Sample Art.Number *0015&lt;/P&gt;
&lt;P&gt;*0215 and *6215&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 16:05:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10929024#M63282</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-02-04T16:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to display only a part of a field in autocad</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10929041#M63283</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marvelous...... this a good solution!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jos Bongers&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 16:12:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-display-only-a-part-of-a-field-in-autocad/m-p/10929041#M63283</guid>
      <dc:creator>j.bongers</dc:creator>
      <dc:date>2022-02-04T16:12:59Z</dc:date>
    </item>
  </channel>
</rss>

