danielecalise@[EMAIL PROTECTED]
wrote:
>Hi,
>I have problems with the "mdlWorkDgn_write". I must write informations
>into a reference file, i use this code:
>
>
>fileObj = mdlModelRef_getDgnFile(MASTERFILE);
>if( mdlModelRef_createWorking( &modelRef, fileObj, NULL, TRUE, TRUE )
>==SUCCESS ){
>
>linePts[0].x =698758.188;linePts[0].y =8622489.818;linePts[0].z =0;
>linePts[1].x =699917.326;linePts[1].y =8620572.365;linePts[1].z =0;
>
>if(mdlLineString_create(tElP,NULL,linePts,2)!=SUCCESS)
> printf("ERRORE DURANTE LA CREAZIONE DELLA LINEA");
>if(mdlElmdscr_new(&appDP,NULL,&tElP)!=SUCCESS)
> printf("ERRORE DURANTE LA CREAZIONE DELL'ELEMENT DESCRIPTOR");
>if(mdlWorkDgn_write(&appDP,-1,modelRef)==0)
> printf("ERRORE DURANTE LA SCRITTURA SUL MODELLO DI ZONA ERRORE
>NUMERO : %d\n",mdlErrno);
>}
>
>The error is -224 (MDLERR_OVERSIZE_ELEMENT). Where is the problem?
>Thanks in advance
>Daniele Calise
>
>
You working on MASTERFILE, not on reference file.
Use to select reference file function mdlModelRefIterator_...
Michal


|