<?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: Issue with Highlight / SelectSet - Drawing Weld Symbol in Inventor 2024 in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/issue-with-highlight-selectset-drawing-weld-symbol-in-inventor/m-p/12327660#M159413</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14529426"&gt;@gopinadh7XTGG&lt;/a&gt;.&amp;nbsp; I suspect that the&amp;nbsp;DrawingWeldingSymbol objects are simply not supported for adding to the Document.SelectSet or HightlightSet yet.&amp;nbsp; Have you reviewed the similar forum post at the following link yet.&amp;nbsp; It was to help address the inability to use the Pick method to select one, and uses a different route for selecting one.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-kdrawingweldsymbol-inventor-2024/m-p/12306509" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-kdrawingweldsymbol-inventor-2024/m-p/12306509&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 15:46:29 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2023-10-24T15:46:29Z</dc:date>
    <item>
      <title>Issue with Highlight / SelectSet - Drawing Weld Symbol in Inventor 2024</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/issue-with-highlight-selectset-drawing-weld-symbol-in-inventor/m-p/12326366#M159387</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I was trying to Highlight all Drawing weld symbols that are available in a drawing in Inventor 2024. I was getting this error&lt;STRONG&gt; (System.Runtime.InteropServices.COMException: 'Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))').&amp;nbsp;&lt;SPAN&gt;Instead of Highlight, I tried with SelectSet also which is also throwing the same error.&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;Below is the code I am using, which is working fine with &lt;SPAN&gt;Highlight / SelectSet in all dimensions but the issue&amp;nbsp;is only with the Drawing Weld Symbol.&lt;/SPAN&gt;. Attached are the Inventor CAD files for testing purposes.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any help is appreciated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using System;&lt;BR /&gt;using System.Collections.Generic;&lt;BR /&gt;using System.Linq;&lt;BR /&gt;using System.Threading.Tasks;&lt;BR /&gt;using System.Windows.Forms;&lt;BR /&gt;using Inventor;&lt;BR /&gt;using System.Runtime.InteropServices;&lt;/P&gt;&lt;P&gt;namespace Testcase_Inv2024_WeldSymbol_Highlight&lt;BR /&gt;{&lt;BR /&gt;static class Program&lt;BR /&gt;{&lt;BR /&gt;static void Main()&lt;BR /&gt;{&lt;BR /&gt;Inventor.Application oApp = Marshal.GetActiveObject("Inventor.Application") as Inventor.Application;&lt;/P&gt;&lt;P&gt;DrawingDocument drawingDocument = (DrawingDocument)oApp.ActiveDocument;&lt;/P&gt;&lt;P&gt;Sheet oActiveSheet = drawingDocument.ActiveSheet;&lt;/P&gt;&lt;P&gt;DrawingWeldingSymbols allWeldSymbols = oActiveSheet.WeldingSymbols;&lt;/P&gt;&lt;P&gt;DrawingDimensions alldimensions = oActiveSheet.DrawingDimensions;&lt;/P&gt;&lt;P&gt;HighlightSet _oHighlightSet = oApp.ActiveDocument.CreateHighlightSet();&lt;BR /&gt;_oHighlightSet.SetColor(255, 255, 0);&lt;/P&gt;&lt;P&gt;ObjectCollection myDimensionCollection = oApp.TransientObjects.CreateObjectCollection();&lt;/P&gt;&lt;P&gt;ObjectCollection myWeldSymbolCollection = oApp.TransientObjects.CreateObjectCollection();&lt;/P&gt;&lt;P&gt;foreach (DrawingDimension drawingDimension in alldimensions)&lt;BR /&gt;{&lt;BR /&gt;myDimensionCollection.Add(drawingDimension);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;foreach (DrawingWeldingSymbol weldSymbol in allWeldSymbols)&lt;BR /&gt;{&lt;BR /&gt;myWeldSymbolCollection.Add(weldSymbol);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;drawingDocument.SelectSet.SelectMultiple(myDimensionCollection);&lt;BR /&gt;_oHighlightSet.AddMultipleItems(myDimensionCollection);&lt;/P&gt;&lt;P&gt;drawingDocument.SelectSet.SelectMultiple(myWeldSymbolCollection); //API Issue&lt;BR /&gt;//Error -&amp;gt; System.Runtime.InteropServices.COMException: 'Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))'&lt;BR /&gt;_oHighlightSet.AddMultipleItems(myWeldSymbolCollection); //API Issue&lt;BR /&gt;//Error-&amp;gt;System.Runtime.InteropServices.COMException: 'Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))'&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;GopinadhGvs.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 06:47:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/issue-with-highlight-selectset-drawing-weld-symbol-in-inventor/m-p/12326366#M159387</guid>
      <dc:creator>gopinadh7XTGG</dc:creator>
      <dc:date>2023-10-24T06:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Highlight / SelectSet - Drawing Weld Symbol in Inventor 2024</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/issue-with-highlight-selectset-drawing-weld-symbol-in-inventor/m-p/12327660#M159413</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14529426"&gt;@gopinadh7XTGG&lt;/a&gt;.&amp;nbsp; I suspect that the&amp;nbsp;DrawingWeldingSymbol objects are simply not supported for adding to the Document.SelectSet or HightlightSet yet.&amp;nbsp; Have you reviewed the similar forum post at the following link yet.&amp;nbsp; It was to help address the inability to use the Pick method to select one, and uses a different route for selecting one.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-kdrawingweldsymbol-inventor-2024/m-p/12306509" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-programming-ilogic/commandmanager-pick-kdrawingweldsymbol-inventor-2024/m-p/12306509&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 15:46:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/issue-with-highlight-selectset-drawing-weld-symbol-in-inventor/m-p/12327660#M159413</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-10-24T15:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Highlight / SelectSet - Drawing Weld Symbol in Inventor 2024</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/issue-with-highlight-selectset-drawing-weld-symbol-in-inventor/m-p/12330758#M159479</link>
      <description>Hi WCrihfield,&lt;BR /&gt;&lt;BR /&gt;You are correct. Currently DrawingWeldingSymbol objects are simply not supported for adding to the Document.SelectSet or HightlightSet.&lt;BR /&gt;&lt;BR /&gt;I have gone through your method for Selecting drawing weld symbol and it works great.&lt;BR /&gt;Many Thanks.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gopinadh Gvs.</description>
      <pubDate>Wed, 25 Oct 2023 18:06:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/issue-with-highlight-selectset-drawing-weld-symbol-in-inventor/m-p/12330758#M159479</guid>
      <dc:creator>gopinadh7XTGG</dc:creator>
      <dc:date>2023-10-25T18:06:40Z</dc:date>
    </item>
  </channel>
</rss>

