zero issues vb.net and com

zero issues vb.net and com

Anonymous
Not applicable
1,088 Views
2 Replies
Message 1 of 3

zero issues vb.net and com

Anonymous
Not applicable

i finally decided to commit to learning visual studio vb.net and just tried linking in autocad activex com vba, whatever the term, and i am having zero issues getting it to work.  i am studying visual studio textbooks, and have a long history of autocad and excel vba.  i thought from reading posts it was a bad idea, very difficult, not smart, but i have ported over several hundred lines of code and its surprising how easy it is.  i am rather convinced that everything is going to work, and in the meantime i get to learn the much improved IDE.

 

i am copy pasting small chunks, there is a bit to learn,  but all the changes are predictable and easily done. the error reporting is vastly better. it will even volunteer to fix it. tells you when you declare variables and dont use. 

 

arrays are a little different. no variant arrays. indexing is a little different.

all methods to be capitalized.

all arguments in parentheses.

no set statements.

sometimes you have to figure out how to get the namespace shortcuts to work. the error reporting in vs really helps. 

 

many more tools to use with collections and array types.

it seems like a no-brainer.  maybe vb7 made it work better from the visual studio side and people need to take a look at it. i will post my connection code after i have run it a little longer and gone thru the my first plug in again for my own comparison.

 

here are the relevant autocad links,

 

http://help.autodesk.com/view/OARX/2019/ENU/?guid=GUID-BFFF308E-CC10-4C56-A81E-C15FB300EB70

 

http://help.autodesk.com/view/OARX/2019/FRA/?guid=GUID-C8C65D7A-EC3A-42D8-BF02-4B13C2EA1A4B

 

http://help.autodesk.com/view/OARX/2019/ENU/?guid=GUID-D1E1CE43-F42B-4D8E-9B42-FDA9D8CCB6B9

 

http://help.autodesk.com/view/OARX/2019/ENU/?guid=GUID-927E71C2-E515-438E-9D7A-246D97BEF93F

 

also excel, a nice page with easy complete instructions. autodesk should do this,

 

https://docs.microsoft.com/en-us/previous-versions/office/troubleshoot/office-developer/automate-exc...

 

 

 

 

 

 

 

 

 

 

 

0 Likes
1,089 Views
2 Replies
Replies (2)
Message 2 of 3

lena.talkhina
Alumni
Alumni

@Anonymous wrote:

 

also excel, a nice page with easy complete instructions. autodesk should do this,

 


Hello @Anonymous !

Great to see you here on VBA forum.

 

My name is Lena, I am here to help you being heard.

Could you, please, clarify, what Autodsk should do? Did you mean easy clear instructions?

Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям! | Do you find the posts helpful? "LIKE" these posts!
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.



Лена Талхина/Lena Talkhina
Менеджер Сообщества - Русский/Community Manager - Russian

0 Likes
Message 3 of 3

Anonymous
Not applicable

i suggest autodesk make a one page one link comprehensive definitive answer to the following question.

 

how do i access autocad com objects from visual studio?

 

i also wanted to post to the vba forum and say i was surprised how easy it was and how satisfactory the results.  my impression the question is usually answered in the negative,  "you don't really want to do that."   when i searched the forum i found a 3 year old thread where it was being discussed and the documentation manager said yes it was doable, and posted some code.  ordinary code.  i should have tried it sooner.  visual studio is clearly a technological advance, running autocad com objects seems to work in the same way. what am i missing?

 

   

0 Likes