ObjectARX

Reply
*Rizzo, Jon
Message 1 of 2 (47 Views)

Bizarre error message

47 Views, 1 Replies
07-31-2002 03:30 AM
I have an objectarx program in which I used VC++ to build wrapper classes
for the Land Desktop 3 type library. I defined two commands that both add
cogo points to the current project. In both commands, I use the following
code:

extern COleSafeArray sa;
extern IAeccApplication app;
...
IAeccProject project(app.GetActiveProject());
IAeccCogoPoints CogoPoints(project.GetCogoPoints());
IAeccCogoPoint cgPoint(CogoPoints.Add(sa, kCoordinateFormatXYZ));


Both commands work properly, with one small exception. In one of the two
commands, the last line causes the following message to appear on the
command prompt:

ARX_ERROR: eInvalidAdsName

Aside from this error message, the code does exactly what is expected.

Any idea where this error message is coming from or what it means??

Jon Rizzo
Langan Engineering and Environmental Services, Inc.
*Rizzo, Jon
Message 2 of 2 (47 Views)

Re: Bizarre error message

07-31-2002 04:08 AM in reply to: *Rizzo, Jon
nevermind, I found the problem. Apparently you can't add cogo points to the
database if the model space block table record is already open for read.



"Jon Rizzo" wrote in message
news:77332BDD13524518900373A0EDDA28F2@in.WebX.maYIadrTaRb...
> I have an objectarx program in which I used VC++ to build wrapper classes
> for the Land Desktop 3 type library. I defined two commands that both add
> cogo points to the current project. In both commands, I use the following
> code:
>
> extern COleSafeArray sa;
> extern IAeccApplication app;
> ...
> IAeccProject project(app.GetActiveProject());
> IAeccCogoPoints CogoPoints(project.GetCogoPoints());
> IAeccCogoPoint cgPoint(CogoPoints.Add(sa, kCoordinateFormatXYZ));
>
>
> Both commands work properly, with one small exception. In one of the two
> commands, the last line causes the following message to appear on the
> command prompt:
>
> ARX_ERROR: eInvalidAdsName
>
> Aside from this error message, the code does exactly what is expected.
>
> Any idea where this error message is coming from or what it means??
>
> Jon Rizzo
> Langan Engineering and Environmental Services, Inc.
>
>

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community