Sketcher : Ctrl-C/X Ctrl-V to copy/paste/export/import
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Sketcher : Ctrl-C/X Ctrl-V to copy/paste/export/import
Not been able to try, so this may already be enabled.
Is it possible to select geometry and then choose a vertex or point as the copy reference point,
then on paste keep the selected point/vertex under mouse and allow it to snap to
existing geometry
Regards
Is it possible to select geometry and then choose a vertex or point as the copy reference point,
then on paste keep the selected point/vertex under mouse and allow it to snap to
existing geometry
Regards
Re: Sketcher : Ctrl-C/X Ctrl-V to copy/paste/export/import
Currently it just paste the geometry where it was when copied.
As soon as group dragging is solved then I'll upgrade that functionality as discussed in my previous post. This way it will be able to drop the pasted geometries anywhere.
Support me on Patreon: https://www.patreon.com/FreeCadDevDiary
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
Re: Sketcher : Ctrl-C/X Ctrl-V to copy/paste/export/import
Great feature very useful when working with splines or similar shapes that are repetitive to create over and over. If in a future works across sketches it would a huge improve in Sketcher Workbench.
Congratulations for your great features in Sketcher. In my opinion this is one of the parts of FreeCAD that needs more improvements.
Congratulations for your great features in Sketcher. In my opinion this is one of the parts of FreeCAD that needs more improvements.
Re: Sketcher : Ctrl-C/X Ctrl-V to copy/paste/export/import
Should the sketcher be able to accept standard Copy/Paste/... messages with that? Now the only way to know there is something pastable in the clipboard is if you copied it there. No copy/paste icon indication, menu items, ...
Code: Select all
<GeometryList count="4">
<Geometry type="Part::GeomLineSegment">
<GeoExtensions count="1">
<GeoExtension type="Sketcher::SketchGeometryExtension" internalGeometryType="0" geometryModeFlags="00000000000000000000000000000000" geometryLayer="0"/>
</GeoExtensions>
<LineSegment StartX="-35.49" StartY="32.4121" StartZ="0" EndX="-14.1332" EndY="32.4121" EndZ="0"/>
</Geometry>
<Geometry type="Part::GeomLineSegment">
<GeoExtensions count="1">
<GeoExtension type="Sketcher::SketchGeometryExtension" internalGeometryType="0" geometryModeFlags="00000000000000000000000000000000" geometryLayer="0"/>
</GeoExtensions>
<LineSegment StartX="-14.1332" StartY="32.4121" StartZ="0" EndX="-14.1332" EndY="4.8995" EndZ="0"/>
</Geometry>
<Geometry type="Part::GeomLineSegment">
<GeoExtensions count="1">
<GeoExtension type="Sketcher::SketchGeometryExtension" internalGeometryType="0" geometryModeFlags="00000000000000000000000000000000" geometryLayer="0"/>
</GeoExtensions>
<LineSegment StartX="-14.1332" StartY="4.8995" StartZ="0" EndX="-35.49" EndY="4.8995" EndZ="0"/>
</Geometry>
<Geometry type="Part::GeomLineSegment">
<GeoExtensions count="1">
<GeoExtension type="Sketcher::SketchGeometryExtension" internalGeometryType="0" geometryModeFlags="00000000000000000000000000000000" geometryLayer="0"/>
</GeoExtensions>
<LineSegment StartX="-35.49" StartY="4.8995" StartZ="0" EndX="-35.49" EndY="32.4121" EndZ="0"/>
</Geometry>
</GeometryList>
<ConstraintList count="8">
<Constrain Name="" Type="1" Value="0" First="0" FirstPos="2" Second="1" SecondPos="1" Third="-2000" ThirdPos="0" LabelDistance="10" LabelPosition="0" IsDriving="1" IsInVirtualSpace="0" IsActive="1" />
<Constrain Name="" Type="1" Value="0" First="1" FirstPos="2" Second="2" SecondPos="1" Third="-2000" ThirdPos="0" LabelDistance="10" LabelPosition="0" IsDriving="1" IsInVirtualSpace="0" IsActive="1" />
<Constrain Name="" Type="1" Value="0" First="2" FirstPos="2" Second="3" SecondPos="1" Third="-2000" ThirdPos="0" LabelDistance="10" LabelPosition="0" IsDriving="1" IsInVirtualSpace="0" IsActive="1" />
<Constrain Name="" Type="1" Value="0" First="3" FirstPos="2" Second="0" SecondPos="1" Third="-2000" ThirdPos="0" LabelDistance="10" LabelPosition="0" IsDriving="1" IsInVirtualSpace="0" IsActive="1" />
<Constrain Name="" Type="2" Value="0" First="0" FirstPos="0" Second="-2000" SecondPos="0" Third="-2000" ThirdPos="0" LabelDistance="10" LabelPosition="0" IsDriving="1" IsInVirtualSpace="0" IsActive="1" />
<Constrain Name="" Type="2" Value="0" First="2" FirstPos="0" Second="-2000" SecondPos="0" Third="-2000" ThirdPos="0" LabelDistance="10" LabelPosition="0" IsDriving="1" IsInVirtualSpace="0" IsActive="1" />
<Constrain Name="" Type="3" Value="0" First="1" FirstPos="0" Second="-2000" SecondPos="0" Third="-2000" ThirdPos="0" LabelDistance="10" LabelPosition="0" IsDriving="1" IsInVirtualSpace="0" IsActive="1" />
<Constrain Name="" Type="3" Value="0" First="3" FirstPos="0" Second="-2000" SecondPos="0" Third="-2000" ThirdPos="0" LabelDistance="10" LabelPosition="0" IsDriving="1" IsInVirtualSpace="0" IsActive="1" />
</ConstraintList>
Re: Sketcher : Ctrl-C/X Ctrl-V to copy/paste/export/import
It does work accross sketches and accross Freecad instances!toni_lv wrote: ↑Wed Feb 02, 2022 9:40 pm Great feature very useful when working with splines or similar shapes that are repetitive to create over and over. If in a future works across sketches it would a huge improve in Sketcher Workbench.
Congratulations for your great features in Sketcher. In my opinion this is one of the parts of FreeCAD that needs more improvements.
Yes the function will catch all the text that is in the clipboard. But if it does not recognize the correct syntax then nothing happens.
And indeed there is no indicator that there is something pastable in the clipboard. But is that really a problem?
Support me on Patreon: https://www.patreon.com/FreeCadDevDiary
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
FreeCad Dev Diary channel:[/b] https://www.youtube.com/channel/UCGMTmJ ... NiPSSEhBHA
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Sketcher : Ctrl-C/X Ctrl-V to copy/paste/export/import
I see no need for a clipboard indicator, and don't recall any software that has that either
Re: Sketcher : Ctrl-C/X Ctrl-V to copy/paste/export/import
Copy some sketch items (Ctrl-C). While in sketch editing mode Paste icon in toolbar is not active. Close sketch. Open macro editor in FreeCAD. Paste icon activates and text can be pasted with any of the standard methods. Isn't that why those are standardized?
I dont know how this actually works but probably when something is selected that could be copied the clipboard mechanism is informed about that and copy/cut shortcuts are activated. Then when control is entered (3D view, text field, ...) if there is something in the clipboard and it supports pasting it is informed about clipboard content and if pasting is possible paste mechanisms are activated...
At least that is how I understand that mechanism works. Enlighten me if I am wrong.
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Sketcher : Ctrl-C/X Ctrl-V to copy/paste/export/import
I see now, yes it would be better if the paste command becomes active
Re: Sketcher : Ctrl-C/X Ctrl-V to copy/paste/export/import
This is a *VERY* useful feature. What is the status? Could you please link the pull request here?
EDIT: Found the pull request, here it is: https://github.com/FreeCAD/FreeCAD/pull/5480
EDIT: Found the pull request, here it is: https://github.com/FreeCAD/FreeCAD/pull/5480