.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Passing selected objects for Editor.SendStringMessage

1 REPLY 1
Reply
Message 1 of 2
Anonymous
222 Views, 1 Reply

Passing selected objects for Editor.SendStringMessage

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.
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost