<?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: Need a help during creating a Mapkey of creating a Customized Drawing Name in Customization</title>
    <link>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/945416#M13011</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/260992"&gt;@tbraxton&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm new to this stuff, so I don't know how to write an external script to manipulate the strings and which Programming language to do so with.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 12:16:03 GMT</pubDate>
    <dc:creator>PA_11027627</dc:creator>
    <dc:date>2024-04-23T12:16:03Z</dc:date>
    <item>
      <title>Need a help during creating a Mapkey of creating a Customized Drawing Name</title>
      <link>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/944833#M13005</link>
      <description>&lt;P&gt;I need to create a mapkey to create the name of 2D drawing based on the 3D part but adding some extra strings on it for example,&lt;/P&gt;&lt;P&gt;If the 3D part name is&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;V132000430010, then when I call the mapkey it will create a 2D drawing named&amp;nbsp;DV1320004300100-000&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;that means I need to add D&amp;lt; Genereted name &amp;gt;0-000.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREO Version: 8.0.8.0&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 16:39:37 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/944833#M13005</guid>
      <dc:creator>PA_11027627</dc:creator>
      <dc:date>2024-04-19T16:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help during creating a Mapkey of creating a Customized Drawing Name</title>
      <link>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/944872#M13006</link>
      <description>&lt;P&gt;If you are looking to do this with a mapkey then you will need to use an external script to manipulate the string(s). Mapkeys can only record UI actions in a Creo session. Text editing in this context you are working on is done via pausing for user input to enter text. You can call an external script with a mapkey. You can nest this external script call in other mapkeys.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The syntax to call an external executable is:&lt;/P&gt;
&lt;P&gt;@SYSTEM start "path_to_your_script"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2024 00:11:49 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/944872#M13006</guid>
      <dc:creator>tbraxton</dc:creator>
      <dc:date>2024-04-20T00:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help during creating a Mapkey of creating a Customized Drawing Name</title>
      <link>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/945266#M13010</link>
      <description>&lt;P&gt;It is always the same&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The mapkey execute something what you can parse&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Now execute your external program to parse this data&lt;/LI&gt;
&lt;LI&gt;This will prepare a config with a mapkey, which does what you want&lt;/LI&gt;
&lt;LI&gt;load this config file&lt;/LI&gt;
&lt;LI&gt;execute this mapkey&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Spend some hours, and&amp;nbsp;&lt;SPAN&gt;Voilà it works&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 21:25:46 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/945266#M13010</guid>
      <dc:creator>RPN</dc:creator>
      <dc:date>2024-04-22T21:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help during creating a Mapkey of creating a Customized Drawing Name</title>
      <link>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/945416#M13011</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/260992"&gt;@tbraxton&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm new to this stuff, so I don't know how to write an external script to manipulate the strings and which Programming language to do so with.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 12:16:03 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/945416#M13011</guid>
      <dc:creator>PA_11027627</dc:creator>
      <dc:date>2024-04-23T12:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help during creating a Mapkey of creating a Customized Drawing Name</title>
      <link>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/945418#M13012</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/43740"&gt;@RPN&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know more about the external program to parse this data, so what language will be done with?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 12:18:07 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/945418#M13012</guid>
      <dc:creator>PA_11027627</dc:creator>
      <dc:date>2024-04-23T12:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help during creating a Mapkey of creating a Customized Drawing Name</title>
      <link>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/945599#M13013</link>
      <description>&lt;P&gt;This is tuff to answer without getting some members angry&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I give you 3 out of hundreds ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Powershell - you don't need to install, and you can probably run immediately on your machine&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Python - This is the one beloved at this time (Interface builder is done with Tk, integration so ugly in my point of view)&lt;/LI&gt;
&lt;LI&gt;Tcl/Tk - 10 rules, easy string handling and simple, but powerful&amp;nbsp; GUI Builder, download and start the widget demo, use 'see code' here!&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now be prepared to get more recommendations &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;BTW the&lt;/P&gt;
&lt;P&gt;Tcl Lib's are in "Common Files\apps\prodview\system\tcl8.6" and tk8.6&lt;/P&gt;
&lt;P&gt;is part of the Creo Installation, but the executables "Wish" and "TclSh" are missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;rcpedit.exe is a Tcl Program, some code is hidden, but this is written TclTk see&amp;nbsp;rcpnew.tcl&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;some code to view is here&lt;/P&gt;
&lt;P&gt;Common Files\apps\prodview\system\rcptools&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you copy/backup the code you can replace the PTC code, and replace the script by your own code &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;I use by myself only Tcl/Tk as a script language, because it is damm flexible if you follow the 10 rules..&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 19:02:38 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/945599#M13013</guid>
      <dc:creator>RPN</dc:creator>
      <dc:date>2024-04-23T19:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help during creating a Mapkey of creating a Customized Drawing Name</title>
      <link>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/952053#M13092</link>
      <description>&lt;P&gt;1.&lt;BR /&gt;Create a new mapkey in your config.pro,&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mapkey cdn @MAPKEY_LABELCustomized Drawing Name;\
mapkey(continued) @SYSTEMstart WScript.exe \
mapkey(continued) \\creostart\\vbs\\newdrw.vbs;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2.&lt;BR /&gt;Create an empty file “newdrw.vbs” in the “c:\creostart\vbs” folder.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3.&lt;BR /&gt;Paste in the vbs-file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;'/Customized Drawing Name 
Dim WshShell
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "%ffr"
WScript.Sleep 100
WshShell.SendKeys "^c"
WScript.Sleep 100
WshShell.SendKeys "{ESC}"
WScript.Sleep 100
WshShell.SendKeys "%fn"
WScript.Sleep 100
WshShell.SendKeys "{TAB 2}"
WScript.Sleep 100
WshShell.SendKeys "{DOWN}"
WScript.Sleep 100
WshShell.SendKeys "{TAB 2}"
WScript.Sleep 100
WshShell.SendKeys "{DOWN}"
WScript.Sleep 100
WshShell.SendKeys "{TAB 2}"
WScript.Sleep 100
WshShell.SendKeys "{DOWN}"
WScript.Sleep 100
WshShell.SendKeys "d^v0-000"
WScript.Sleep 100
WshShell.SendKeys "{ENTER}"
WScript.Quit()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You can reduce timeouts in the vb-script ("WScript.Sleep 100" means 100ms timeout).&lt;/P&gt;&lt;P&gt;Also you can call other predefined mapkeys from a vb-script.&lt;BR /&gt;It would be something like this: WshShell.SendKeys "mtlset"&lt;BR /&gt;where "mtlset" is the name of the mapkey.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4.&lt;/P&gt;&lt;P&gt;Open a model in Creo.&lt;/P&gt;&lt;P&gt;Enter cdn to run the mapkey.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 09:47:07 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/Need-a-help-during-creating-a-Mapkey-of-creating-a-Customized/m-p/952053#M13092</guid>
      <dc:creator>Van_AG</dc:creator>
      <dc:date>2024-05-24T09:47:07Z</dc:date>
    </item>
  </channel>
</rss>

