Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
h1. General Program Information

...



h2. Basics - Box

...



*box* - A function that takes in the inputs of two points to create a 3D rectangular object. These points serve to specify the length, width, and height of the object. This is found at the end of a line of AutoCAD code.

...


box(p1,p2) :=

...


* concat("_box",sp,point(p1{^}<0>{^}),sp,point(p2{^}<0>{^}))

...



*boxA* - A function that takes in the inputs of two points to create a 3D rectangular object. These points serve to specify the length, width, and height of the object.This is found at the beginning or middle of a line of AutoCAD code.

...


boxA(p1,p2) :=

...


* concat("_box",sp,point(p1{^}<0>{^}),sp,point(p2{^}<0>{^}),sp)

...

Example

p1 =

  • x = 1
  • y = 1
  • z = 1

p2 =

  • x = 3
  • y = 3
  • z = 3


*Example*

p1 =
* x = 1
* y = 1
* z = 1

p2 =
* x = 3
* y = 3
* z = 3

box(p1,p2) = _box 1,1,1 3,3,3,

{float:left|border=2px solid black}
!box1.bmp!
{float}