GRD

This routine includes 3 commands:

  • GRD
    Summary the angle of selected line or polyline including such subentities inside a block in 3 formats: fraction, percentage, and degree.

  • CSE
    Rotate UCS to selected subentity.

  • CS1
    Rotate UCS 90 degree.

INTRODUCTION

Command: GRD

It is useful when you need check the roof pitch, the floor fall, ramp gradient, etc in a section drawing, and need convert it in different formats.

Select a line:
The gradient of the line is 1/1.9, 52.4%, 27.65 degree.

If selected object is a vertical line, it prompts:

It is a vertical line.

If the gradient is greater than 10000/1, but not exactly a vertical line, it prompts:

It is almost a vertical line.

If selected object is a horizontal line, it prompts:

It is a horizontal line.

If the gradient is greater than 1/10000, but not exactly a horizontal line, it prompts:

It is almost a horizontal line.

Command: CSE

Align ucs to selected line, including polyline segment and line/polyline in a block or xref.

Command: CS1

Rotate UCS around Z axis 90 degree.

NOTES

  • Only line, polyline, or such subentities inside a block are valid for selection.

  • Otherwise it prompts:

  • Selected object is not a line or polyline.

  • If select segment in the polyline is an arc, it prompts:

  • Selected segment is not a line.

DISCUSSIONS

UPDATES

16 May 2013 Fixed a bug when inquiring gradient of a sub-entity in polyline or block.
Add new command CSE to align ucs to selected line (including polyline segment and line/polyline in a block or xref).
Add new command CS1 to rotate UCS around Z axis 90 degree.
07 Jun 2011 Able to find out gradient of polyline segment and subentity inside a block.
07 Apr 2010 First issue