Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [CONNECT C++] Replacement for mdlText_extractShape()

$
0
0

Here is what I came up with for determining the range of a piece of text:

TextElemHandlerP		pTextHandler=dynamic_cast<TextElemHandler*>(&child.GetHandler());
TextStringPtr			pTextString=TextString::Create();
pTextHandler->InitTextString(child, *pTextString);
DRange2dCR			range=pTextString->GetExtents();

 

 

Here is what I came up with for determining the range of a text node:

TextNodeHandlerP		pTextHandler=dynamic_cast<TextNodeHandler*>(&child.GetHandler());
DRange3d			range		={0};
pTextHandler->GetBasisRange(child, range);

 

where "child" is the ElementHandle (or ChildEditElemIter in my case)

 

Bruce


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>