Solved! Go to Solution.
Solved by Alexander.Rivilis. Go to Solution.
@erik_kohl 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
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'~
Can't find what you're looking for? Ask the community or share your knowledge.