HatchPatterns

Hi,
i need for a comboBox the names of existing hatch patterns.
In AutoCAD there is Autodesk.AutoCAD.Windows.Data.HatchPatterns ( .Net API).
Is there something similiar in Bricscad or what is the best workaround.
Many thanks,
Petra

Comments

  • Couldn't you use a .GetFiles (with subdirectories) on each split (";") of the search path to collect all .PAT files and parse them for pattern names? That way you would even pick up user added patterns.

  • Hi Terry,
    .GetFiles is just a windows search in the support directory?
    Thanks,
    Petra

  • Directory.GetFiles is the .NET Directory function, pass it each of the paths in the support path after splitting on ";"

    Application.GetSystemVariable("ACADPREFIX")

    Remember that each .PAT file can contain multiple pattern names starting with an asterisk like "*GRAVEL".

  • Thanks a lot!

This discussion has been closed.