AVAX-software.com Forums: Hatch - AVAX-software.com Forums

Jump to content

Page 1 of 1

Hatch

#1 User is offline   hamipers Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 50
  • Joined: 06-May 05
  • Location:Ker
  • Interests:ASP.NET<br />C#.NET<br />MS SQL Server 2000<br />Delphi<br />.<br />.<br />.<br />Painting<br />Sculpture<br />Music<br />Thinking

Posted 21 May 2005 - 04:53 AM

Hi,

When I try to set Hatch on a shape, it displays a small window asking for HatchD, HAngle, Inside, Border and Mask. I need to set Hatch of a shape without asking the end user the above properties and I use properties that I wish. How would I bypass this window?

#2 User is offline   Athanasios Gardos Icon

  • Administrator
  • Icon
  • Group: Admin
  • Posts: 333
  • Joined: 21-March 05
  • Gender:Male

Posted 21 May 2005 - 09:13 AM

    Dim xV() As Single, yV() As Single, zV() As Single
    Dim HDist As Single, Angle As Single
    Dim Hin As Integer, HBrd As Integer
    Dim HMask As String
    Dim oMath As Object 'avMath.dll
    Set oMath = CreateObject("avMath.cAvaxMath")
    Dim x1() As Single, y1() As Single, z1() As Single
    Dim x2() As Single, y2() As Single, z2() As Single
    If oMath.GetRegularPolygonVertices(5, 5, 8, 6, xV(), yV(), zV()) = True Then
       HDist = 0.5
       Angle = 45
       Hin = 1
       HBrd = 0
       HMask = "110"
       Call oMath.GetHatchBlockLines(xV(), yV(), HDist, Angle, Hin, HBrd, HMask, x1(), y1(), z1(), x2(), y2(), z2())
       Call cAvax1.Add_BlockLines(x1(), y1(), z1(), x2(), y2(), z2())
    End If
    Set oMath = Nothing

Athanasios Gardos
Avax-Software.com

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users