TheSwamp
Code Red => VB(A) => Topic started by: Humbertogo on April 06, 2006, 12:22:46 PM
-
I'm working with an automate dimensioning a Single Point's Location
i need some help to AcadDimAligned spacing
I add some AcadDimAligned an need to have the same spacing of .475 inch
Any help would be greatfully appreciated.
-
I'm working with an automate dimensioning a Single Point's Location
i need some help to AcadDimAligned spacing
I add some AcadDimAligned an need to have the same spacing of .475 inch
Any help would be greatfully appreciated.
I'm still confused, can you show me a picture of the desired result???
-
Sorry but how can i add a picture..?
-
One way is to alt+printscreen the cad drawing when it is set up as you like. Then open paint , word or your graphics programme of choice. Save that image somewhere (Jpg is better but bmp is fine.) then when you post, click additional options and browse to your file
-
Here the Print screen
-
Set DIMDLI to 0.475 or in the dimstyle dialog box
(http://www.theswamp.org/screens/cadaver/dimdli.gif)
Then enter DIMALIGNED for the first dim. For subsequent dims use DIMBASELINE. DIMBASELINE will continue to place offset aligned dims until hitting ENTER.
(http://www.theswamp.org/screens/cadaver/DIMDLI2.gif)
-
is this working when you create dimensions using vb..?
-
Humbertogo, you need to calculate that point. The example below uses polarpoint.
Sub dbase()
Dim DAl As AcadDimAligned
Dim Zero(2) As Double
Dim Pt(2) As Double
Dim Tp(2) As Double
Dim PolarPt
Dim Offset As Double
Dim i As Integer
Dim dAng As Double
Dim util As AcadUtility
Set util = ThisDrawing.Utility
Offset = 0.45
For i = 1 To 5
Pt(0) = i: Pt(1) = i
dAng = util.AngleFromXAxis(Zero, Pt)
Tp(0) = Pt(0) * 0.5: Tp(1) = Pt(1) * 0.5
PolarPt = util.PolarPoint(Tp, dAng + PI * 0.5, Offset)
Set DAl = ThisDrawing.ModelSpace.AddDimAligned(Zero, Pt, PolarPt)
Offset = Offset + 0.45
Next
End Sub
You are still going to have to work out when you add the 90 deg or subtract it depending on the angle
-
Thanks Bryco this exact what i need