Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computer Aided Design - CAD > Programming with Microstation > Re: Problems wi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 428 of 473
Post > Topic >>

Re: Problems with mdlWorkDgn_write

by MB <michal10@[EMAIL PROTECTED] > Apr 9, 2007 at 12:11 AM

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
 




 2 Posts in Topic:
Problems with mdlWorkDgn_write
danielecalise@[EMAIL PROT  2007-04-05 09:47:53 
Re: Problems with mdlWorkDgn_write
MB <michal10@[EMAIL PR  2007-04-09 00:11:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 15:20:47 CST 2008.