SendStringToExecute - when?

SendStringToExecute - when?

Anonymous
Not applicable
769 Views
4 Replies
Message 1 of 5

SendStringToExecute - when?

Anonymous
Not applicable
I'm attempting to use the SendString function to load a partial .cui
file at Acad startup, within the initialize block of an
IExtensionApplication module. This is resulting in a "eNoDocument"
exception, even though the default drawing is "alive" enough for me to
echo things to the command prompt etc.
Is there any other way of loading .cui files in .Net besides this lame
"sendstring" method?
Perry
0 Likes
770 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
perry wrote:
> I'm attempting to use the SendString function to load a partial .cui
> file at Acad startup, within the initialize block of an
> IExtensionApplication module. This is resulting in a "eNoDocument"
> exception, even though the default drawing is "alive" enough for me to
> echo things to the command prompt etc.
> Is there any other way of loading .cui files in .Net besides this lame
> "sendstring" method?
> Perry
Nothing? Beulla?
0 Likes
Message 3 of 5

Anonymous
Not applicable
perry wrote:
> perry wrote:
>> I'm attempting to use the SendString function to load a partial .cui
>> file at Acad startup, within the initialize block of an
>> IExtensionApplication module. This is resulting in a "eNoDocument"
>> exception, even though the default drawing is "alive" enough for me to
>> echo things to the command prompt etc.
>> Is there any other way of loading .cui files in .Net besides this lame
>> "sendstring" method?
>> Perry
> Nothing? Beulla?

Is there something in the registry?
searched for ".cui" there, couldnt find anything.
0 Likes
Message 4 of 5

Anonymous
Not applicable
perry wrote:
> perry wrote:
>> perry wrote:
>>> I'm attempting to use the SendString function to load a partial .cui
>>> file at Acad startup, within the initialize block of an
>>> IExtensionApplication module. This is resulting in a "eNoDocument"
>>> exception, even though the default drawing is "alive" enough for me to
>>> echo things to the command prompt etc.
>>> Is there any other way of loading .cui files in .Net besides this lame
>>> "sendstring" method?
>>> Perry
>> Nothing? Beulla?
>
> Is there something in the registry?
> searched for ".cui" there, couldnt find anything.

Whats weird is before the call to sendstring, I can establish a document
> object and echo stuff to the command prompt. So seems to me that there
> IS a document, but sendstring says no
0 Likes
Message 5 of 5

Anonymous
Not applicable
I spend so much time talking to myself here I should get
a free shopping cart.
0 Likes