Hi,
I add idea to add start/end target from profiles to corridor section.
Vertical Target - Adjacent to offset target start/end - Autodesk Community
So I’m waiting but I would like to create script like this:
take starts/ends of profiles from alignment from corridor and add section and section+1m
But I have problem with regions…
In Civil3dToolkit there is no staffs like
CorridorExtensions.AddStationToCorridor ,
CorridorExtensions.AddStationToBaseline , or
CorridorExtensions.AddStationToRegion Corridor frequencies - Civil 3D - Dynamo
How can I change my script?
korytarz dodaj przekroje.dyn (27.8 KB)
Hi @kidznok,
It seems like you’re on the right track with the nodes BaselineRegion.AddSection
or Baseline.AddSection
. What exactly isn’t working?
Station is out of the region.
These method BaselineRegion.AddSection need add region ?
I can’t say for sure without seeing your actual data, but my guess is that when you add 1m to the profile end station, it may be outside the station range of the baseline.
1 Like
Hi, thank U. U’re right.
But even when I delete this part with adding 1m I have error
In corridor I have one region on whole alignment.
Maybe in script I should check start/end of region (regions?) then delete stations out of these scope and then add sections?
I havn’t looked at your problem closely but I think I’ve run into the same problem before and in my case it was because of a tiny difference in precision:
When there’s an alignment with curves and a profile that stretches over the whole alignment, the value for the alignment end station is calculated with a different precision than the value for the profile end station. The profile end station is usually one digit longer, therefore you can’t hook “Profile.EndStation” into “Baseline.AddRegion” without getting the error that the end station is not in the range of the baseline.
Here’s the thread.