Hello.
I have a question.
How can I set start startion of Alignment in c#?
I found a property to get start station but I can't find anything to set one.
Is there a way to set start station in c#?
Thank you.
Hi,
BasisSoft BDN said:I have a question.
be aware this is general Developer and Programming Forum, whereas your question is about ORD, so I recommend to move your question to Civil Programming. To move existing discussion to another forum, use More > Move tool, available under your original post. Do not duplicate the posts!
Please read and follow the best practices: You do not specify product nor version. You probably use OpenRoads Designer ("OpenRoads alignment" tells not much), but what version?
BasisSoft BDN said:How can I set start startion of Alignment in c#?
I am not sure I understand your question right. It is recommended to share code and e.g. simple file as example (or screen capture at least).
Does your question mean that there already is a stationing (so you do not want to create it) and you want to modify it? In such case, using what code you obtain the stationing feature?
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
You need to use the edit SDK classes.
// You can see an example at ComplexAlignmentCreator.cs file on ManagedSDKExample // Search for AddStationing // I assume you already heve your alinment Alignment al = alignment you want to edit // Use AlignmentEdsit class AlignmentEdit editAl = al as AlignmentEdit; // Use AddStationing method editAl.AddStationing(startStation, startDistance, byName); // Don't formet to persit the change
I hope it helps,
Henrique