How to change dimension's text
Posted: 01 Apr 2016, 07:58
HI.
I try to change dimension's text with this code.
procedure test;
var
dim: TsgDXFDimension;
begin
..
dim := Cad.CurrentLayout.FindEntbyHandle(DimHandle) as TsgDXFDimension;
dim.Textoverride := 'aaaa';
CadImg.Converter.Loads(dim);
Draw;
end;
But I can't change it. So I do change text value in the dimension's ceText(or ceMText) entity in it's block. so i can change it. but dimension's text entity's position has problem(not apply TextOffset).
And I try to change TextOffset, TextPosVert...etc.. but there are not change too.
How to change textoverride value...
I try to change dimension's text with this code.
procedure test;
var
dim: TsgDXFDimension;
begin
..
dim := Cad.CurrentLayout.FindEntbyHandle(DimHandle) as TsgDXFDimension;
dim.Textoverride := 'aaaa';
CadImg.Converter.Loads(dim);
Draw;
end;
But I can't change it. So I do change text value in the dimension's ceText(or ceMText) entity in it's block. so i can change it. but dimension's text entity's position has problem(not apply TextOffset).
And I try to change TextOffset, TextPosVert...etc.. but there are not change too.
How to change textoverride value...