Talk About Network



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 > Problems with m...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 428 of 451
Post > Topic >>

Problems with mdlWorkDgn_write

by danielecalise@[EMAIL PROTECTED] Apr 5, 2007 at 09:47 AM

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




 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 Fri Jul 4 14:47:32 CDT 2008.