<?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: Generate Barcode based on note content and place it in a fix position in drawing sheet in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/generate-barcode-based-on-note-content-and-place-it-in-a-fix/m-p/13050393#M172316</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13740074"&gt;@dparmarF6BDE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the font called &lt;STRONG&gt;Free 3 of 9&lt;/STRONG&gt; to display your text as a bar code.&lt;BR /&gt;&lt;BR /&gt;It's been about 10 years since I have done this, so forgive me if I state some of this incorrectly... but I think in the past I did this 2 ways (a sketched symbol and a field in the title block), but didn't use any iLogic code to do anything other then fill in an iProperty&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think both just read in an iproperty twice, the top line used the barcode font the other was some other font... something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Curtis_Waguespack_1-1727453378530.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1415269i09C29E792070D817/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Curtis_Waguespack_1-1727453378530.png" alt="Curtis_Waguespack_1-1727453378530.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2024 16:13:37 GMT</pubDate>
    <dc:creator>Curtis_Waguespack</dc:creator>
    <dc:date>2024-09-27T16:13:37Z</dc:date>
    <item>
      <title>Generate Barcode based on note content and place it in a fix position in drawing sheet</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/generate-barcode-based-on-note-content-and-place-it-in-a-fix/m-p/13050081#M172307</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;I am trying to generate the barcode from a note in the sheet and place the barcode in the top center position in the sheet. I am having issue with ilogic script to do this. Any lead would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dparmarF6BDE_0-1727445564852.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1415217i374F84AFAA898F43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparmarF6BDE_0-1727445564852.png" alt="dparmarF6BDE_0-1727445564852.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dparmarF6BDE_1-1727445595915.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1415218i3156C04B86F12900/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparmarF6BDE_1-1727445595915.png" alt="dparmarF6BDE_1-1727445595915.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dparmarF6BDE_2-1727445688114.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1415219i94D04EBADCF7FBE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dparmarF6BDE_2-1727445688114.png" alt="dparmarF6BDE_2-1727445688114.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 14:01:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/generate-barcode-based-on-note-content-and-place-it-in-a-fix/m-p/13050081#M172307</guid>
      <dc:creator>dparmarF6BDE</dc:creator>
      <dc:date>2024-09-27T14:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Barcode based on note content and place it in a fix position in drawing sheet</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/generate-barcode-based-on-note-content-and-place-it-in-a-fix/m-p/13050345#M172314</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13740074"&gt;@dparmarF6BDE&lt;/a&gt;.&amp;nbsp; As far as I know, there is no built-in way to generate bar codes of any sort, for placing in drawings.&amp;nbsp; There may be an add-in or standalone application for something like that in the &lt;A href="https://apps.autodesk.com" target="_blank" rel="noopener"&gt;Autodesk App Store&lt;/A&gt; though.&amp;nbsp; You could search there for something like that.&lt;/P&gt;
&lt;P&gt;Below are a couple links I found there, in that category:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://apps.autodesk.com/INVNTOR/en/Detail/Index?id=6498986275150675602&amp;amp;appLang=en&amp;amp;os=Win64" target="_blank" rel="noopener"&gt;https://apps.autodesk.com/INVNTOR/en/Detail/Index?id=6498986275150675602&amp;amp;appLang=en&amp;amp;os=Win64&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://apps.autodesk.com/ACD/en/Detail/Index?id=6226799495222312553&amp;amp;appLang=en&amp;amp;os=Win32_64" target="_blank" rel="noopener"&gt;https://apps.autodesk.com/ACD/en/Detail/Index?id=6226799495222312553&amp;amp;appLang=en&amp;amp;os=Win32_64&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 15:51:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/generate-barcode-based-on-note-content-and-place-it-in-a-fix/m-p/13050345#M172314</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2024-09-27T15:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Barcode based on note content and place it in a fix position in drawing sheet</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/generate-barcode-based-on-note-content-and-place-it-in-a-fix/m-p/13050393#M172316</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13740074"&gt;@dparmarF6BDE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the font called &lt;STRONG&gt;Free 3 of 9&lt;/STRONG&gt; to display your text as a bar code.&lt;BR /&gt;&lt;BR /&gt;It's been about 10 years since I have done this, so forgive me if I state some of this incorrectly... but I think in the past I did this 2 ways (a sketched symbol and a field in the title block), but didn't use any iLogic code to do anything other then fill in an iProperty&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think both just read in an iproperty twice, the top line used the barcode font the other was some other font... something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Curtis_Waguespack_1-1727453378530.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1415269i09C29E792070D817/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Curtis_Waguespack_1-1727453378530.png" alt="Curtis_Waguespack_1-1727453378530.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 16:13:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/generate-barcode-based-on-note-content-and-place-it-in-a-fix/m-p/13050393#M172316</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2024-09-27T16:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Barcode based on note content and place it in a fix position in drawing sheet</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/generate-barcode-based-on-note-content-and-place-it-in-a-fix/m-p/13055530#M172390</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_Waguespack&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I found the solution which is to use CODE39 style and add "*" at first and last of the value of my barcode. Now I am trying to find the note in the sheet which has "SKID#: " in the content and if found then&amp;nbsp; copy the whole content and make a new note where the location of the note is 1" right and 1" down from the top left corner of the sheet and paste the copied content in the new note without "SKID#: " and add * at front and end, then change the note style to "CODE39" as I have it defined in my document which will flip it to barcode. My Ilogic code is not working the way I want it to. Can you please help me fix that?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;' iLogic Script for finding the note with "SKID#: ", copying it, and placing it at a new location&lt;/P&gt;&lt;P&gt;' Define the active document as a drawing document&lt;BR /&gt;Dim oDoc As DrawingDocument&lt;BR /&gt;oDoc = ThisApplication.ActiveDocument&lt;/P&gt;&lt;P&gt;' Get the current drawing sheet&lt;BR /&gt;Dim oSheet As Sheet&lt;BR /&gt;oSheet = oDoc.ActiveSheet&lt;/P&gt;&lt;P&gt;' Get all the drawing notes on the sheet&lt;BR /&gt;Dim oNotes As DrawingNotes&lt;BR /&gt;oNotes = oSheet.DrawingNotes&lt;/P&gt;&lt;P&gt;Dim skidNote As DrawingNote = Nothing&lt;/P&gt;&lt;P&gt;' Find the note that contains "SKID#: "&lt;BR /&gt;For Each oNote As DrawingNote In oNotes&lt;BR /&gt;If oNote.Text.Contains("SKID#: ") Then&lt;BR /&gt;skidNote = oNote&lt;BR /&gt;Exit For ' Exit loop once the note is found&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;' If no note containing "SKID#: " was found, show a message&lt;BR /&gt;If skidNote Is Nothing Then&lt;BR /&gt;MessageBox.Show("No note containing 'SKID#: ' found on the sheet.")&lt;BR /&gt;Return&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;' Get the content of the note&lt;BR /&gt;Dim noteContent As String&lt;BR /&gt;noteContent = skidNote.Text.Replace("SKID#: ", "")&lt;/P&gt;&lt;P&gt;' Add "*" at the beginning and end of the note content&lt;BR /&gt;Dim modifiedNoteContent As String&lt;BR /&gt;modifiedNoteContent = "*" &amp;amp; noteContent &amp;amp; "*"&lt;/P&gt;&lt;P&gt;' Define 1 inch down from the top and 1 inch right from the left as the new note position&lt;BR /&gt;Dim oTG As TransientGeometry&lt;BR /&gt;oTG = ThisApplication.TransientGeometry&lt;BR /&gt;Dim newNotePosition As Point2d&lt;BR /&gt;newNotePosition = oTG.CreatePoint2d(1, oSheet.Height - 1)&lt;/P&gt;&lt;P&gt;' Create a new drawing note with the same content at the new position&lt;BR /&gt;Dim copiedNote As DrawingNote&lt;BR /&gt;copiedNote = oSheet.DrawingNotes.Add(newNotePosition, modifiedNoteContent)&lt;/P&gt;&lt;P&gt;' Set the text style to "CODE39" (assuming the style is available)&lt;BR /&gt;Dim textStyle As TextStyle&lt;BR /&gt;textStyle = oDoc.StylesManager.TextStyles.Item("CODE39")&lt;BR /&gt;copiedNote.TextStyle = textStyle&lt;/P&gt;&lt;P&gt;' Align the copied note (optional, based on desired alignment)&lt;BR /&gt;copiedNote.HorizontalJustification = HorizontalTextAlignmentEnum.kAlignTextLeft&lt;BR /&gt;copiedNote.VerticalJustification = VerticalTextAlignmentEnum.kAlignTextMiddle ' Use middle alignment&lt;/P&gt;&lt;P&gt;MessageBox.Show("Note copied and moved to the new location successfully!")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 18:28:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/generate-barcode-based-on-note-content-and-place-it-in-a-fix/m-p/13055530#M172390</guid>
      <dc:creator>dparmarF6BDE</dc:creator>
      <dc:date>2024-09-30T18:28:10Z</dc:date>
    </item>
  </channel>
</rss>

