XLine
Function Syntax | XX / XH / XV / XA |
Current Version | 1.0 |
Download | XLineV1-0.lsp |
View HTML Version | XLineV1-0.html |
Donate |
Program Description
This program defines several custom commands to enable the user to quickly create XLINE objects with predetermined properties on a predetermined layer.
By default, the program defines 4 custom commands (XX, XH, XV, & XA) which will allow the user to create a 2-point xline, horizontal xline, vertical xline, or an xline at a predetermined angle respectively; however, additional custom commands may be easily defined to suit user requirements.
All xlines created by the program will be automatically assigned to a predetermined layer whose properties are specified at the top of the program source code - such layer is automatically created if not present in the active drawing.
XLine Options
Upon issuing any of the custom commands defined by the program, the user may additionally access any other option offered by the program - these options are described in more detail below:
Point
This option will prompt the user for two points and will construct an xline passing through the two points.
Horizontal
This option will prompt the user for a point and will construct a horizontal xline passing through the point.
Vertical
This option will prompt the user for a point and will construct a vertical xline passing through the point.
Angle
This option will prompt the user to specify an angle and point and will construct an xline at the given angle, passing through the given point.
Exit
This option exits the program, else the user will be continuously prompted as above depending on the active option.
Instructions for Running
Please refer to How to Run an AutoLISP Program.