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