ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bizarre error message

1 REPLY 1
Reply
Message 1 of 2
Anonymous
174 Views, 1 Reply

Bizarre error message

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.
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

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.
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost