0 Replies Latest reply on Jan 7, 2014 7:32 AM by Sanjay Phadke

    determine line belongs to block

    Sanjay Phadke

      Hello All

      In  a drawing sketch there are many block & lines

      If user selects a line then I want to capture event that whether that line belongs to sketchblock or it is just a line

      Kindly guide me for the same

      my code is as below

       

      If swselmgr.GetSelectedObjectType(1) = 10 Then

             Set selLineInst = swselmgr.GetSelectedObject6(1, -1)

            'Debug.Print selLineInst.Layer

            If  selLineInst.Layer = "FORMAT" Then

            swModel.ClearSelection2 True

            Exit Function

             End If

         End If

       

      The above code works fine when user selects a separate sketch line

      but when user selects line that is part of block then what should be written

       

      If swselmgr.GetSelectedObjectType(1) = 114 Then

         

       

       

         End If