Skip to main content

hd

The hd macro adds a horizontal dimension to your pattern.

It is provided by plugin-annotations, which is part of core-plugins (so it is available by default).

Signature

macro('hd', {
String id = 'hd',
Point from,
Boolean noEndMarker,
Boolean noStartMarker,
String text,
Point to,
Number y,
Boolean force = false,
})

Example

10cm

An example of a horizontal dimension with the hd macro

Configuration

PropertyDefaultTypeDescription
fromPointThe startpoint of the dimension
toPointThe endpoint of the dimension
yNumberThe Y-value at which to draw the dimension
idhdstringThe ID of this macro instance
textHorizontal distanceNumberThe text to go on the dimension if not the from-to horizontal distance
noStartMarkerfalseBooleanWhether to not draw a start marker
noEndMarkerfalseBooleanWhether to not draw an end marker
forcefalsebooleanSet this to true to display the macro output even when paperless is false

Notes

This macro takes the paperless setting into account and won't output anything when both paperless and force are false.