Corridor creation in .net API

Corridor creation in .net API

Dannyisrael
Enthusiast Enthusiast
1,081 Views
4 Replies
Message 1 of 5

Corridor creation in .net API

Dannyisrael
Enthusiast
Enthusiast

 

I have a big project that I'm setting the target through the API

I need to set the property “use target on the same side as subassembly”

To off .

I was expecting to find this property in the SubassemblyTargetInfo object

is there another place that I can change this property or change the default off the property

danny_2-1676819785409.png

Dim myBaselineRegion As BaselineRegion

                myBaselineRegion = myBaseline.BaselineRegions.Add(BaseLineName, AssemblyName.AssemblyId, StartStation, EndStation)

                Dim myTargets As SubassemblyTargetInfoCollection = myBaselineRegion.GetTargets()

                myBaselineRegion.AppliedAssemblySetting.MODAlongCurves = 0.05

                myBaselineRegion.AppliedAssemblySetting.CorridorAlongCurvesOption = Autodesk.Civil.CorridorAlongCurveOption.CurveBoth

                myBaselineRegion.AppliedAssemblySetting.MODAlongTargetCurves = 0.02

                myBaselineRegion.AppliedAssemblySetting.FrequencyAlongCurves = 20

                myBaselineRegion.AppliedAssemblySetting.FrequencyAlongTangents = 20

                myBaselineRegion.AppliedAssemblySetting.FrequencyAlongSpirals = 20

                myBaselineRegion.AppliedAssemblySetting.AppliedAdjacentToOffsetTargetStartEnd = True

                myBaselineRegion.AppliedAssemblySetting.AppliedAtOffsetTargetGeometryPoints = True

                Dim t = AssemblyName.TargetIndex(myTargets)

                For Each b In AssemblyName.TargetsNameToIndex

                    If t.ContainsKey(b.Key) Then

                        Try

                            myTargets.Item(t.Item(b.Key)).TargetIds = Perent.GetBaselineTarget(ts, myAlignment.Name, Nothing, StartJunction, EndJunction, 0, b.Value)

I wanted to change this property here after I assign the target

                        Catch ex As System.Exception

                        End Try

                    End If

                Next

                myBaselineRegion.SetTargets(myTargets)

 

 

 

 

 

0 Likes
1,082 Views
4 Replies
Replies (4)
Message 2 of 5

Jeff_M
Consultant
Consultant

If that property is available, I've sure not been able to find it. So I've concluded that they did not expose it.

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 3 of 5

Dannyisrael
Enthusiast
Enthusiast
Is there a way to change the default behavior in civil 3D or in the API
0 Likes
Message 4 of 5

Jeff_M
Consultant
Consultant

Not that I know of, sorry.

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 5 of 5

Dannyisrael
Enthusiast
Enthusiast

Thank you 

 

0 Likes