Corridor creation in .net API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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)