Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show only
|
Search instead for
Did you mean:
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service.Translate
Direct equivalent of sendcommand in . NET is AcadDocument.SendCommand. You need add reference to AutoCAD 200X Type Library and AutoCAD/ObjectDBX Common 1X.0 Type Library. X is 6 for AutoCad 2006 and 7 for AutoCAD 2007
Sample:
[code]
Public Sub TestSendCommand(ByVal cmd As String)
Dim app As AcadApplication = Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication
app.ActiveDocument.SendCommand(cmd)
End Sub
[/code]
Remember to add blank or newline symbol to string cmd.