Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.26 KB

File metadata and controls

51 lines (41 loc) · 1.26 KB

SetDimText

Description

Procedure SetDimText will set the dimension text of the referenced dimension to the specified value.

The maximum length for dimension text is 60 characters. The first 30 characters of the specified dimension text string will be displayed in the primary dimension string; the remaining characters will be displayed in the secondary dimension string, if it exists.

PROCEDURE SetDimText(
				h             : HANDLE;
				leaderTrailer : STRING);
def vs.SetDimText(h, leaderTrailer):
    return None

Parameters

Name Type Description
h HANDLE Handle to a dimension object.
leaderTrailer STRING Dimension text string.

Examples

VectorScript

SetDimText(dimHandle,'Length varies');

Python

end else if ((temp1_r > 0) & (smallDims = 'draw in red')) then BEGIN
	GetPrimaryUnitInfo(unitStyle, displayPrec, dimPrec, format, angPrec, showUnitMark, dispFrac);
	DimIt (win_pts[temp1_i], win_pts[temp1_i+1], hor_ver);
	SetPenFore(lnewobj, 65535, 0, 0);
	SetDimText(lnewobj, num2str(dimPrec, temp1_r));
END;
vs.SetDimText(h, leaderTrailer)

Version

Availability: from MiniCAD4.0

Category