<?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 iLogic Program to add Custom Symbols in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-program-to-add-custom-symbols/m-p/6523917#M66415</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if someone could help me design an iLogic program. I would like to use small equilateral triangles (approx. 0.156" tall) with two to three letters of text (size 0.06) inside the triangle. I'll be using this symbol to designate certain features. A feature will be labeled with either the letter "S" or "F" followed by a number (1,2,3...and so fourth). I would like a prompt to ask the user how many features they need to label and then have the program loop through and create a symbol with the correct letter and appropriate number, pasting each symbol in a line down the side of the page so that the user can click and drag each symbol to the desired location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone knows of a way to do this, or could steer me in the right direction, it would be much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Nick&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2016 22:51:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-25T22:51:29Z</dc:date>
    <item>
      <title>iLogic Program to add Custom Symbols</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-program-to-add-custom-symbols/m-p/6523917#M66415</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if someone could help me design an iLogic program. I would like to use small equilateral triangles (approx. 0.156" tall) with two to three letters of text (size 0.06) inside the triangle. I'll be using this symbol to designate certain features. A feature will be labeled with either the letter "S" or "F" followed by a number (1,2,3...and so fourth). I would like a prompt to ask the user how many features they need to label and then have the program loop through and create a symbol with the correct letter and appropriate number, pasting each symbol in a line down the side of the page so that the user can click and drag each symbol to the desired location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone knows of a way to do this, or could steer me in the right direction, it would be much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Nick&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 22:51:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-program-to-add-custom-symbols/m-p/6523917#M66415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-25T22:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Program to add Custom Symbols</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-program-to-add-custom-symbols/m-p/6524327#M66420</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code does what you need, there may be slight modifications needed, but if you create a sketched symbol called "Triangle Walks"&lt;/P&gt;
&lt;P&gt;with 2 promted entries (first is Letter, second is Number) the code will insert the symbol&amp;nbsp;on the left of your drawing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument

Dim oSheet As Sheet
oSheet = oDrawDoc.ActiveSheet

Dim oTriangleWalksDef As SketchedSymbolDefinition
oTriangleWalksDef = oDrawDoc.SketchedSymbolDefinitions.Item("Triangle Walks")
            
Dim oTG As TransientGeometry
oTG = ThisApplication.TransientGeometry
            
Dim dblStartPointX, dblStartPointY As Double
dblStartPointX = 1.5
dblStartPointY = oSheet.Height - 1.5

Dim strLetter As String
strLetter = InputBox("Provide Letter.", "Letter", , 400, 400)

Dim iNumber As Integer
iNumber = InputBox("Provide Number.", "Number", , 400, 400)

For iNumber = 1 To iNumber
Dim sPromptStrings(1) As String
sPromptStrings(0) = strLetter
sPromptStrings(1) = iNumber

Dim oSketchedSymbol As SketchedSymbol
oSketchedSymbol = oSheet.SketchedSymbols.Add(oTriangleWalksDef, oTG.CreatePoint2d(dblStartPointX, dblStartPointY), 0, 1, sPromptStrings)
oSketchedSymbol.Static = True
dblStartPointY = dblStartPointY - 1
Next iNumber&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Aug 2016 06:01:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-program-to-add-custom-symbols/m-p/6524327#M66420</guid>
      <dc:creator>frederic.vandenplas</dc:creator>
      <dc:date>2016-08-26T06:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Program to add Custom Symbols</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-program-to-add-custom-symbols/m-p/6528740#M66453</link>
      <description>Thank you so much, this does exactly what I was looking for. Much appreciated!&lt;BR /&gt;&lt;BR /&gt;-Nick</description>
      <pubDate>Mon, 29 Aug 2016 13:26:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-program-to-add-custom-symbols/m-p/6528740#M66453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-29T13:26:30Z</dc:date>
    </item>
  </channel>
</rss>

