Finding Sketch Lines
 

VBA re-written with help from Rajiv Agrawal

On the Pro/DESKTOP CD there are many included VB applications that are not really documented. This tutorial will explore the use of a find sketch lines visual basics add-on. The add-on is ideal for finding and removing small lines or overlapping lines.

1. Download the sketch.zip file (right click chose Save as) and save it

2. Unzip the files to Program Files\PTC\ProDESKTOP 2000i2\Program\AddIns\Macros. Anything placed in this folder will be available at start up. There will be three files in the zip:

  • sketchchecker.bas
  • sketchchecker.frm
  • sketchchecker.frx

*Note that the sketchchecker files found on this website have are modified versions of what is shipped on the Pro/D CD. The original sketchchecker did not work as advertised. It has been fixed.

2. Run Pro/DESKTOP

 

 
3. Click Tools>Macro>Visual Basic Editor

4. In the VB Editor you need to import the .bas and .frm files

  • File>Import> Then browse out and select sketchchecker.bas
  • File>Import> Then browse out and select sketchchecker.frm
  • In the VB object browser, Sketchchecker.bas will be placed under modules and sketchecker.frm will be under forms

5. In the VB Editor click File>Close & Return to Pro/Desktop

6. In Pro/DESKTOP, start a new design and sketch some lines on the initial sketch.

7. Select all of the lines using the line select tool.

8. Now run the macro by Select Tools>Macros

9. Make sure you are looking for Macros in ProDESKTOP6, then select the mdSketchChecker.

10. RUN

 

The macro will first tell you how many lines are highlighted. Click okay.

You will then be confronted by a menu system that will allow you to step through the lines and delete the ones you don't want/need.

  • Next: Go to the next line
  • Delete Line: Deletes the line that is currently highlighted
  • Highlight Line & Exit: Leave the current highlighted and exit the macro
  • Exit: Unhighlight all lines and exit the macro

 

 

 

 
Tutorial By Steve Schweitzer, Copyright 2001