.NET

Reply

SendStringToExecute - when?

145 Views, 4 Replies
08-15-2006 08:09 AM
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

Re: SendStringToExecute - when?

08-17-2006 10:23 AM in reply to: *perry
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?

Re: SendStringToExecute - when?

08-17-2006 05:14 PM in reply to: *perry
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.

Re: SendStringToExecute - when?

08-18-2006 07:20 AM in reply to: *perry
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

Re: SendStringToExecute - when?

08-21-2006 07:53 AM in reply to: *perry
I spend so much time talking to myself here I should get
a free shopping cart.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post