[REQ] Centerpoint to Table
-
Once in awhile I get a project to draw that has a lot of holes in it. Locating those holes is tedious work and I wonder if it would be possible, once they are located, to have a plugin record the locations of their centers and their diameters. The thought is that this could be printed in a tabular form with the drawing. This would help to reduce clutter in the drawing by eliminating the need to dimension those hole locations.
I've been working on a SketchUp model of a soon-to-be-released woodworking machine. There are a number of parts that have a large number of holes. I was sent PDF files of the CAD drawings. The holes were called out in a tables on the drawings. I used Didier's Points Cloud plugin to locate the centers and then went in a drew circles at the centerpoints. It was actually quite fast.
My thought about the operation of this plugin is that, when started, it would ask the user to click on the point you want to be (0,0,0). Then the user would be prompted to drag from that point to define the X and Y axes for the table. The plugin would look for all circles and arcs that lie on the X,Y plane, locate the centerpoints, record those in a CSV file which gets saved to the directory of the SKP file. The topper would be to have leader text callouts automatically inserted into the model that identify the origin and the holes.
The table might look something like this:
___X___Y
A 1.625 2.5
B 1.625 3.5
C 1.625 4.5I'm thinking this might be a commercial script if it is possible to create.
-
No, huh?
-
Picture sequence please.
-
Todd, I hope this makes sense.
Activate the script and pick the point you wish to be the origin. In this case the lower left corner of the top face. I didn't quite know how to illustrate it but the next step would be to drag along the two edges for X and Y directions. It would be a bit like dragging for the ellipse plugin or the Tools on Surface rectangle or ellipse. A total of three mouse clicks would be required: origin, anlong X direction and along Y direction.
Script generates guidepoints at the centers of all circles and arcs on the face that lies on plane defined by the X and Y from the previous step. (In the interest of time I didn't put all the points in these screen grabs.
Leader text callouts applied to centerpoints and a CSV (or Space separated?) is generated with callouts and point coordinates.
A 1.1835 3.20931
B 1.3825 3.261931
C 1.5815 3.316931
and so on.The holes on this part were originally genetated from a table similar to this. I created a TXT file and imported it with Didier's Points Cloud plugin. I just want to come up with the reverse. In my example there's no need for a Z value.
CLear as mud?
Advertisement