Download this:
http://www.caddzone.com/CommandLine.cs
Use the Command() method exactly as you would use
the AutoLISP (command) function (you can pass it managed
types like Point3d, ObjectId, double, string, etc. - no need to
convert to strings as you must do with SendStringToExecute),
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009
http://www.acadxtabs.com
Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm
wrote in message news:6132665@discussion.autodesk.com...
I am trying to programmatically create schedule object in a .NET application
by using the ScheduleAdd command. How can I pass the objects to use in the
command? Here is my code that calls the schedule add command but uses ALL to
select all items.
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("ScheduleAdd\nall\n0,0\n\n",
true, false, true); I want to be able to pass the objects to the command so
the schedule will only include those objects. Any ideas? Thanks.