Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
after placing ordinate dimensions I would like to move the dimension text a bit upwards, I tried by specifying new coordinates of their jogpoints, and the text origin but it does not do anything,
This is what I have:
For i:= 1 to sktch.SketchLines.Count do Begin sktL1:= sktch.SketchLines.Item[i]; oGIntent := oSheet.CreateGeometryIntent( sktL1,kStartPointIntent); oPt:= sktL1.Geometry.StartPoint; oPt := oDV.DrawingViewToSheetSpace(oPt); oPt.X := oPt.X+0.5; oPt.Y := oPt.Y+1; OrdDim := oSheet.DrawingDimensions.OrdinateDimensions.Add(oGIntent,oPt,kHorizontalDimensionType,emptyparam,emptyparam); OrdDim.JogPointOne.X := oPt.X+0.5; OrdDim.JogPointOne.Y := oPt.Y+0.5; OrdDim.JogPointTwo.X := oPt.X+1; OrdDim.JogPointTwo.Y := oPt.Y+0.5; dimStr := OrdDim.Text.FormattedText; OrdDim.Text.FormattedText := 'RL ' +DimStr ; End;
there is no error message, and the code finishes successfully, but the dimension texts remain in the same place.
any Ideas why?
I read back the coordinates of the jogpoints before and after changing their coordinates and they do not change, as if they were read only. any suggestion?
Regards,
Mario.
Solved! Go to Solution.