<?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: Create comment linked to configurations file data in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-comment-linked-to-configurations-file-data/m-p/13206244#M429</link>
    <description>&lt;P&gt;Thank you for your quick reply. I don't think I explained myself well enough the first time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to output the Part Number into my NC file. Is there a way to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2024 21:25:17 GMT</pubDate>
    <dc:creator>LearnItAlready</dc:creator>
    <dc:date>2024-12-11T21:25:17Z</dc:date>
    <item>
      <title>Create comment linked to configurations file data</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-comment-linked-to-configurations-file-data/m-p/13205059#M427</link>
      <description>&lt;P&gt;I hoping to accomplish the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I’m trying to do is create a comment at the beginning of an NC file that refers to a specific configuration “Component Name,” “Part Number,” and “Description.” Each will have its own line of code as a comment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The standard format for writing a comment that I can find is this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/**&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Output a comment.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;function&lt;/SPAN&gt; &lt;SPAN&gt;writeComment&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;text&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;writeln&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;formatComment&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;text&lt;/SPAN&gt;&lt;SPAN&gt;));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What is the code that links to&amp;nbsp;specific configuration aspects like “Component Name,” “Part Number,” and “Description"?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I would appreciate your help very much. Thank you amazing community!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Dec 2024 20:12:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-comment-linked-to-configurations-file-data/m-p/13205059#M427</guid>
      <dc:creator>LearnItAlready</dc:creator>
      <dc:date>2024-12-11T20:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create comment linked to configurations file data</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-comment-linked-to-configurations-file-data/m-p/13205421#M428</link>
      <description>&lt;P&gt;You can create a manual NC comment which would invoke the function writeComment() while post processing&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="boopathisivakumar_0-1733926934275.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1444551i31720CE1ED236232/image-size/medium?v=v2&amp;amp;px=400" role="button" title="boopathisivakumar_0-1733926934275.png" alt="boopathisivakumar_0-1733926934275.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 14:22:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-comment-linked-to-configurations-file-data/m-p/13205421#M428</guid>
      <dc:creator>boopathi.sivakumar</dc:creator>
      <dc:date>2024-12-11T14:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create comment linked to configurations file data</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-comment-linked-to-configurations-file-data/m-p/13206244#M429</link>
      <description>&lt;P&gt;Thank you for your quick reply. I don't think I explained myself well enough the first time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to output the Part Number into my NC file. Is there a way to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 21:25:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-comment-linked-to-configurations-file-data/m-p/13206244#M429</guid>
      <dc:creator>LearnItAlready</dc:creator>
      <dc:date>2024-12-11T21:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create comment linked to configurations file data</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-comment-linked-to-configurations-file-data/m-p/13206380#M430</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The model information (components, bodies, etc) are not shared to the post-processors, and that is why their properties are not available there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there are three ways to send information to the post-procesor:&lt;/P&gt;&lt;P&gt;1) With Manual NC 's commands like&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8049428"&gt;@boopathi.sivakumar&lt;/a&gt;&amp;nbsp; suggested before&lt;/P&gt;&lt;P&gt;2) With a custom post-property (yellow highlighted in the image below)&lt;/P&gt;&lt;P&gt;3) Using the "notes" parameter (red highlighted in the image below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jorge_Jaramillo_0-1733956492793.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1444780i69F0C078A5754675/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jorge_Jaramillo_0-1733956492793.png" alt="Jorge_Jaramillo_0-1733956492793.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In any case you might need either set its value manually or develop a script that copies the component properties you need to it.&lt;/P&gt;&lt;P&gt;Then in the post-processor you need a custom modification to look for the property/parameter and to write it to the post-file with the writeComment() function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jorge Jaramillo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 22:42:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/create-comment-linked-to-configurations-file-data/m-p/13206380#M430</guid>
      <dc:creator>Jorge_Jaramillo</dc:creator>
      <dc:date>2024-12-11T22:42:14Z</dc:date>
    </item>
  </channel>
</rss>

