Ruler in Carbide create


(Nathaniel Klumb) #42

Okay, it needed a little more work thanks to Carbide Create 316’s toolpath groups, and now we’re all good to go. Merging now fully supports toolpath groups.

  • If the main and merge files both support or lack support for toolpath groups, nothing unusual happens.

  • If the main file does support toolpath groups and a merge file does not , any merged toolpaths will be grouped in a new group with the name of the merging file.

  • If the main file does not support toolpath groups and a merge file does , any toolpaths will be merged, but toolpath grouping is lost.

That should about cover merging Carbide Create files. As updates are needed, they’ll be available on github (for my convenience, so I don’t have to keep a bunch of posts in sync), but once more for convenience, here are the Windows utility and the python code.

MergeC2D.zip (20.3 KB) – Homepage and updates on github
MergeC2D.py.zip (2.0 KB) – Homepage and updates on github


(William Adams) #43

Thanks! I’ve updated that a bit — hopefully it will let folks find it and feel comfortable enough to use it.


(Jeff) #44

So unable to leave well enough alone, I’ve taken things one step further…

The rulers are definitely nice. But they don’t help much when I want to measure a dimension that’s not horizontal or vertical.
So I spent the slow day at the office today creating a small app of my own that allows you to measure the distance between any 2 points in a CC drawing.

Step 1:
Use the polyline tool to create a straight line between the 2 points in the diagram where you want to measure the distance.


In this case we’re measuring the point-to-point distance on the main sail. Why? Because every sailor knows that’s important to know… er something like that.

Step 2:
Make sure the polyline is selected, and in the ‘Move’ section select one of the left points of the bounding box. If your line slopes from SW to NE, then select the lower left(SW) corner. If it slopes the opposite direction(NW to SE) then select the NW corner.
If it’s a horizontal or vertical line, pick either. Though in that case just using a ruler would probably be easier.
So based on the example diagram here, we’d select the lower left(SW) point.
CC_measure_test_2
This gives you your starting XY coordinates.

Step 3:
In the same ‘Move’ box select the end point of the bounding box.
This would be the opposite corner of what you selected in step 2.
In my example, we’d select the upper right(NE) point.
CC_measure_test_3
This gives you your ending XY coordinates.

Step 4:
Plug the XY coordinate values into the handy dandy CC_tape_measure tool.
CC_measure_test_output
and voila!
There’s your length measurement. Both in decimal and fractional (rounded to the nearest 64th)
Of course if you’re using metric, just ignore the fractional output.

I cobbled this together in powershell, and am including the source along with the exe. It’s been fully tested! Well at least tested enough to remove my typos and division by zero bugs.
The actual computation part is just a few lines, the rest of the script is all the GUI junk. So if you’re inclined, feel free to re-write in Python, C#, COBOL, or whatever floats your boat.
If you start a multi-million dollar business with it and get a Shark Tank deal, I require a 30% equity stake in your company. :smiley:

CC_tape_measure_v0.3.zip (11.9 KB)


(Jeff) #45

Updated my last post for clarity on the bounding box selection, and also attached a new version that has some error-checking.
Apparently windows doesn’t like division by ‘A’ and stuff like that.
Not that that should be an issue with copy/pasting values, but you know, fat-fingers and stuff. :wink: