[MVBA V8i SS3] Question about GetElementByID

Hello All,

The first row is OK, the second row is wrong, it will show error "Element not found". It is wired, why I have to convert Dlong to long, and then convert long to Dlong, it seems nothing actually. Why cannot get element by ID directly?

          Set TestEle = ActiveModelReference.GetElementByID(DLongFromLong(DLongToLong(MyEnum.Current.id)))
          Set TestEle = ActiveDesignFile.GetElementByID(MyEnum.Current.id)

Thanks a lot.

Parents Reply Children