AutoCAD CleanUp ruby Scripts

Method 2 centers on four custom Ruby Scripts collectively known as CAD Clean-Up Scripts. These four scripts allow you to fix almost all the distortions in an imported AutoCAD base and then generate all the surface area faces with a simple click of the mouse. A fifth Ruby Script is useful when you are problem-solving specific situations that arise with stubborn linework.

With almost any site plan, the process is the same. Although there are some limitations and problems that go along with this method, the results yield a Flatwork Base with minimal effort.

All the scripts are available at www.smustard.com (Fig. 18-19). These exceptional scripts were created by Todd Burch, and it cannot be overstated how useful they are.

Fig. 18-16: Delete the edges at the line intersection and then redraft the lines. This ensures that the edges are connected efficiently.

Siotustfl rci.com.™

the Companion to SketchUo™

E ™ :a

Ssarcfi for a script

Home Scripts Shapes Store Afcout Btog FAQ Contact

Home Scripts Shapes Store Afcout Btog FAQ Contact

WtlconU to Smustard corn™ - the Companion to SketchUp™ i

Smustard is dedicated to providing SketchUp users with the tools and plugins they need to increase productivity and facilitate workflow Smustard plugins are toby scripts that add command features to simplify repetitive or ditttc ul[ mode ling man a yement tasks - just asik the thousands of users in over GO countries across all 6 continents I

you can browse the plugins tr/name. or if you know what ruby script you want, you can use the search funcbon at the lop of the page

Please visit our Thanks for visiting I

Unslype; for DashedLines Plugin

2008-07-01 - Script Updates - July 2008

Everything Smustard ■ Ssw 10%

A" stories

Fig. 18-19: The Ruby Scripts are available at www.smustard.com.

With the exception of Make Faces, all the scripts cost between $10 and $20 (USD). They are worth the investment and have been tested to work with SketchUp 7. Once they are installed into SketchUp, most of the scripts are located under the Plugins pulldown menu (Fig. 18-20). The Make Faces script is located under the Tools pull-down menu (Fig. 18-21).

If you really want to work with AutoCAD files, these scripts are a must. The design professions are driven by contract and billable hours. Most site plans and other drawings are drafted in AutoCAD as part of widely accepted design process. Using this method and scripts allows you to quickly create site plans and building models. In some cases, the creation of a Flatwork Base can be done in minutes.

The basic premise of using these scripts is to select all the edges of the imported AutoCAD file and apply the scripts in order. Extend Close Lines This script will extend lines to connect to the adjacent

Fls view carrrera Dra# Tocfc wridow . Fiur^is Help

EstEna aose unes

Fig. 18-20: The CAD Cleanup Ruby Scripts are located in the Plugin pull-down menu.

He Edt View Cairwra Draw Tocfc wndow Pü^is Hefc

Rant Bucket B

Move Kotate Sc*

S

FUStVPU FotowMe Offwt

O

T^jeMeascre PrOtrsctW

AMK

T

Qrri(nacrts T-ext 3D Text

D

Secckn Plane

Goor^e Earth *

✓ lnterart

Fig. 18-21: The Make Faces Ruby Script is located under the Tools menu.

and intended edge. This solves the problems with gaps between edges in imported AutoCAD lines.

Delete Short Lines This script will delete all overlapping and minuscule edges that prevent faces from being healed. The script helps remove the overlaps found in imported Auto-

Close Open Line Segments This script helps generate an edge between two points where a gap is present. Although similar to Extend Close Lines, it is different. Extend Close Lines only extends a single edge (makes it longer).

Make Faces This script will generate faces from the selected linework. Instead of using the line tool to heal faces, selecting the entire base and running this script will heal faces for an entire site plan.

Intersect Overlapping Lines This is the supplemental fifth script. This ruby will sift through all the selected edges and convert any overlapping edges or intersections into endpoints.

The following procedure outlines the process for using combined scripts on the imported AutoCAD edges. Sometimes the scripts run differently on different computer systems. Due to these inconsistencies, make sure you save your work after each step.

1. Select all the edges. From the Plugins menu, select Extend Close Lines. A dialogue window will appear indicating how many edges were extended by the script. Save the file

Fig. 18-22: Select the all the linework of the exploded flatwork edges. From the Plugins menu, select Extend Closed Lines.

CAD lines.

+1 -1

Average user rating: 3 stars out of 2 votes

Post a comment

  • Receive news updates via email from this site