Grip edits not working

Introduced quite a while back for polylines and a while back for hatch, these allow you to add, edit and stretch existing lines by editing the blue square grips.

Gripedit01

However sometimes on polylines the edit menu for removing does not appear. This is usually due to two overlapping grips being present in the same space.

Gripedit02

To solve this problem, move the grip between the two points that don’t work to reveal the hidden overlapping grips. Now you should be able edit the grips again.

Gripedit03

Hollow Dimensions

My colleague asks me today, “why are my dimensions hollow and not filled?” I thought, maybe FILLMODE is not set. But that was OK.

It turns out that this can be caused by non-flat or “elevated” drawings. I.e. 2D drawings that extend into 3D space. Usually caused by UCS not being rotated properly and it being skewed into 3D space.

The solution is to change the UCS in the modelspace or paperspace viewport so it is flat and things should be back to normal!

Macros – Basics

In order to create custom commands and then assign them to a button in AutoCAD you will need to create a MACRO. This is so for all buttons, even those that call a LISP or OBJECTARX piece of code.

The MACRO is basically a list of the inputs on the command line listed out in one line.

A simple MACRO would look like this:

^C^Cplot;

This if turned placed in a button would bring up the plot dialog box.

The ^C^C is the code for pressing “escape” twice. This clears any active commands in case one is running.

The ; is the representation of enter. Any number of commands can be strung together into one MACRO.

MACROs also allow for input for selecting objects and this is written with a space and then a backslash.

I will be running through several of my custom commands to show how they are put together.