@JonnyPot
To fix the position of Dimensions in a drawing, you can use Point2D object, which works something like this.
See below code, for an example only, it wont be applicable in your drawing you need to tweak the code to suit your requirement.
Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
Dim oSheet As Sheet = oDoc.ActiveSheet
Dim oView As DrawingView = oSheet.DrawingViews.Item(1)
Dim oPartDoc As PartDocument = ActiveSheet.View("VIEW1").ModelDocument
Dim oTG As TransientGeometry = ThisApplication.TransientGeometry
'===This is where we are defining an arbitrary position as X and Y Cordinates, in cm. and the origin point is from bottom left corner of the sheet (i.e. 0,0)
Dim oPt As Point2d = oTG.CreatePoint2d(40, 55)
'========= Now we will use oPt to define the position of the dimension when we give linear dimension... ===================
Dim oLD as LinearGeneralDimension = oSheet.DrawingDimensions.GeneralDimensions.Add(oPt, GemometryIntent1, GeometryIntent2)
'You can also tweak the values in oPt where currently 40 & 55 are give, you can set an equation as well based on your view size and sheet size.
'In above line of code for dimension, make sure you first define your geometry intent to create a dimension
oLD.CenterText '= this line will always keep the dimension text in center.
I hope this has answered your question. In case you need further clarification, please reply to this thread.
Please also, accept this as solution, if this has answered your question.
Regards,
Dutt Thakar
If this answer has solved your problem please ACCEPT SOLUTION and hit like if you found it helpful..!
Regards,
Dutt Thakar
LinkedIn