Message 1 of 10
SendStringToExecute executed a the end of my command
Not applicable
12-09-2005
11:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would to like to call a function in Arx C++ that create entities
and just after I need to move them. For that, I created a command in .Net that call the Arx function with SendStringToExecute. The problem is, the function called by SendStringToExecute is executed when my command terminates, so I can not move the entities because does not exist yet.
Basically here is my code
[CommandMethod( "MyCommand")] _
Public Shared Function MyCommand()
acadDocument.SendStringToExecute( "(arx_function ""param1"" ""param2"" ) " )
MoveNewEntities()
End Function
How can I call an external function (Arx, Lisp) in a command without to wait the end of the command ?
Thank you
and just after I need to move them. For that, I created a command in .Net that call the Arx function with SendStringToExecute. The problem is, the function called by SendStringToExecute is executed when my command terminates, so I can not move the entities because does not exist yet.
Basically here is my code
[CommandMethod( "MyCommand")] _
Public Shared Function MyCommand()
acadDocument.SendStringToExecute( "(arx_function ""param1"" ""param2"" ) " )
MoveNewEntities()
End Function
How can I call an external function (Arx, Lisp) in a command without to wait the end of the command ?
Thank you