get list of all the elements C #

Realy In C # get list of all the elements of the model and the properties of each element?

Parents
  • Hi,

    I assume you thought "How to get...".

    To get list of all elements in a model you have to create ElementEnumerator using Scan method. It's pretty the same concept as in MicroStation VBA, so I recommend to read MicroStation VBA help and included examples, there are several about scanning models there.

    The second part of your question cannot be answer in a simple way, because each element has different properties. I think the most of them (at least in the case of 2D elements) are implemented as class properties, so you should have not big problems to obtain them.

    BTW You should post your question to Programming Forum, because this forum is focuse on MicroStation VBA only.

    With regards,

     Jan

Reply
  • Hi,

    I assume you thought "How to get...".

    To get list of all elements in a model you have to create ElementEnumerator using Scan method. It's pretty the same concept as in MicroStation VBA, so I recommend to read MicroStation VBA help and included examples, there are several about scanning models there.

    The second part of your question cannot be answer in a simple way, because each element has different properties. I think the most of them (at least in the case of 2D elements) are implemented as class properties, so you should have not big problems to obtain them.

    BTW You should post your question to Programming Forum, because this forum is focuse on MicroStation VBA only.

    With regards,

     Jan

Children