TBC Macros and Extensions

 View Only
Expand all | Collapse all

"explode lines" macro handles lines with VPI's the wrong way

  • 1.  "explode lines" macro handles lines with VPI's the wrong way

    Posted 11-07-2019 02:44

    Hi,

    there seems to be a bug or an unhandled type of string line.

    The VPI definition of the  source line is copied over to all the new segments and starts at the new zero of those new string lines. Hence messing up the elevation definition of the new lines.

    The new segments don't have elevations in the horizontal tab, only in the vertical tab. But the "distance along" always starts at 0. The distances should be shifted according to the segment start distance in the source string line.



  • 2.  Re: "explode lines" macro handles lines with VPI's the wrong way

    Posted 11-13-2019 14:30

    The macro has been updated to resolve this. Thanks for posting.



  • 3.  Re: "explode lines" macro handles lines with VPI's the wrong way

    Posted 11-14-2019 00:50

    Thanks Gary.

    But with my BC 5.10.2 the result is still wrong. Same as before.

    There also seems to be something wrong with TMLStatus now.

    It shows the whole time that "converttolinestring" is out of date and if I try to update it shows that it is updating "Explodelines".

     

     

    Cheers

    Ronny



  • 4.  Re: "explode lines" macro handles lines with VPI's the wrong way

    Posted 11-14-2019 07:57

    Could you upload a VCL of your sample line?



  • 5.  Re: "explode lines" macro handles lines with VPI's the wrong way

    Posted 11-14-2019 09:06
      |   view attached

    Hi Gary,

    please find attached my sample.

    It's just one single line with horizontal and vertical definitions.

     

    Thanks

    Ronny

    Attachment(s)

    zip
    Explode_Line_Test.vce.zip   43 KB 1 version


  • 6.  Re: "explode lines" macro handles lines with VPI's the wrong way

    Posted 11-14-2019 16:28

    I was testing with version 5.20. That worked fine.

    I changed the macro so it will work in 5.10 and 5.20. 



  • 7.  Re: "explode lines" macro handles lines with VPI's the wrong way

    Posted 11-18-2019 01:11

    Awesome. Now it works. That'll save us quite some time.

    Thanks Gary