News:

New TurboCAD Mac 2D/3D Training Essentials

Main Menu

Breaking a line into segments

Started by hschneider, March 31, 2014, 10:06:58 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

hschneider

If I have e.g. a line of 100 mm, is there a way to delete a segment of 2 mm from the middle of the line ?


macbouw

Segment to curve is your best option.

hschneider

I see ... but using segment_to_curve is not very comfortable - for my purposes.

I need this to add bridges to parts which are CNC milled later on.

So the easiest workflow I found is to export things to a DXF file, adding the line breaks in Adobe Illustrator where this is just 2 clicks with the scissor tool.

Would be nice to see this in a future version of TurboCad ...

tdFTZ

When I need to add breaks to keep parts on the tree, I add one line over the other, to the point where I want the break. Then select the other line, change the distance of it to be what you want it to be, and move it, if needed, back to the other end where it was attached. 

A 3 inch line..  anchored at points A and B.

Click on the line. Change it's length to 1.45 in.

Draw a new line from the end point that is now exposed by clicking there as the start point, drag the cursor in the desired direction, hit tab and manually type in 1.45 for the length.

Now you've got a break.

If you want to make the line direction the same, then start at the end of the previous line, and draw in the same distance, enter 1.45 and then move the line to snap to where the original end point was. You'll have the same break in it.

Some GCode generation algorithms work off the direction of the line, others work off the shape metrics. So sometimes line direction drawn helps to be consistent.

jolbas

You could create a 2 mm circle. Move it around to where you want the gaps. Snap center to midpoint in your example above. Change to trim tool and click on line inside circle. Change to select tool and move circle to location for next gap.

If you assign keyboard shortcuts to these two tools, the method will be quite fast.

macbouw

I also frequently use the construction lines which is a verry good feature. You can also offset the construction lines. And learn the shortcuts and make shortcuts yourselve it saves a massive amount of time. If its something repetitive you can also make a apple script but that is a little more challenging.

hschneider

@tdFTZ:
Nice workaround - thanks !

@jolbas:
This sounds like a quicker way, but: When I select the line inside the circle with the trim tool, then the complete line (in and outside the circle) disappears. I tried different object types etc. but no way. Any hints what I do wrong?

hschneider

When I draw a new line, trimming with a circle works.
But it does not on lines which were generated from solids.
Both objects are identified as 'lines' in the inspector .... maybe some sort of bug ..

jolbas

Maybe the line and circle is not in the same plane. Try with a sphere instead of a circle. Then it works i three dimensions.

hschneider

No way ...

I have created the line objects from solids by choosing "Change Object Type", then "Curve", in order to get a flat 2D structure.
The Inspector tells that it is a line, but it behaves different.
Trimming pops up a dialog which says "Trimming will delete the entire object. Proceed ?" ...

jolbas

It works for me when i create a simple solid box and change the object type to curve. Do you have a sample file which have this problem to share?

hschneider

See file attached.


Thank you very much,
Harald

jolbas

Looks like the circle is not in plane with line. Press F to see the drawing in isometric view. Then you see.

What you should do is: With the select tool grab the circle in its center point and make it snap to line. Check the snap setting window.

Björn

hschneider