1 minute read

Troubleshooting Ruby Scripts

Fig. 18-27: Make Faces will heal the surface locations.

In most cases, faces will be generated at all closed perimeters. Begin to select the faces and make sure they are correctly subdivided. None of the faces should extend beyond a surface edge.

Advertisement

Troubleshooting Ruby Scripts

Running these scripts is not always a perfect science. Given the variation and complexity that is part of any AutoCAD file or site plan, you are likely to run into some of the following common problems.

Size Limitations

Running the Close Open Line Segments and Make Faces scripts can take time. The more edges you select, the longer it will take the script to process.

The solution is to select the edges of the site plan in manageable chunks and apply the script selectively area by area. If the system seems to freeze or takes too long, close SketchUp and reload the file. This is why you should save the file after each step.

In most situations, Close Open Line Segments is more limited in application than Make Faces. However, both scripts were able to run successfully on a large 500-acre site plan, although doing so took time.

As a general rule, the smaller an area is (i.e., the fewer its edges) the better the tools will work.

Incomplete Faces

In some instances, in particular with large-area site plans, not all faces will be generated. The first thing to do is to try to reapply the scripts with a fresh file. In many cases, the second time around will heal all the faces.

If the script is rerun a second time and not all the faces are healed, then use the Hunting approach outlined in Method 1 and add edges between the lines until all the faces are complete.

Or, select the edges of the missing area. You do not need to be precise about the selection and can use a selection box. You should insure the edges that compose the missing faces are