<?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: Weld Configurations in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4968278#M125217</link>
    <description>&lt;P&gt;Hi Adam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can definetly do the work using the UI but the weld beads do not show up in the ilogic browser. If you look at the images below, I am trying to go from a single to a double rib configuration and I have that working easily with ilogic by supressing components but as I can not supress the welds using ilogic the weld bead will fail as soon as I change the configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Apr 2014 16:18:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-17T16:18:12Z</dc:date>
    <item>
      <title>Weld Configurations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4936682#M125215</link>
      <description>&lt;P&gt;I have created a saddle which I control using excel for dimensions and several features that I control using a ilogic form. Depending on the load that saddle needs to support I need to adjust the number of ribs and their placement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where I run into problems is with welds. I have found no way to supress a weld along with a part and from what I've read this can not be done. So my question is, what is the best approach? I do not want to recreate or have to delete weld features every time I remove or add a rib.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing I can think of is to create a new assembly for each configuration of the saddle but that seems a little counter productive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be welcome.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2014 21:22:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4936682#M125215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-04T21:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Weld Configurations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4959074#M125216</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how to achieve what you want through the UI?&lt;/P&gt;
&lt;P&gt;If so, then could you list the steps you do in the UI and now you want to automate?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you do not know how to do this in the UI, then it would be worth asking in the Product Forum as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2014 00:19:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4959074#M125216</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2014-04-15T00:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Weld Configurations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4968278#M125217</link>
      <description>&lt;P&gt;Hi Adam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can definetly do the work using the UI but the weld beads do not show up in the ilogic browser. If you look at the images below, I am trying to go from a single to a double rib configuration and I have that working easily with ilogic by supressing components but as I can not supress the welds using ilogic the weld bead will fail as soon as I change the configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 16:18:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4968278#M125217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-17T16:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Weld Configurations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4970184#M125218</link>
      <description>&lt;P&gt;Thanks for the pictures, Arek.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It did not error out for me when I suppressed a part that had a welding - but still, I guess you would not want a welding hanging in the air.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the workaround I could come up with. I hope this helps.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/manufacturing/2014/04/run-command-on-browser-item.html" target="_self"&gt;http://adndevblog.typepad.com/manufacturing/2014/04/run-command-on-browser-item.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2014 11:06:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4970184#M125218</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2014-04-18T11:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Weld Configurations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4977842#M125219</link>
      <description>&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This looks exactly like the sort of automation I am looking for. Unfortunately the code is a little over my current skill set. Would you be able to look at the attached assembly and perhaps plug in one weld to suppress and un-suppress using your ilogic script? I am currently changing the number of rib using an ilogic form from 1 to 5 but if you were able to do a single one it would help me out immensely.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2014 20:47:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4977842#M125219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-21T20:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Weld Configurations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4979462#M125220</link>
      <description>&lt;P&gt;Hi Arek,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A few files are missing, which makes it more difficult to test things. Could you provide those?&lt;/P&gt;
&lt;P&gt;00-SEED-000000.xlsx,&amp;nbsp;00-SEED-000057.ipt,&amp;nbsp;00-SEED-000058.ipt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you don't seem to have welding added for all the plates.&lt;/P&gt;
&lt;P&gt;You could name the weld beads the same as the part they belong to, that should make the code a bit clearer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 13:21:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4979462#M125220</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2014-04-22T13:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Weld Configurations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4979718#M125221</link>
      <description>&lt;P&gt;My apologies I was trying to keep the file size down. I've added the welds for the single and double gusset configurations.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2014 14:37:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4979718#M125221</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-22T14:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Weld Configurations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4983696#M125222</link>
      <description>&lt;P&gt;Hi Arek,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've done it for Ribs 1 and 2 - you should be able to set it up for the rest:&lt;/P&gt;
&lt;PRE&gt;Sub Main
'Select number of ribs
If RIBS = "1" Then
Component.IsActive("Gusset Plate 1") = True
Component.IsActive("Gusset Plate 2") = False
Component.IsActive("Gusset Plate 2 Mirror") = False
Component.IsActive("Gusset Plate 3") = False
Component.IsActive("Gusset Plate 3 Mirror") = False
SuppressWeldBeads( _
  New List(Of String)(New String(){"Gusset Plate 2-A", "Gusset Plate 2-B", "Gusset Plate 2-C"}), _
  New List(Of String)(New String(){"Gusset Plate 1-A", "Gusset Plate 1-B", "Gusset Plate 1-C"}))
RIBS_ADJUSTMENT = False
Else If RIBS = "2" Then
Component.IsActive("Gusset Plate 1") = False
Component.IsActive("Gusset Plate 2") = True
Component.IsActive("Gusset Plate 2 Mirror") = True
Component.IsActive("Gusset Plate 3") = False
Component.IsActive("Gusset Plate 3 Mirror") = False
SuppressWeldBeads( _
  New List(Of String)(New String(){"Gusset Plate 1-A", "Gusset Plate 1-B", "Gusset Plate 1-C"}), _
  New List(Of String)(New String(){"Gusset Plate 2-A", "Gusset Plate 2-B", "Gusset Plate 2-C"}))
RIBS_ADJUSTMENT = False
Else If RIBS = "3" Then
Component.IsActive("Gusset Plate 1") = True
Component.IsActive("Gusset Plate 2") = True
Component.IsActive("Gusset Plate 2 Mirror") = True
Component.IsActive("Gusset Plate 3") = False
Component.IsActive("Gusset Plate 3 Mirror") = False
RIBS_ADJUSTMENT = False
Else If RIBS = "4" Then
Component.IsActive("Gusset Plate 1") = False
Component.IsActive("Gusset Plate 2") = True
Component.IsActive("Gusset Plate 2 Mirror") = True
Component.IsActive("Gusset Plate 3") = True
Component.IsActive("Gusset Plate 3 Mirror") = True
RIBS_ADJUSTMENT = True
Else If RIBS = "5" Then
Component.IsActive("Gusset Plate 1") = True
Component.IsActive("Gusset Plate 2") = True
Component.IsActive("Gusset Plate 2 Mirror") = True
Component.IsActive("Gusset Plate 3") = True
Component.IsActive("Gusset Plate 3 Mirror") = True
RIBS_ADJUSTMENT = True
End If

'Sets rib thickness
Parameter("Gusset Plate 1", "RIB_THK") = RIB_THK
Parameter("Gusset Plate 2", "RIB_THK") = RIB_THK
Parameter("Gusset Plate 3", "RIB_THK") = RIB_THK
End Sub

Sub SuppressBead( _
  wcd As WeldmentComponentDefinition, _
  wbn As BrowserNode, _
  unsuppress As Boolean)
  Dim name As String
  name = wbn.BrowserNodeDefinition.Label

  ' If the bead is already suppressed then its BeadFaces will be 0
  If (wcd.Welds.WeldBeads(name).BeadFaces.count = 0) &amp;lt;&amp;gt; unsuppress Then Exit Sub
  
  ' Get the CommandManager object
  Dim cm As CommandManager
  cm = ThisApplication.CommandManager
  
  ' Get the collection of control definitions
  Dim cds As ControlDefinitions
  cds = cm.ControlDefinitions
      
  ' Run the "Suppress" command
  ThisApplication.SilentOperation = True
  Call wbn.DoSelect
  'MsgBox(name)
  Call cds("AssemblySuppressFeatureCtxCmd").Execute2(True)
  ThisApplication.SilentOperation = False
End Sub

' weldNamesS - to suppress
' weldNamesU - to unsuppress
Sub SuppressWeldBeads(weldNamesS As List(Of String), weldNamesU As List(Of String))
  ' Get document
  Dim doc As AssemblyDocument
  doc = ThisApplication.ActiveDocument
  
  Dim wcd As WeldmentComponentDefinition
  wcd = doc.ComponentDefinition
  
  ' Get "Model" browser
  Dim bp As BrowserPane
  bp = doc.BrowserPanes("AmBrowserArrangement")
  
  ' Get "Welds" node
  Dim wbn As BrowserNode
  For Each wbn In bp.TopNode.BrowserNodes
    If wbn.BrowserNodeDefinition.Label = "Welds" Then
      Exit For
    End If
  Next
  
  ' Get "Beads" node
  Dim bbn As BrowserNode
  For Each bbn In wbn.BrowserNodes
    If bbn.BrowserNodeDefinition.Label = "Beads" Then
      Exit For
    End If
  Next
  
  ' Get the Beads we want to suppress/unsuppress
  For Each wbn In bbn.BrowserNodes
    If weldNamesS.Contains(wbn.BrowserNodeDefinition.Label) Then
      Call SuppressBead(wcd, wbn, False)
	ElseIf weldNamesU.Contains(wbn.BrowserNodeDefinition.Label) Then
      Call SuppressBead(wcd, wbn, True)
    End If
  Next
End Sub&lt;/PRE&gt;
&lt;P&gt;Attached is the modified assembly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 17:39:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/4983696#M125222</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2014-04-23T17:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Weld Configurations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/5002856#M125223</link>
      <description>&lt;P&gt;Adam thank you very much for your help, could not have done this without your help!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2014 15:13:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/5002856#M125223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-30T15:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Weld Configurations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/6446414#M125224</link>
      <description>&lt;P&gt;Sorry for posting the same question once again. Since i did not received any reply on this question.&lt;/P&gt;&lt;P&gt;Iam posting the same question in this subject.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code works and suppress the weldbead when it is placed in module and run from module&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUT WHEN WE PLACE THE SAME CODE IN USERFORM AND RUN IT THE WELDBEAD GETS SELECTED BUT IT IS NOT GETTING SUPPRESSED I DON'T KNOW WHY &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give some suggestion on this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Enum SuppressOption&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kSuppress&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kUnsuppress&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kToggle&lt;BR /&gt;End Enum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Sub SuppressWeldBeads_Click()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call SuppressWeldBead("Fillet Weld 1")&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sub SuppressBead(wcd As WeldmentComponentDefinition, wbn As BrowserNode, _&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; so As SuppressOption)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim name As String&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = wbn.BrowserNodeDefinition.Label&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'We only need to check the current state of the bead if&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'We are not just toggling its state but want a specific one&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If so &amp;lt;&amp;gt; kToggle Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'If the bead is already suppressed then its&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'BeadFaces.Count will be 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim bfs As Faces&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set bfs = wcd.Welds.WeldBeads(name).BeadFaces&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If bfs.Count = 0 Xor so = kUnsuppress Then Exit Sub&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Get the commandManager object&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim cm As CommandManager&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set cm = ThisApplication.CommandManager&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Get the collection of control definitions&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim cds As ControlDefinitions&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set cds = cm.ControlDefinitions&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Run the "Suppress" command&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ThisApplication.SilentOperation = True&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call wbn.DoSelect&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oSuppControlDef As ControlDefinition&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oSuppControlDef = ThisApplication.CommandManager.ControlDefinitions.Item("AssemblySuppressFeatureCtxCmd")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oSuppControlDef.Execute2 (True)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Call cds("AssemblySuppressFeatureCtxCmd").Execute&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ThisApplication.SilentOperation = False&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;Sub SuppressWeldBead(WeldName As String)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MsgBox (WeldName)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Dim WeldName As String&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'WeldName = "Fillet Weld 1"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Get Document&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim doc As AssemblyDocument&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set doc = ThisApplication.ActiveDocument&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim wcd As WeldmentComponentDefinition&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set wcd = doc.ComponentDefinition&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Get "Model" browser&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim bp As BrowserPane&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set bp = doc.BrowserPanes("AmBrowserArrangement")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Get "Welds" node&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim wbn As BrowserNode&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each wbn In bp.TopNode.BrowserNodes&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If wbn.BrowserNodeDefinition.Label = "Welds" Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit For&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Get "Beads" node&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim bbn As BrowserNode&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each bbn In wbn.BrowserNodes&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If bbn.BrowserNodeDefinition.Label = "Beads" Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit For&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Get the Beads we want to suppress&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each wbn In bbn.BrowserNodes&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If wbn.BrowserNodeDefinition.Label = WeldName Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call SuppressBead(wcd, wbn, kSuppress)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;M.L.Kuselan&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 07:43:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/6446414#M125224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-19T07:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Weld Configurations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/6446488#M125225</link>
      <description>&lt;P&gt;I answered on the other thread:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/weld-bead-suppress-not-working-when-called-from-command-button/m-p/6425752/highlight/false#M65331" target="_self"&gt;http://forums.autodesk.com/t5/inventor-customization/weld-bead-suppress-not-working-when-called-from-command-button/m-p/6425752/highlight/false#M65331&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 08:53:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/6446488#M125225</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2016-07-19T08:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Weld Configurations</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/9710130#M125226</link>
      <description>&lt;P&gt;First, many thanks for the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible to suppress the welds in a sub assembly? Because i start severals configuration in the top level assembly.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Sub Main
If Drum_Tube_Divided= True Then

Component.Visible("Drum tube") = False
Component.Visible("Drum tube L1") = True
Component.Visible("Drum tube L2") = True

SuppressWeldBeads( _
  New List(Of String)(New String(){"Groove Weld undivided", "Fillet Weld undivided"}), _
  New List(Of String)(New String(){"Groove Weld divided L1", "Groove Weld divided L2", "Fillet Weld divided"}))

Else If Drum_Tube_Divided= False Then
Component.Visible("Drum tube") = True
Component.Visible("Drum tube L1") = False
Component.Visible("Drum tube L2") = False

SuppressWeldBeads( _
  New List(Of String)(New String(){"Groove Weld divided L1", "Groove Weld divided L2", "Fillet Weld divided"}), _
  New List(Of String)(New String(){"Groove Weld undivided", "Fillet Weld undivided"}))
  
End If


End Sub
Sub SuppressBead( _
  wcd As WeldmentComponentDefinition, _
  wbn As BrowserNode, _
  unsuppress As Boolean)
  Dim name As String
  name = wbn.BrowserNodeDefinition.Label

  ' If the bead is already suppressed then its BeadFaces will be 0
  If (wcd.Welds.WeldBeads(name).BeadFaces.count = 0) &amp;lt;&amp;gt; unsuppress Then Exit Sub
  
  ' Get the CommandManager object
  Dim cm As CommandManager
  cm = ThisApplication.CommandManager
'  
  ' Get the collection of control definitions
  Dim cds As ControlDefinitions
  cds = cm.ControlDefinitions
      
  ' Run the "Suppress" command
  ThisApplication.SilentOperation = True
  Call wbn.DoSelect
  'MsgBox(name)
  Call cds("AssemblySuppressFeatureCtxCmd").Execute2(True)
  ThisApplication.SilentOperation = False
End Sub

' weldNamesS - to suppress
' weldNamesU - to unsuppress
Sub SuppressWeldBeads(weldNamesS As List(Of String), weldNamesU As List(Of String))
  ' Get document
  Dim doc As AssemblyDocument
   doc = ThisApplication.ActiveEditDocument
'  doc = ThisApplication.ActiveDocument
  
  Dim wcd As WeldmentComponentDefinition
  wcd = doc.ComponentDefinition
  
  ' Get "Model" browser
  Dim bp As BrowserPane
  bp = doc.BrowserPanes("AmBrowserArrangement")
  
  ' Get "Welds" node
  Dim wbn As BrowserNode
  For Each wbn In bp.TopNode.BrowserNodes
    If wbn.BrowserNodeDefinition.Label = "Welds" Then
      Exit For
    End If
  Next
  
  ' Get "Beads" node
  Dim bbn As BrowserNode
  For Each bbn In wbn.BrowserNodes
    If bbn.BrowserNodeDefinition.Label = "Beads" Then
      Exit For
    End If
  Next
  
  ' Get the Beads we want to suppress/unsuppress
  For Each wbn In bbn.BrowserNodes
    If weldNamesS.Contains(wbn.BrowserNodeDefinition.Label) Then
      Call SuppressBead(wcd, wbn, False)
	ElseIf weldNamesU.Contains(wbn.BrowserNodeDefinition.Label) Then
      Call SuppressBead(wcd, wbn, True)
    End If
  Next
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 09:39:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/weld-configurations/m-p/9710130#M125226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-25T09:39:11Z</dc:date>
    </item>
  </channel>
</rss>

