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

[CONNECT C++] Getting a DgnTextStylePtr for StyleID=0

$
0
0

How does one get/set the "Style (none)" (i.e. StyleId 0 ) text style ?

 

I've tried:

DgnTextStylePtr			noneStylePtr=DgnTextStyle::GetByID( 0, *ISessionMgr::GetMasterDgnFile() );

 

 

but that returns both!IsValid() and IsNull(). I also tried to take an existing TextStyle, change a few settings, and then use SetID(0) followed by SetActive() to try and force the settings of my TextStyle to be loaded into the "Style (none)" style and activated such that when text is placed, it is set with Style=Style (none).

 

Bruce

2-6957


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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