.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Invokememb erts commands
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
113 Views, 4 Replies
03-19-2012 01:12 AM
Hello, this code sends an 'Regen' command directly to Autocad. Dim oAcadDoc As Object = Application.DocumentManager.MdiActiveDocument.Acad Document 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?
Solved! Go to Solution.
Re: Invokememb erts commands
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-19-2012 01:58 AM 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")
Re: Invokememb erts commands
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-19-2012 01:58 AM 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
C6309D9E0751D165D0934D0621DFF27919
Re: Invokememb erts commands
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-19-2012 02:31 AM in reply to:
Hallex
Thanks for youre quick reply!!
It is a great help.
Re: Invokememb erts commands
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-19-2012 02:54 AM in reply to:
nijhuis
You're welcome
Cheers ![]()
~'J'~
_____________________________________
C6309D9E0751D165D0934D0621DFF27919
C6309D9E0751D165D0934D0621DFF27919



