VBA: pattern informations

How do I get pattern informations of a pattern placed with "associative pattern" and "associative region boundary" with VBA?

Parents Reply
  • Hi Jacqueline,

    Unknown said:
    can you tell me how to use MDL to get the hatch-space?

    unfortunately it's not easy. You have to use a proper MDL function (MDL documentation delivered with MicroStation SDK is needed) and to find a right one (I guess it would be probably mdlPattern_extractAssociative). What I am not sure about is that this function fills PatterParams structure and VBA code has to mimics this structure properly. I am worry it would be time consuming task to investigate the right code and test it.

    As an alternative, maybe C-expression access to TCB can be used. In TCB (Terminal Control Block, see e.g. this Jon's article)  active settings are stored including active pattern parameters. So to obtain pattern spacing value, a workflow identify pattern element > match parameters > check active parameters would work.

    With regards,

      Jan

Children
No Data