I think there is a Solution like this Code:
Dim oTg = ThisApplication.TransientGeometry
Dim doc As DrawingDocument = ThisDoc.Document
Dim sheet As Sheet = doc.ActiveSheet
Dim dimension = ThisApplication.CommandManager.Pick(
SelectionFilterEnum.kDrawingDimensionFilter,
"Select a VERICAL dimension")
Dim rows As FeatureControlFrameRows = sheet.FeatureControlFrames.CreateFeatureControlFrameRows()
rows.Add(GeometricCharacteristicEnum.kPosition, "Ø0.015", "", "A",)
Dim pointCollection = ThisApplication.TransientObjects.CreateObjectCollection()
Dim textPoint = dimension.Text.Origin
' move the FeatureControlFrame away from the text.
Dim position As Point2d = oTg.CreatePoint2d(
textPoint.X + 1.0,
textPoint.Y +4.0)
pointCollection.Add(position)
' Add the Next 2 lines if you want a leader
'Dim intent = sheet.CreateGeometryIntent(dimension, dimension.DimensionLine.MidPoint)
Dim intent = sheet.CreateGeometryIntent(dimension, dimension.DimensionLine.StartPoint)
'Dim intent = sheet.CreateGeometryIntent(dimension, dimension.DimensionLine.EndPoint)
pointCollection.Add(intent)
Dim fcf = sheet.FeatureControlFrames.Add(pointCollection, rows)
fcf.Rotation = (Math.PI / 180) * 90
But here I create a FeatureControlFrames. And set it to an end point or a start point.
And now I need a Pick Selection to select two lines and intent them together.
Any idea?