AutoCAD Civil 3D Customization
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
.NET oAlignment .GetPointA t(double Station) - issue or feature?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
104 Views, 2 Replies
02-19-2012 06:22 AM
Hello!
Just marked one strange thing:
Our alignment starts at 3+00, ends at 43+00. If we ask
instantaneous radius in code:
oAlignment.GetInstantaneousRadius(sta)
this function returns radius of aligment at station sta - its OK!
But! if we ask for Point at the same station sta:
oAlignment.GetPointAt(sta)
it returns Point not at sta, but at (sta + oAlignment.StartingStation),
in our case - (sta+3.00).
If alignment starts at 0+00 - there is no such problem.
Is it bug or feature?
Solved! Go to Solution.
Re: .NET oAlignment .GetPointA t(double Station) - issue or feature?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-19-2012 11:19 AM in reply to:
rutar
There is no GetPointAt() method. There are GetPointAtDist() and GetPointAtParam(). These are both the base Curve object methods, therefor the the GetPointAtDist() uses an absolute distance since it has no knowledge of a Station. On the other hand, the GetInstantaneousRadius() method is an Alignmnetobject method which DOES expect the actual Station value.
So no, it's not a bug, but it something to be aware of and have code that compensates for it.
Jeff_M, also a frequent Swamper
Re: .NET oAlignment .GetPointA t(double Station) - issue or feature?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-19-2012 11:50 AM in reply to:
Jeff_M
Thank you Jeff_M for comprehensive reply!
