TheSwamp

Code Red => .NET => Topic started by: nobody on July 29, 2014, 02:35:20 AM

Title: Buggy Line (GetPointAtDist...mystation)
Post by: nobody on July 29, 2014, 02:35:20 AM
Anyone have a clue why this throws an error when I change my alignments start station to 0+50 or 1+00 rather than using 0+00?

thisspot = myalign.GetPointAtDist(mystation);
Title: Re: Buggy Line (GetPointAtDist...mystation)
Post by: nobody on July 29, 2014, 02:53:18 AM
Solved...

turns out when I alter the station in civil 3d alignment options I have to subtract it from code above to get the proper location.

So if I changed the start station to 1+00, to get the appropriate point I had to subtract 100 from "mystation"...strange but whatever
Title: Re: Buggy Line (GetPointAtDist...mystation)
Post by: huiz on July 29, 2014, 03:22:46 AM
Weird indeed, PointAtDist is actually PointAtStation?
Title: Re: Buggy Line (GetPointAtDist...mystation)
Post by: nobody on July 30, 2014, 03:31:35 AM
Weird indeed, PointAtDist is actually PointAtStation?

ug...not sure I solved it properly / understand it... ran into the same problem with:

PointLocation

Appears any time I change the alignments starting station, or start my alignments with anything but 0+00 these functions have trouble

I think subtracting the pointlocation station from the start station of the alignment solved this one also, but still strange... and without further testing can't verify. 

Anyone else familiar with what's going on here can you offer some input?  Thanks!!!