CAD text style on the current text style operations (com Interface Web version)

When the current text style represents a text object is added to the DWG database, the default text style used by the operating system variable TEXTSTYLE, system variable reference:

http://www.mxdraw.com/help_2_48.html

Sets the current text style JS:

            // add text style 
            mxOcx.AddTextStyle1 ( "MyTextStyle", "txt.shx", "hztxt.shx",. 1 );
             // get the current database 
            var Database = mxOcx.GetDatabase ();
             // set the current text style 
            database. CurrentlyTextStyle = "MyTextStyle";

Take the current text style code:

var sCurrentTextStyle = database.CurrentlyTextStyle;

 

Guess you like

Origin www.cnblogs.com/yzy0224/p/12009333.html