ScaleFactor Property (IntelliCAD)

IntelliCAD 11.1 Object Library
ScaleFactor Property
See Also 
AttributeDef Object : ScaleFactor Property

Description

Sets or returns the scaleFactor for the attribute.

Property type

Read-write property

Syntax

Visual Basic
Public Property ScaleFactor As Double

Example

Private Sub ScaleFactor_Example()

     ' This example creates text and adds it to the drawing using the

     ' AddText method. It then obtains and resets the ScaleFactor property.

     Dim icadDoc As IntelliCAD.Document

     Dim myText As String

     Dim textObj As IntelliCAD.Text

     Dim insPt As IntelliCAD.Point

     Dim height As Double

     Dim NewScaleFac As Double

     Set icadDoc = ActiveDocument

     Set insPt = Library.CreatePoint(0, 9)

     height = 5

     myText = "Test string for the AddText method"

     ' Add the Text object

     Set textObj = icadDoc.ModelSpace.AddText(myText, insPt, height)

     textObj.Update

     ThisDocument.Application.ZoomExtents

     MsgBox "ScaleFactor: " & textObj.ScaleFactor

     NewScaleFac = InputBox("Type a new scale factor:")

     textObj.ScaleFactor = NewScaleFac

     textObj.Update

     ThisDocument.Application.ZoomExtents

End Sub

See Also

© 2022 IntelliCAD Technology Consortium. All Rights Reserved.