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: Point to be...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 397 of 473
Post > Topic >>

Re: Point to be the center of a text

by grotero@[EMAIL PROTECTED] Jul 26, 2006 at 04:41 AM

Thank you olaf, I have just prove it and it works.

Regards.


olaf.giezenaar@[EMAIL PROTECTED]
 wrote:
> try this
>
> {
> MSElement el;
> TextSizeParam tSize;
> RotMatrix  rMatrix;
> TextParam  tParam;
>   mdlRMatrix_getIdentity(&rMatrix);
>   tSize.mode = TXT_BY_TILE_SIZE | TXT_NO_TRANSFORM;
>   tSize.size.height = 1000.0;
>   tSize.size.width  = 1000.0;
>   tParam.just = TXTJUST_CC;
>   tParam.font = 0;
>   tParam.style = 0;
>   tParam.viewIndependent = TRUE;
>
> mdlText_create(&el,NULL,"something",ptP,&tSize,&rMatrix,&tParam,NULL);
>
> }
>
> or
>
>  if (mdlText_create (&textE, NULL, textString, &pointText, NULL, NULL,
>  NULL, NULL) == SUCCESS)
> {
>  // set justification
>   textE.text_2d.just = TXTJUST_CC;
> // remake the text using the template
>  mdlText_create (&textE, &textE, textString, &pointText, NULL, NULL,
>  NULL, NULL)
> }
>
> grotero@[EMAIL PROTECTED]
 schreef:
>
> > Hi. I create a text element and add it to the dgn file like this:
> >
> > if (mdlText_create (&textE, NULL, textString, &pointText, NULL, NULL,
> > NULL, NULL) == SUCCESS)
> > {									mdlElement_display(&textE, NORMALDRAW);
> > 			mdlElement_add(&textE);
> > }
> >
> >
> > "pointText" is the origin point of the Text. Is possible to create a
> > text element with pointText as the center of it?
> > 
> > Thank you very much.
 




 3 Posts in Topic:
Point to be the center of a text
grotero@[EMAIL PROTECTED]  2006-07-26 03:04:26 
Re: Point to be the center of a text
olaf.giezenaar@[EMAIL PRO  2006-07-26 04:24:50 
Re: Point to be the center of a text
grotero@[EMAIL PROTECTED]  2006-07-26 04:41:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sun Nov 23 4:32:27 CST 2008.