.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Invokememberts commands

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
nijhuis
603 Views, 4 Replies

Invokememberts commands

Hello, this code sends an 'Regen' command directly to Autocad. Dim oAcadDoc As Object = Application.DocumentManager.MdiActiveDocument.AcadDocument oAcadDoc.GetType().InvokeMember("Regen", System.Reflection.BindingFlags.InvokeMethod, Nothing, oAcadDoc, New Object() {1}) Does anyone know where i can find wich other commands i can send with invokemember? Is there a list of commands?
4 REPLIES 4
Message 2 of 5
Alexander.Rivilis
in reply to: nijhuis


@nijhuis wrote:
Hello, this code sends an 'Regen' command directly to Autocad. Dim oAcadDoc As Object = Application.DocumentManager.MdiActiveDocument.AcadDocument oAcadDoc.GetType().InvokeMember("Regen", System.Reflection.BindingFlags.InvokeMethod, Nothing, oAcadDoc, New Object() {1}) Does anyone know where i can find wich other commands i can send with invokemember? Is there a list of commands?

"Regen" is not a command, but the method of class AcadDocument. List of Objects/Methods/Eventscan be found in AutoCAD Activex and VBA Reference (located in "C:\Program Files\Common Files\Autodesk Shared\acadauto.chm")

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | 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
Expert Elite Member

Message 3 of 5
Hallex
in reply to: nijhuis

You can't believe it but you might be want to

find all methods / function in VBA editor in

AutoCAD, click Alt+F11 to open VBAIDE in AutoCAD

then see the Help file

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 4 of 5
nijhuis
in reply to: Hallex

Thanks for youre quick reply!!

It is a great help.

Message 5 of 5
Hallex
in reply to: nijhuis

You're welcome

Cheers Smiley Happy

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost