Extract Line String Coordinates with VBA

We begin transforming our Micro Station Basic Macros into VBA.

We have a three points Line string.

Is there a very simple example in VBA on how to extract all its vertices coordinates?

Apparently with

Dim vertices() As Point3d

vertices = oElement.AsVertexList.GetVertices)

But all Micro Station VBA help examples are not clear at all, on which code to write in the module and which code to write in the class module.

Thanks

Parents
  • it is up to you how you design your modules and or classes. for easy things a module maybe enough if your ideas grow classes are best.

    Regards

    Frank

    since 1985: GIS, CAD, Engineering (Civil)  Senior Consultant : [Esri ArcMap, AutoCad Bentley MS V4 - V8i, GeoGraphics, Map, InRoads  HHK Geograf, IBr DAVID,  AED-SICAD-Utilities ]  Dev: [C, C++, Basic , Java, SQL, FORTRAN, UML]
    [direct quote by: http://en.wikipedia.org/wiki/Helmut_Schmidt]: "Wer Kritik übel nimmt, hat etwas zu verbergen"
    Wer Grammatik- und/oder Rechtschreibfehler findet, der darf sie behalten :-)

Reply
  • it is up to you how you design your modules and or classes. for easy things a module maybe enough if your ideas grow classes are best.

    Regards

    Frank

    since 1985: GIS, CAD, Engineering (Civil)  Senior Consultant : [Esri ArcMap, AutoCad Bentley MS V4 - V8i, GeoGraphics, Map, InRoads  HHK Geograf, IBr DAVID,  AED-SICAD-Utilities ]  Dev: [C, C++, Basic , Java, SQL, FORTRAN, UML]
    [direct quote by: http://en.wikipedia.org/wiki/Helmut_Schmidt]: "Wer Kritik übel nimmt, hat etwas zu verbergen"
    Wer Grammatik- und/oder Rechtschreibfehler findet, der darf sie behalten :-)

Children
No Data