<?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: Screw with variable length in 3D Part &amp; Assembly Design</title>
    <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564032#M67924</link>
    <description>&lt;P&gt;ASK_FOR _INPUT is just a user defined parameter (type YES_NO), so you can name it anything you want. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might need to create that parameter first before putting all the other code in.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Aug 2018 07:25:03 GMT</pubDate>
    <dc:creator>HamsterNL</dc:creator>
    <dc:date>2018-08-01T07:25:03Z</dc:date>
    <item>
      <title>Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/563993#M67915</link>
      <description>&lt;P&gt;I want to create a library part of a screw, as a skeleton. The screw geometry will then be copied over to another part via copy geometry, with a specific length to suit the design need. How do I allow the user to adjust the length each time the geometry is copied over? I tried using pro/program with an input prompt on the length but it will prompt for the length input each time it's regenerated, not good. I just need the length input&amp;nbsp;once, how to do it? Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 00:58:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/563993#M67915</guid>
      <dc:creator>BHOoi</dc:creator>
      <dc:date>2018-08-01T00:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564018#M67916</link>
      <description>&lt;P&gt;Usually you want to create a &lt;A title="Family Table" href="http://support.ptc.com/help/creo/creo_pma/usascii/index.html#page/fundamentals/fundamentals/fund_ten_sub/About_Family_Tables_1.html" target="_blank"&gt;Family Table&lt;/A&gt;&amp;nbsp;for screws.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 06:06:14 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564018#M67916</guid>
      <dc:creator>HamsterNL</dc:creator>
      <dc:date>2018-08-01T06:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564023#M67917</link>
      <description>&lt;P&gt;Yes, Family Table is one way and it's easier to deal with. But the table can only cater for predefined lengths. In my case, I would like the length to be a variable and to be set by the user prior to the copy geometry. Any idea?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 06:38:42 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564023#M67917</guid>
      <dc:creator>BHOoi</dc:creator>
      <dc:date>2018-08-01T06:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564026#M67918</link>
      <description>&lt;P&gt;Ok...so how about &lt;A title="Flexible Components" href="http://support.ptc.com/help/creo/creo_optm/usascii/index.html#page/optm%2Foptions_modeler%2Fasm_six_sub%2FAbout_Flexible_Components.html%23" target="_blank"&gt;Flexible Components&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 06:46:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564026#M67918</guid>
      <dc:creator>HamsterNL</dc:creator>
      <dc:date>2018-08-01T06:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564027#M67919</link>
      <description>&lt;P&gt;Or using your skeleton as a &lt;A title="Start Part" href="http://support.ptc.com/help/creo/creo_optm/usascii/index.html#page/optm%2Foptions_modeler%2Fasm_one_sub%2FUsing_Start_Components_and_Default_Templates.html" target="_blank"&gt;Start Part&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 06:51:44 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564027#M67919</guid>
      <dc:creator>HamsterNL</dc:creator>
      <dc:date>2018-08-01T06:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564028#M67920</link>
      <description>&lt;P&gt;Does it work on the part/skeleton level? In my application, this will reside in skeleton part.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 06:52:21 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564028#M67920</guid>
      <dc:creator>BHOoi</dc:creator>
      <dc:date>2018-08-01T06:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564029#M67921</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/169554"&gt;@BHOoi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I tried using pro/program with an input prompt on the length but it will prompt for the length input each time it's regenerated, not good. I just need the length input&amp;nbsp;once, how to do it? Thanks for your help.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You could try this. Your part will need to have a default length of 999. If you regenerate, PRO/Program will ask for input because ASK_FOR_INPUT is YES.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As soon as you enter a different value, ASK_FOR_INPUT will become NO, and PRO/Program will stop asking for input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;VERSION 4.0
REVNUM 527
LISTING FOR PART PRT0001

INPUT
 IF ASK_FOR_INPUT == YES
     CUSTOM_LENGTH NUMBER
 END IF
END INPUT

RELATIONS
IF CUSTOM_LENGTH &amp;lt;&amp;gt; 999
   ASK_FOR_INPUT = NO
ELSE
   ASK_FOR_INPUT = YES
ENDIF
END RELATIONS&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Aug 2018 07:05:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564029#M67921</guid>
      <dc:creator>HamsterNL</dc:creator>
      <dc:date>2018-08-01T07:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564030#M67922</link>
      <description>&lt;P&gt;Oh, if you want, you can rewrite the IF...THEN statement to a single line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ASK_FOR_INPUT = (CUSTOM_LENGTH == 999)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 07:08:44 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564030#M67922</guid>
      <dc:creator>HamsterNL</dc:creator>
      <dc:date>2018-08-01T07:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564031#M67923</link>
      <description>&lt;P&gt;I am still on Creo 2.0. Is that "ASK_FOR_INPUT" available in Creo 2.0?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 07:21:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564031#M67923</guid>
      <dc:creator>BHOoi</dc:creator>
      <dc:date>2018-08-01T07:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564032#M67924</link>
      <description>&lt;P&gt;ASK_FOR _INPUT is just a user defined parameter (type YES_NO), so you can name it anything you want. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might need to create that parameter first before putting all the other code in.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 07:25:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564032#M67924</guid>
      <dc:creator>HamsterNL</dc:creator>
      <dc:date>2018-08-01T07:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564060#M67925</link>
      <description>&lt;P&gt;In the end, you can simplify this to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;INPUT
 IF CUSTOM_LENGTH  == 999
     CUSTOM_LENGTH NUMBER
 END IF
END INPUT&lt;/PRE&gt;
&lt;P&gt;So you&amp;nbsp;won't need the ASK_FOR_INPUT parameter, nor any code in the RELATIONS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then save your part as a Start Part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If a user want to use that screw, he starts a new part, deselects "Use default template", then selects your start part. After the new part is open, he can regenerate the part and enter a length for CUSTOM_LENGTH. He can then save the part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your only problem&amp;nbsp;now is how your users will name that screw &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 09:13:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564060#M67925</guid>
      <dc:creator>HamsterNL</dc:creator>
      <dc:date>2018-08-01T09:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564068#M67926</link>
      <description>&lt;P&gt;Thanks, this works to a certain extent.&lt;/P&gt;
&lt;P&gt;The screw skeleton that I have needs to cater for different lengths depending on the design scenarios and may end up 2 or 3 types but only different in length for a same project. I want to make that skeleton as the generic just like the way how family table works.&lt;/P&gt;
&lt;P&gt;You are right, if we generate from a template and store them separately then there won't be any relation between them.&lt;/P&gt;
&lt;P&gt;You suggestion is still helpful and I will think how to make use of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 09:27:59 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564068#M67926</guid>
      <dc:creator>BHOoi</dc:creator>
      <dc:date>2018-08-01T09:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564102#M67927</link>
      <description>&lt;P&gt;I've found, the hard way, that having only predefined lengths of screws and other fasteners is the way to guarantee that only available hardware is being used by designers. Otherwise, I end up with the (not a hypothetical situation) use of things like 13mm long M6 screws, or 2mm long 4mm diameter dowels (?). And it's not just with regards to dimensions, but also materials; an M6x1.00 may be available at 14mm length in steel, but not with a zinc plating, etc.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 11:01:25 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564102#M67927</guid>
      <dc:creator>KenFarley</dc:creator>
      <dc:date>2018-08-01T11:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564119#M67928</link>
      <description>&lt;P&gt;Another thought would be to use an inheritance feature instead of a copy geometry.&amp;nbsp; In an inheritance feature, you can allow certain items to vary, so the screw could be modeled complete as the generic and each inherited model would allow for the length to vary.&amp;nbsp; Not sure how you'd integrate a prompt for length in there, but editing one feature isn't that difficult.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would tend to agree with &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/21673"&gt;@KenFarley&lt;/a&gt;, however.&amp;nbsp; A predefined family table with specific screw options may be better.&amp;nbsp; This will prevent specifying screws that don't exist and can encourage your designers to limit themselves to the screws that you typically stock.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 12:36:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564119#M67928</guid>
      <dc:creator>dgschaefer</dc:creator>
      <dc:date>2018-08-01T12:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564126#M67929</link>
      <description>&lt;P&gt;yes! I ended up using inheritance feature. One issue with this is that it copies entire file over. Anyway, thanks for the input&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 12:57:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564126#M67929</guid>
      <dc:creator>BHOoi</dc:creator>
      <dc:date>2018-08-01T12:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564130#M67930</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/3463"&gt;@dgschaefer&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;A predefined family table with specific screw options may be better.&amp;nbsp; This will prevent specifying screws that don't exist and can encourage your designers to limit themselves to the screws that you typically stock.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;We have added an extra parameter to our &lt;SPAN&gt;fastener&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;called STANDARD (YES_NO)&lt;/P&gt;
&lt;P&gt;With this parameter, we can define which instances of the family table is considered standard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By using a mapkey, our users can quickly place a &lt;SPAN&gt;fastener&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(screw/bolt/nut/washer/etc.), and the family table will be "filtered" by this parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If a &lt;SPAN&gt;fastener&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is no longer considered "standard", we can set that parameter to NO. That will also display a large cosmetic in the instance, a visual reminder that a non-standard&amp;nbsp;fastener is being used&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.s. if we ever re-create our fasteners, I will change that parameter to a NUMBER. Why? Because the lookup_inst function of Creo does not accept YES_NO as an input.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 13:06:50 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564130#M67930</guid>
      <dc:creator>HamsterNL</dc:creator>
      <dc:date>2018-08-01T13:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564147#M67931</link>
      <description>&lt;P&gt;Coming in after many suggestions with my $.02.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem I see with the pro/program, copy geom or inheiritance features is that you have to do a save as when done to capture the length for future use. Unless you have a defined method of naming hardware, designer A names the 3/8-16 x 1.000 Zinc plated one way and designer B uses the same part but names it differently. Now you end up with many parts that are identical. The flexible part always uses the generic for its base, but you have to stretch each item every time you use it. You also have no control over the length that a designer may use and they may use a non-standard length.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am a fan of family tables. They allow you to build every combination of standard lengths into the table and each has a unique part number that can be searched for and reused. Adding a Standard column may be desirable but that also leads to more modifications of the family table when lengths get added or removed from your standard length usage. I built my family tables for socket head cap screws to be all diameters from #0 to 1-1./2 and lengths up to 6". I used both Fastenal and McMaster-Carr catalogs as my references for the standard available lengths. It gives the designers a nice range of parts to select from and very easy to change if they need a longer or shorter length. Our finding is that seldom does a designer increase/decrease the diameter of a fastener, but it is just as easy to replace that too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 13:35:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564147#M67931</guid>
      <dc:creator>BenLoosli</dc:creator>
      <dc:date>2018-08-01T13:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564198#M67932</link>
      <description>&lt;P&gt;To prevent random text being assigned to the fasteners I've adopted a "build the text" approach, where the stuff that gets put in the description column of a bill of materials (I call it DescriptionBOM) is built based on the dimensions of a particular instance, like "M6x1.00, BlkOX, 20MM LONG". It took a while to define, but with 100s of fasteners it's saved me tons of time every time I need to add a bunch of new instances for a project.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 16:58:32 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564198#M67932</guid>
      <dc:creator>KenFarley</dc:creator>
      <dc:date>2018-08-01T16:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Screw with variable length</title>
      <link>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564217#M67933</link>
      <description>&lt;P&gt;That is also a good reason for using family tables. You can control the text in the description fields that go in to the BOM text. My diameter, thread, length and finish are all derived from parameters that are carried in the FT. Change one and verify the table and everything is updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 18:43:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/3D-Part-Assembly-Design/Screw-with-variable-length/m-p/564217#M67933</guid>
      <dc:creator>BenLoosli</dc:creator>
      <dc:date>2018-08-01T18:43:49Z</dc:date>
    </item>
  </channel>
</rss>

