Quantcast
Channel: Andrew Bell's Activities
Viewing all articles
Browse latest Browse all 4948

Set Text to Italic mode with a Key-in

$
0
0
 Product:MicroStation
 Version:08.05.01.25
 Environment:N\A
 Area:Text
 Subarea:General

Problem

How do I set Text to Italic mode with a key-in?

Solution

Here is the information on how to set the Italics. This information came from recording a basic macro. This
is a good way to see what the keyin or what function is being used to perform a certain operation.

Sub main
Dim startPoint As MbePoint
Dim point As MbePoint, point2 As MbePoint

' Start a command
MbeSendCommand "MDL KEYIN textstyle textstyle dialog open"

' Set a variable associated with a dialog box
MbeSetAppVariable " TEXTSTYLE", "gTextStyleData.italic", 1&, 1&

MbeSendCommand "TEXTSTYLE Save "
End Sub

It is using and Mbe Send command to set the value. This can not be used through the keyin browser. This can be accomplished either through Basic (above) or through VBA.

See also

Other language sources

 Original Author:Bentley Technical Support Group

Viewing all articles
Browse latest Browse all 4948

Trending Articles