Message 1 of 5
Passing an entity through SendStringToExecute
Not applicable
11-16-2006
04:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all.
I'm trying to run an Autocad command through SendStringToExecute method
of Document class.
The command I'm trying to run requires, first of all, that you select an
object on the drawing.
Now I'm using Autodesk.AutoCAD.Internal.Utils.SelectObjects to select an
object on the drawing and then run SendStringToExecute to execute the
comand. It work's fine, but it has promlems when I repeat this procedure
multiple times in a row. It is due to the lack of synchronization
between commands executed in Autocad and .NET commands.
Is there any way to pass to an Autocad command the object it needs?
The command I'm, trying to use is aecwindowadd, it's an Architectural
Desktop command, but it works the same as any other Autocad command:
first it asks you to select an object, then ask for a point. If you
select the object before running the command it asks you only for the point.
I'd like to do something like
(command "aecwindowadd" "wall1" "point")
or in alternative, first run an Autocad command to automatically select
the wall and then run the windowadd command.
Thank you all,
Stefano
I'm trying to run an Autocad command through SendStringToExecute method
of Document class.
The command I'm trying to run requires, first of all, that you select an
object on the drawing.
Now I'm using Autodesk.AutoCAD.Internal.Utils.SelectObjects to select an
object on the drawing and then run SendStringToExecute to execute the
comand. It work's fine, but it has promlems when I repeat this procedure
multiple times in a row. It is due to the lack of synchronization
between commands executed in Autocad and .NET commands.
Is there any way to pass to an Autocad command the object it needs?
The command I'm, trying to use is aecwindowadd, it's an Architectural
Desktop command, but it works the same as any other Autocad command:
first it asks you to select an object, then ask for a point. If you
select the object before running the command it asks you only for the point.
I'd like to do something like
(command "aecwindowadd" "wall1" "point")
or in alternative, first run an Autocad command to automatically select
the wall and then run the windowadd command.
Thank you all,
Stefano