<?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: VARIABLE TEXT IN CUSTOM SYMBOL c++ code in Customization</title>
    <link>https://community.ptc.com/t5/Customization/VARIABLE-TEXT-IN-CUSTOM-SYMBOL-c-code/m-p/999035#M13821</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;contact PTC Support.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 07:49:52 GMT</pubDate>
    <dc:creator>MartinHanak</dc:creator>
    <dc:date>2025-02-18T07:49:52Z</dc:date>
    <item>
      <title>VARIABLE TEXT IN CUSTOM SYMBOL c++ code</title>
      <link>https://community.ptc.com/t5/Customization/VARIABLE-TEXT-IN-CUSTOM-SYMBOL-c-code/m-p/999017#M13817</link>
      <description>&lt;P&gt;Hi I want to add variable text to a custom symbol programmatically.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 07:03:01 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/VARIABLE-TEXT-IN-CUSTOM-SYMBOL-c-code/m-p/999017#M13817</guid>
      <dc:creator>RD_12909834</dc:creator>
      <dc:date>2025-02-18T07:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: VARIABLE TEXT IN CUSTOM SYMBOL c++ code</title>
      <link>https://community.ptc.com/t5/Customization/VARIABLE-TEXT-IN-CUSTOM-SYMBOL-c-code/m-p/999021#M13818</link>
      <description>&lt;P&gt;Hello &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/930641"&gt;@RD_12909834&lt;/a&gt;&lt;/SPAN&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your &lt;A href="https://community.ptc.com/t5/3D-Part-Assembly-Design/VARIABLE-TEXT-IN-CUSTOM-SYMBOL-c-code/m-p/999017#M138437" target="_blank"&gt;question&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I'd like to recommend to bring more details and context to your initial inquiry.&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;Have you already tried any methods or approaches to add variable text to the custom symbol using C++? If so, what were the results?&amp;nbsp;&lt;/LI&gt;
 &lt;LI&gt;Are you encountering any specific error messages or issues when trying to implement this feature?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;It also helps to have screenshot(s) to better understand what you are trying to do in your process.&amp;nbsp;Adding more context will increase your chances to receive meaningful help from other Community members.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Vivek N&lt;BR /&gt;Community Moderation Team.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 06:57:30 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/VARIABLE-TEXT-IN-CUSTOM-SYMBOL-c-code/m-p/999021#M13818</guid>
      <dc:creator>vnamboodheri</dc:creator>
      <dc:date>2025-02-18T06:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: VARIABLE TEXT IN CUSTOM SYMBOL c++ code</title>
      <link>https://community.ptc.com/t5/Customization/VARIABLE-TEXT-IN-CUSTOM-SYMBOL-c-code/m-p/999024#M13819</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is my code and it is not giving any error but not updating the&lt;/P&gt;&lt;DIV&gt;// load symbol file&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pfcDetailSymbolDefItem_ptr symDef = pfcDwg-&amp;gt;RetrieveSymbolDefItem("dim_balloon", pfcDetailSymbolDefItemSource::pfcDTLSYMDEF_SRC_PATH, strr, NULL, true);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pfcDetailSymbolInstInstructions_ptr instrs = pfcDetailSymbolInstInstructions::Create(symDef);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pfcDetailVariantText_ptr mtext = pfcDetailVariantText::Create("inValue", xstring::Printf("%d", k + 1));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dims = dimname.c_str();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pfcDetailVariantTexts_ptr stext = pfcDetailVariantTexts::create();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;stext-&amp;gt;append(mtext);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pfcFreeAttachment_ptr freeAttachmentpos = pfcFreeAttachment::Create(src_loc);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pfcView2D_ptr view2d;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;view2d = pfcView2D::cast(model2D-&amp;gt;GetViewByName("Primary View"));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;freeAttachmentpos-&amp;gt;SetView(view2d); // #&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;freeAttachmentpos-&amp;gt;SetAttachmentPoint(src_loc); &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pfcAttachment_ptr attach = pfcAttachment::cast(freeAttachmentpos);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;instrs-&amp;gt;SetInstAttachment(pfcSymbolDefAttachmentType::pfcSYMDEFATTACH_FREE);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;instrs-&amp;gt;SetTextValues(stext);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Feb 2025 07:12:07 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/VARIABLE-TEXT-IN-CUSTOM-SYMBOL-c-code/m-p/999024#M13819</guid>
      <dc:creator>RD_12909834</dc:creator>
      <dc:date>2025-02-18T07:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: VARIABLE TEXT IN CUSTOM SYMBOL c++ code</title>
      <link>https://community.ptc.com/t5/Customization/VARIABLE-TEXT-IN-CUSTOM-SYMBOL-c-code/m-p/999025#M13820</link>
      <description>&lt;P&gt;This is not updating the symbol note&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 07:13:35 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/VARIABLE-TEXT-IN-CUSTOM-SYMBOL-c-code/m-p/999025#M13820</guid>
      <dc:creator>RD_12909834</dc:creator>
      <dc:date>2025-02-18T07:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: VARIABLE TEXT IN CUSTOM SYMBOL c++ code</title>
      <link>https://community.ptc.com/t5/Customization/VARIABLE-TEXT-IN-CUSTOM-SYMBOL-c-code/m-p/999035#M13821</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;contact PTC Support.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 07:49:52 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/VARIABLE-TEXT-IN-CUSTOM-SYMBOL-c-code/m-p/999035#M13821</guid>
      <dc:creator>MartinHanak</dc:creator>
      <dc:date>2025-02-18T07:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: VARIABLE TEXT IN CUSTOM SYMBOL c++ code</title>
      <link>https://community.ptc.com/t5/Customization/VARIABLE-TEXT-IN-CUSTOM-SYMBOL-c-code/m-p/999664#M13823</link>
      <description>&lt;P&gt;Even if the attachment is free, is it not required to specify the x,y location ?&lt;/P&gt;
&lt;P&gt;And the symbol definition has variable text?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 13:14:47 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Customization/VARIABLE-TEXT-IN-CUSTOM-SYMBOL-c-code/m-p/999664#M13823</guid>
      <dc:creator>RPN</dc:creator>
      <dc:date>2025-02-20T13:14:47Z</dc:date>
    </item>
  </channel>
</rss>

