How to split a line in Sketch

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
leoheck
Veteran
Posts: 1225
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

How to split a line in Sketch

Post by leoheck »

Is there any tool to split a line in 2 considering a point on it?

I often need to cut a line in two keeping the same length, and making one of the pieces a construction line for example.
chrisb
Veteran
Posts: 54273
Joined: Tue Mar 17, 2015 9:14 am

Re: How to split a line in Sketch

Post by chrisb »

There is no possibility I know of. Can you show us a (complete) use case?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
mario52
Veteran
Posts: 4696
Joined: Wed May 16, 2012 2:13 pm

Re: How to split a line in Sketch

Post by mario52 »

hi
maybe possible with macro(s)

try : (instal it with AddonManager)

Macro_WorkFeatures

(command line:
Macro_Cut_Line
Macro_Cut_Circle )

Macro_Dxf_To_Shape

Macro_FC_Convert_Lines

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
leoheck
Veteran
Posts: 1225
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: How to split a line in Sketch

Post by leoheck »

The add-on manager shows 2 things

1. workfeatures
2. workfeatures-macros

Which one you are referring to here?
I just installed the #2 but I was not able to find its buttons/workbench anything. I am using Freecad 0.19
mario52
Veteran
Posts: 4696
Joined: Wed May 16, 2012 2:13 pm

Re: How to split a line in Sketch

Post by mario52 »

hi

2. workfeatures-macros (see here for use MACRO:Work Feature 2014_12

but the points created , ere created in 3Dview and not in the sketcher (and this for the 5 macros displayed)

(workfeatures is a workbench (same workfeatures-macros but not completely complete)

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
leoheck
Veteran
Posts: 1225
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: How to split a line in Sketch

Post by leoheck »

crisb, I am thinking that this kind of tool in Sketch is a good tool to have.

Suppose you have a line and a point (or another line with a fixed point constraint on it). Now you plan to split this line into 2 parts, keeping the external constraints intact.

This would be like the "trim an edge" but instead of trimming it out just adding another segment there with the same length as the trimmed part.
User avatar
Vincent B
Veteran
Posts: 4739
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: How to split a line in Sketch

Post by Vincent B »

leoheck wrote: Tue Dec 10, 2019 12:48 pm Is there any tool to split a line in 2 considering a point on it?

I often need to cut a line in two keeping the same length, and making one of the pieces a construction line for example.
SplitCurve (curveWB) can do with a % parameter .
SplitOjbect (PartWb) as well but need either a vertex, point or another line.
Post Reply