The following code keeps throwing a type mismatch on the GetEntity line
What am i doing wrong?
Dim obj As Object = Nothing Try Dim pnt As Object = Nothing doc.Utility.GetEntity(obj, pnt, "test") Catch ex As Exception Return False End Try
The following code as well:
Dim obj as Object = Nothing
Try Dim pnt As Object = Nothing doc.Utility.GetEntity(obj) Catch ex As Exception Return False End Try
When i give no parameters i get an error that the number of parameters is not correct. That's fine, but that would imply
- that there is an overload accepting 1 parameter
- that the 'obj' parameter is of the wrong type
Solved! Go to Solution.
Dim obj As Object = Nothing Dim pnt(2) As Object Try doc.Utility.GetEntity(obj, pnt, "test") Catch ex As Exception Return False End Try
?
Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"
Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
unfortunately no 🙂
I'm running a thread in another forum as well and it seems that autocad not being the top window at the time seems to have an effect on this issue
Sorry. What about:
Dim pnt(2) As Double
?
Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"
Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
yes i tried that, but it didn't work
and about bringing autocad to the front: wrong track. I built in a 500ms delay and the call rejected error disappears and the original error reappears
No,
i was referencing some findings in the other thread which at first glance seemed to have relevance.
i didn't want to cross post, but the gentleman in the other thread recommended this group so i posted here, but since he kept helping i didn't want to abandon that thread