How to get dimension text?
Posted: 25 Mar 2016, 12:46
I can't find how to do it.....
How can i get TsgDxfDimension's text? I don't want textoverride value.
How can i get TsgDxfDimension's text? I don't want textoverride value.
CADSoftTools - AutoCAD DWG DXF HPGL (PLT) SVG CGM STEP IGES STL SAT viewers, converters and developer tools. Delphi and C# source code.
https://cadsofttools.com/forum/
Code: Select all
function GetDimensionText(ADimension: TsgDXFDimension): string;
var
I: Integer;
begin
Result := '';
for I := 0 to ADimension.Block.Count - 1 do
if ADimension.Block.Entities[I].EntType = ceMText then
Result := TsgDXFMText(ADimension.Block.Entities[I]).Text;
end;