“函数或接口标记为限制的或函数使用了vb中不支持的自动类型” 是什么错误?

解决方案 »

  1.   

    VB中没有这样的对象或者函数接口。
    VBS的程序用VB6 IDE运行就会出现这样的错误。
      

  2.   

    Dim Coordinates1(2)
      Set TheSPAWorkbench = CATIA.ActiveDocument.GetWorkbench("SPAWorkbench")
      Set reference1 = oPart.FindObjectByName("点1")
      Set measureObj = TheSPAWorkbench.GetMeasurable(reference1)
      measureObj.GetPoint Coordinates1