AnsweredAssumed Answered

Object Variable Error

Question asked by jacob may on Mar 15, 2016
Latest reply on Mar 16, 2016 by jacob may

The chunk of code below runs just fine against a different assembly utilizing an identical Blank.Part. I am about to the end of my rope on this thing, I have went through all of my code to make sure everything I am doing from one assembly to another is identical and it is. It keeps throwing the Object variable or With Block variable not set error. Please Help.

 

If RafterSectNumber > 2 And RafterSectNumber <= 3 Then

            Set swDim = swModel.Parameter("D1@3ChannelClipRef@Blank.Part")

            vDimVal = swDim.GetSystemValue3(swThisConfiguration, Empty)

            Set swDim = swModel.Parameter("D11@Sketch1@LowerRafterClip.Part")

            swDim.SetSystemValue3 vDimVal(0), swThisConfiguration, Empty

                                      

            Set swDim = swModel.Parameter("D2@3ChannelClipRef@Blank.Part")

            vDimVal = swDim.GetSystemValue3(swThisConfiguration, Empty)

            Set swDim = swModel.Parameter("D12@Sketch1@LowerRafterClip.Part")

            swDim.SetSystemValue3 vDimVal(0), swThisConfiguration, Empty

        End If

Outcomes