Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am creating a configurable assembly using a component replace command. After the replacement completes, the model tree name updates as well and essentially breaks the iLogic code, preventing further configurations from happening (or reverting back to the previous configuration).
I'm hoping to add code that can keep the existing model tree name as the assembly is configured.
' ExcelFile = "X:\Acad\PRD\JMF\Drawers\DRAWERS.xlsx" MultiValue.List("DrawerBox") = GoExcel.CellValues(ExcelFile, "T-Lock", "A2", "") SharedVariable("DrawerSearch") = GoExcel.FindRow(ExcelFile, "T-Lock", "Description", "=", DrawerBox) Dim leftSide As String leftSide = GoExcel.CurrentRowValue("LH Side") Dim drawerLH As String drawerLH = "C:\Work\Library\30_Drawers\Parts\" & leftSide & "_IPT_111.ipt" Dim rightSide As String rightSide = GoExcel.CurrentRowValue("RH Side") Dim drawerRH As String drawerRH = "C:\Work\Library\30_Drawers\Parts\" & rightSide & "_IPT_111.ipt" Dim dBack As String dBack = GoExcel.CurrentRowValue("Back") Dim drawerBack As String drawerBack = "C:\Work\Library\30_Drawers\Parts\" & dBack & "_IPT_111.ipt" Dim dBottom As String dBottom = GoExcel.CurrentRowValue("Bottom") Dim drawerBottom As String drawerBottom = "C:\Work\Library\30_Drawers\Parts\" & dBottom & "_IPT_111.ipt" 'Dim dBrace As String 'dBrace = GoExcel.CurrentRowValue("Brace") 'Dim drawerBrace As String 'drawerBrace = "C:\Work\Library\30_Drawers\Parts" & dBrace & "_IPT_111.ipt" Component.Replace("RH DWR SIDE:1", drawerRH, True) Component.Replace("LH DWR SIDE:1", drawerLH, True) Component.Replace("DRAWER BACK:1", drawerBack, True) Component.Replace("DWR BTM:1", drawerBottom, True)
Solved! Go to Solution.