Feature: offset tool in sketcher
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Feature: offset tool in sketcher
I test the scipt and works fine, good work!
Some easi feature: Mantain offset mode with ruberband to make multiple offsets until clik right mouse key to leave offset mode.
Some easi feature: Mantain offset mode with ruberband to make multiple offsets until clik right mouse key to leave offset mode.
-
- Posts: 6
- Joined: Tue Aug 11, 2020 5:34 am
Re: Feature: offset tool in sketcher
I'm running into a few issues while trying to use the 3.0 version of the macro.
and
OS: Debian GNU/Linux 10 (buster)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.
Build type: Release
Python version: 2.7.16rc1
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Code: Select all
Traceback (most recent call last):
File "/home/test/Downloads/OffsetInSketcher03.FCMacro", line 418, in <module>
ex = OffsetDialog()
File "/home/test/Downloads/OffsetInSketcher03.FCMacro", line 19, in __init__
self.SelGeoId = self.getElements() # init the command
File "/home/test/Downloads/OffsetInSketcher03.FCMacro", line 66, in getElements
point = Sketch.getSketchPoint(SelGeoId[0]) # start of rubber band
<type 'exceptions.TypeError'>: unbound method getSketchPoint() must be called with Sketch instance as first argument (got int instance instead)
Code: Select all
Traceback (most recent call last):
File "/home/test/Downloads/OffsetInSketcher03.FCMacro", line 45, in getPoint
OffsetInSketcher.addOffset(self.SelGeoId,self.OffsetLine) # call the command
AttributeError: OffsetDialog instance has no attribute 'SelGeoId'
OS: Debian GNU/Linux 10 (buster)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.
Build type: Release
Python version: 2.7.16rc1
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Re: Feature: offset tool in sketcher
@RandomUser:
Use the workflow:
- open a sketch
- draw some lines and/or arcs (like in the examples above)
- select at least one element
- start the script
Use the workflow:
- open a sketch
- draw some lines and/or arcs (like in the examples above)
- select at least one element
- start the script
Re: Feature: offset tool in sketcher
Not reading every line in the whole thread but sounds useful
FWIW -
p.s.
It seems there is some bugs in Draft Offset ? - The distance between the 2 offsetted (blue) arcs to the original (white) arc seems different
Anywall, it doesn't affect ArchWall.
FWIW -
- For reference Draft Gui has a tool for Offset, which internally use a few Draft functions by memory offset() offsetWire()
- Arch Wall also use offsetWire(), to 'thicken' a wire on 2d plane and extrude 'upward' to build a 3d wall.
p.s.
It seems there is some bugs in Draft Offset ? - The distance between the 2 offsetted (blue) arcs to the original (white) arc seems different
Anywall, it doesn't affect ArchWall.
Re: Feature: offset tool in sketcher
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Feature: offset tool in sketcher
Not the same issue, at least not directly related (maybe the underlying Draft / OffsetWire() / Offfset() problems)Kunda1 wrote: ↑Sun Oct 18, 2020 11:49 am
Is this related to issue #3859?
If not please open a ticket, thanks!
But it seems the behaviour is not consistent ... can someone confirm... maybe to discuss in separate thread.
p.s.
The purpose of bringing up Draft Offset is just want to highlight this tool has not problem with 2 arc not tangentially connected, just if they are still connected after offsetting.
Re: Feature: offset tool in sketcher
I know, the tread has become long, but I want to note the following:The purpose of bringing up Draft Offset is just want to highlight this tool has not problem with 2 arc not tangentially connected, just if they are still connected after offsetting.
If arcs are not tangentially connected to their neighbours, its's easy to find indefinable situations, see screenshot: In the two pictures, the left lines are the original: Two lines and an arc with radius 5.
- The left figure using offset value 2 is easy to calculate. Two lines and an arc lead to two lines and an arc.
- The right figure having offset value 4 will lead to only one single line. (or two lines which are in line)
You will find situations, where no reasonable solution is available.
Re: Feature: offset tool in sketcher
Is this macro not in the addon manager? I feel like it should be, but I couldn't find it. It would be a lot more accessible to more people.
Re: Feature: offset tool in sketcher
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Feature: offset tool in sketcher
@chrisb: What do I have to do?