CreateACADLineStyleString example
Example for CreateACADLineStyleString method
Dim iStyle As Short
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
Command1.Text = "CreateACADLineStyleString"
cAvax1.StartAvax()
Call CAvax1.SetAvaxProperty(Avax.AvaxProp.LineStyleScale_p, 0.5)
iStyle = 1
Call CAvax1.Add_Line(0, 0, 0, 15, 15, 0, Nothing, -1, -1, iStyle, -1)
End Sub
Private Sub Form1_FormClosed(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
cAvax1.EndAvax()
End Sub
Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click
Dim sStyleFile As String
Dim sStyleName As String
Dim sLineStyleString As String
sStyleFile = My.Application.Info.DirectoryPath & "\..\acad1.lin"
sStyleName = "PHANTOMX2"
sLineStyleString = cAvax1.CreateACADLineStyleString(sStyleFile, sStyleName)
Call cAvax1.SetLineStyle(iStyle, sLineStyleString)
End Sub