.NET

Reply
Contributor
nijhuis
Posts: 16
Registered: ‎09-26-2010
Message 1 of 5 (189 Views)
Accepted Solution

Invokememberts commands

189 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.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?

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")

Moderator
Alexander.Rivilis
Posts: 1,450
Registered: ‎04-09-2008
Message 2 of 5 (186 Views)

Re: Invokememberts commands

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")


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 3 of 5 (185 Views)

Re: Invokememberts commands

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
Contributor
nijhuis
Posts: 16
Registered: ‎09-26-2010
Message 4 of 5 (177 Views)

Re: Invokememberts commands

03-19-2012 02:31 AM in reply to: Hallex

Thanks for youre quick reply!!

It is a great help.

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 5 of 5 (167 Views)

Re: Invokememberts commands

03-19-2012 02:54 AM in reply to: nijhuis

You're welcome

Cheers :smileyhappy:

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.