Article | 60000722 |
Type | HowTo |
Product | Engine |
Version | 6 |
Date Added | 12/29/2008 |
Submitted by | Jesus Nicolas Zaragoza Grife |
Keywords |
Private Sub Command6_Click()
Dim txt As VDrawI5.vdText
Dim AlignObject As VectorDraw_Professional.IAlignToViewSet txt = VD.ActiveDocument.entities.AddText("aaBB", Array(10, 10), 1)
VD.CommandAction.CmdRect Array(9.5, 9.5), Array(14, 11.5)
VD.CommandAction.Zoom "E", 0, 0
Set AlignObject = txt.WrapperObject ' set this text to be always parallel to the view.
AlignObject.AlignToView = TrueAlignObject.AlignToViewSize = 20 'text size always the same, size in pixelsEnd SubPrivate Sub Command7_Click()
VD.CommandAction.View3D "VROT"
End Sub