Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I am trying to come up with an Ilogic Rule to automatically open the "change Component" dialogue box of a specific Ipart within an assembly. i have a rule i have adapted from another forum thread here but this one requires the user to click (pick) the ipart within the assembly for the dialogue box to open after running the rule.
could someone please help me adjust this code to achieve this?
the ipart name is "Reducer BW: 1"
cheers
Tim P
Dim asm As AssemblyDocument = ThisDoc.Document Dim occ As ComponentOccurrence = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kAssemblyOccurrenceFilter, "SELECT REDUCER") Dim occNode As BrowserNode = asm.BrowserPanes.ActivePane.GetBrowserNodeFromObject(occ) Dim tabNode As BrowserNode = occNode.BrowserNodes(1) tabNode.DoSelect() ThisApplication.CommandManager.ControlDefinitions("AssemblyChangeComponentCmd").Execute
Solved! Go to Solution.