3 Replies Latest reply on Aug 21, 2018 2:19 AM by Niels Raahauge

    Values for eg. swFeat.GetTypeName

    Niels Raahauge

      Hi

      I think it is some basic knowledge I need - can somebody help me

       

      I want to watch swFeat.GetTypeName - and can't figure out how to.

      Get only two value: string or object - but in the cases, i can see the result for it  eg. is "Sheetmetal"

       

       

      Part of code to figure out: Is the part in the drawing containing sheet metal -

       

      Set swModel = swApp.ActiveDoc

      Set swFeat = swModel.FirstFeature

       

          Do While Not swFeat Is Nothing

       

                  Case "SheetMetal"

                      Debug.Print TypeName(swFeat.GetTypeName)      'What is wrong - I want the result "SheetMetal"

                      Process_SheetMetal swApp, swModel, swFeat

      -etc