<?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 Content Center Input and Filename - Trim trailing and leading zeros from input in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/content-center-input-and-filename-trim-trailing-and-leading/m-p/12096528#M41490</link>
    <description>&lt;P&gt;We have many content center families with an input for the dimensions of the part - for example, wood where the user inputs the length. The filename is set from the wood board size and the length input by the user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One issue we have is that there does not seem to be a way to trim trailing or leading zeroes. As a result, for a 10" piece of wood, the inputs 10.0, 010, 10.00, and 10 will result in four different files for the same exact part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to trim leading zeroes from the input so that all of the above inputs would result in the same filename?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More info if it helps:&lt;/P&gt;&lt;P&gt;The File Name is an identifier for the family, with a dash, and the the PARTNUMBER column. Here is the properties page for the PARTNUMBER column:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Matthew_Policelli_0-1689165899445.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1239481i139327DCF9984E59/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Matthew_Policelli_0-1689165899445.png" alt="Matthew_Policelli_0-1689165899445.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2023 12:47:05 GMT</pubDate>
    <dc:creator>Matthew_Policelli</dc:creator>
    <dc:date>2023-07-12T12:47:05Z</dc:date>
    <item>
      <title>Content Center Input and Filename - Trim trailing and leading zeros from input</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/content-center-input-and-filename-trim-trailing-and-leading/m-p/12096528#M41490</link>
      <description>&lt;P&gt;We have many content center families with an input for the dimensions of the part - for example, wood where the user inputs the length. The filename is set from the wood board size and the length input by the user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One issue we have is that there does not seem to be a way to trim trailing or leading zeroes. As a result, for a 10" piece of wood, the inputs 10.0, 010, 10.00, and 10 will result in four different files for the same exact part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to trim leading zeroes from the input so that all of the above inputs would result in the same filename?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More info if it helps:&lt;/P&gt;&lt;P&gt;The File Name is an identifier for the family, with a dash, and the the PARTNUMBER column. Here is the properties page for the PARTNUMBER column:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Matthew_Policelli_0-1689165899445.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1239481i139327DCF9984E59/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Matthew_Policelli_0-1689165899445.png" alt="Matthew_Policelli_0-1689165899445.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 12:47:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/content-center-input-and-filename-trim-trailing-and-leading/m-p/12096528#M41490</guid>
      <dc:creator>Matthew_Policelli</dc:creator>
      <dc:date>2023-07-12T12:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Content Center Input and Filename - Trim trailing and leading zeros from input</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/content-center-input-and-filename-trim-trailing-and-leading/m-p/12096616#M41491</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10280113"&gt;@Matthew_Policelli&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hi, Matthew.&amp;nbsp; After some quick testing, I don't see any way to set this so that it can trim the zeroes as you suggest.&amp;nbsp; I've asked internally if there is any way to limit what acceptable formats can be entered here for length, but it may be a training issue for your users.&amp;nbsp; I'm hoping to get some feedback, and I will follow up if I hear anything.&lt;BR /&gt;&lt;BR /&gt;Meanwhile, I open the floor to our community experts to tell me that I'm way off on this one!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Maybe there is a custom solution out there, or an obvious one that I've missed?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 13:17:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/content-center-input-and-filename-trim-trailing-and-leading/m-p/12096616#M41491</guid>
      <dc:creator>CGBenner</dc:creator>
      <dc:date>2023-07-12T13:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Content Center Input and Filename - Trim trailing and leading zeros from input</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/content-center-input-and-filename-trim-trailing-and-leading/m-p/12096883#M41492</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10280113"&gt;@Matthew_Policelli&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've been reminded of &lt;A href="https://forums.autodesk.com/t5/inventor-forum/content-center-filename-part-number-length-precision-and-format/td-p/10595125#M839868" target="_blank" rel="noopener"&gt;&lt;EM&gt;&lt;STRONG&gt;THIS&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/A&gt;thread from a while back relating a very similar question, and offering&amp;nbsp; couple of ways to solve this.&amp;nbsp; Maybe something in here can be of help to you?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 14:42:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/content-center-input-and-filename-trim-trailing-and-leading/m-p/12096883#M41492</guid>
      <dc:creator>CGBenner</dc:creator>
      <dc:date>2023-07-12T14:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Content Center Input and Filename - Trim trailing and leading zeros from input</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/content-center-input-and-filename-trim-trailing-and-leading/m-p/14116063#M410499</link>
      <description>&lt;P&gt;Sorry I never got back to this. This comes up every once in a while and I get back to it - today I tried setting up a column to round the user input which will trim leading and trailing zeros.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this formula in the Height_Cleanup column, for example: (round(({HEIGHT}*16 ul)/1 in)*1 in)/16 ul, where our tolerance is +/- 1/16"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then set the filename, member, and linked part parameters to this Height_Cleanup column instead of Height (which is the one the user inputs).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This did trim extra zeros for the file name and in the part, but the disadvantage is that because the key parameter is set to the formula, doing a change size afterwards returns the formula instead of the value:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Matthew_Policelli_0-1777904022669.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1637628i9F1C1D2DE18D3181/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Matthew_Policelli_0-1777904022669.png" alt="Matthew_Policelli_0-1777904022669.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I can make it so that just the member and filename are trimmed, but then if the first file of a given size is made with leading or trailing zeros, that part will always have those leading or trailing zeros in the change size dialog. This is probably fine, since it's just a visual thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, I could use iLogic to detect if a filename's custom inputs have leading/trailing zeros, and replace it with a cleaned up version when the user saves. This would probably be cleaner than adding a "cleanup" column to every single Content Center family that has custom inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end though, these are just workarounds, and I feel like there should be a way to set number formatting for input columns on the Content Table level. This is something that can be done in Excel cells, so it is not unheard of.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 14:55:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/content-center-input-and-filename-trim-trailing-and-leading/m-p/14116063#M410499</guid>
      <dc:creator>Matthew_Policelli</dc:creator>
      <dc:date>2026-05-04T14:55:18Z</dc:date>
    </item>
  </channel>
</rss>

