Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

.NET oAlignment.GetPointAt(double Station) - issue or feature?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
rutar
395 Views, 2 Replies

.NET oAlignment.GetPointAt(double Station) - issue or feature?

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?
2 REPLIES 2
Message 2 of 3
Jeff_M
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
EESignature
Message 3 of 3
rutar
in reply to: Jeff_M

Thank you Jeff_M for comprehensive reply!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report