Operate on subobject in polyline (individual wire segments in joined wire)

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
Hologram
Posts: 203
Joined: Thu Nov 03, 2022 3:05 pm

Operate on subobject in polyline (individual wire segments in joined wire)

Post by Hologram »

In Rhino or Autocad, I often use subobject selection to move a portion of a polyline (joined wire). I also remove parts of a polyline thorugh subobject selection, so I can chamfer them with a zero distance (to make both line ends intersect). How does one do these things in FreeCAD?

1. For instance, if you want to move a line segment (not the entire line) how do you do that?
The stretch command doesn't seem to be working on wire objects (imported DXF, then upgraded the edges to wires).
And edit mode of curves only allows you to edit the individual vertices, or am I missing something there?

2. I am also struggling to delete intermediate segments of a line.

Just a demonstration of some typical use cases I have, which I would like to do in the draft workbench, if that's possible.
Delete subobject.gif
Delete subobject.gif (634.25 KiB) Viewed 337 times

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.31391 (Git)
Build type: Release
Branch: master
Hash: 0ab2608a429f3a5ee9a63da9b66d13557655d7e4
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * BIM 2021.12.0
  * Launcher
  * persistenttoolbars
  * SelectorToolbar
User avatar
Roy_043
Veteran
Posts: 8544
Joined: Thu Dec 27, 2018 12:28 pm

Re: Operate on subobject in polyline (individual wire segments in joined wire)

Post by Roy_043 »

Some Draft commands have a subelement mode. See f.e. Draft_Move. Draft_Wires can be 'partially' stretched with Draft_Stretch.
User avatar
onekk
Veteran
Posts: 6205
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Operate on subobject in polyline (individual wire segments in joined wire)

Post by onekk »

Hologram wrote: Mon Feb 06, 2023 9:34 pm ...
2. I am also struggling to delete intermediate segments of a line.
...

But a "line" or better a segment have no "intermediate segments".

Terminology is the base of geometry.

In FreeCAD usually it is called a wire in most WB,some Wb have even a similar concept called "polyline" that is usually wrong as in FreeCAD segments could be even portions of curves in the "common sense" of curves, as there is Curve property that is a "specific thing".

on what WB you want to remove segments from a polyline or a wire?

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
Hologram
Posts: 203
Joined: Thu Nov 03, 2022 3:05 pm

Re: Operate on subobject in polyline (individual wire segments in joined wire)

Post by Hologram »

It's for the Draft workbench @onekk. I'm trying to find out whether I can move a portion of my workflow to the draft workbench.
User avatar
onekk
Veteran
Posts: 6205
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Operate on subobject in polyline (individual wire segments in joined wire)

Post by onekk »

Hologram wrote: Tue Feb 07, 2023 9:17 am It's for the Draft workbench @onekk. I'm trying to find out whether I can move a portion of my workflow to the draft workbench.
Probably draft use wires, so edges could be extracted and moved, it is not difficult to do using python, there is Edges property that is a list and a list could be manipulated, (sometimes you could not really manipulate it but you have to copy, modify and reassign to the property, but it is an implementation detail).

edges could be moved and translated where you want, as they are "Geometrical objects", but you have to know something about how Topology an Geometry is implemented in FreeCAD, if you want:

Topology and Geometry Primer
https://forum.freecadweb.org/viewtopic. ... 89#p500989

Topology Geometry and so on by @Chris_G:

https://forum.freecadweb.org/viewtopic. ... 93#p500989
https://forum.freecadweb.org/viewtopic. ... 12#p345612

Outside and Inside for Offset of "open wires"
https://forum.freecadweb.org/viewtopic. ... 69#p628069

Consideration about 2D to 3D objects
https://forum.freecadweb.org/viewtopic. ... 11#p463511

Angles discussion about the 24 types of Cardan angles and similar
https://forum.freecadweb.org/viewtopic. ... 5&start=20

Zolko explanation (author of Assembly4)
https://forum.freecadweb.org/viewtopic. ... 14#p607514

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
Post Reply