Feature request : round corner rectangle
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Feature request : round corner rectangle
Switching works between sketches and documents.
I found another bug: Circle is missing the coincidence to the center.
I found another bug: Circle is missing the coincidence to the center.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Feature request : round corner rectangle
There is something else that can be improved: The Panel at the left is very wide, thus consuming quite much from my laptop monitor. Can it be made narrower, especially the buttons?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Feature request : round corner rectangle
Attached the latest revised version of the script.
I could not provide the suggestion:
- enter the coordinates of a center point (using the dialog)
- use the macros to extend an existing sketch
- the buttons have been narrowed
Generating figures without constraints is not longer possible.
The script now has the benefits:
- switching between documents and sketches in a document is possible (already published and tested)
- in any sketch an arbitrary number of figures can be created
- the sketch can be extended by any elements in between creating the figures
- all generated figures are fully constrained
- modifying any measure holds all constraints
- the figure can be moved by altering the measure of its center point
- after deleting the measures of the center point, the figure can be moved freely using the mouse
Please give me further desires and comments.
I could not provide the suggestion:
The following points are realized:- if a point is selected, then the figure uses this point as center
- if nothing is selected, the origin is used
- if something else is selected raise an error
- enter the coordinates of a center point (using the dialog)
- use the macros to extend an existing sketch
- the buttons have been narrowed
Generating figures without constraints is not longer possible.
The script now has the benefits:
- switching between documents and sketches in a document is possible (already published and tested)
- in any sketch an arbitrary number of figures can be created
- the sketch can be extended by any elements in between creating the figures
- all generated figures are fully constrained
- modifying any measure holds all constraints
- the figure can be moved by altering the measure of its center point
- after deleting the measures of the center point, the figure can be moved freely using the mouse
Please give me further desires and comments.
- Attachments
-
- CenteredFiguresInSketcher.FCMacro
- (13.13 KiB) Downloaded 72 times
Re: Feature request : round corner rectangle
Macro works nicely, but there is another problem with this macro.
After using this macro for sketch, it is difficult to do secondary operations on the part-body.
There is message of Wrong object type for the pad created by sketch using this macro.
I can not add fillets or any other features on this pad.
Can you please correct this ?
Thanks
After using this macro for sketch, it is difficult to do secondary operations on the part-body.
There is message of Wrong object type for the pad created by sketch using this macro.
I can not add fillets or any other features on this pad.
Can you please correct this ?
Thanks
- Attachments
-
- Wrong object type message
- error.JPG (66.03 KiB) Viewed 2597 times
-
- testpart.FCStd
- Test part with pad feature made by using macro sketch
- (13.84 KiB) Downloaded 57 times
Re: Feature request : round corner rectangle
From the image you have selected the body and not an edge. No problems filleting here.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Feature request : round corner rectangle
Hello Chrisb,
Actually you are correct.
Just one clarification, instead of using my file, can you create new part file and add pad using the sketch macro and then try to add fillet or any other feature,you will see the same problem of error message.
Thanks.
Actually you are correct.
Just one clarification, instead of using my file, can you create new part file and add pad using the sketch macro and then try to add fillet or any other feature,you will see the same problem of error message.
Thanks.
Re: Feature request : round corner rectangle
I can confirm the issue.
To reproduce:
- switch to PartDesign workbench
- new document
- create sketch
- call macro
- leave all defaults (Rectangle 10x20), confirm
- switch to sketcher and close the sketch
- pad with the defaults (10mm) and confirm
- Fillet shows the error from above
- save (file attached below) and reload and fillet opens the migration dialog
- Dependency graph looks good.
To reproduce:
- switch to PartDesign workbench
- new document
- create sketch
- call macro
- leave all defaults (Rectangle 10x20), confirm
- switch to sketcher and close the sketch
- pad with the defaults (10mm) and confirm
- Fillet shows the error from above
- save (file attached below) and reload and fillet opens the migration dialog
- Dependency graph looks good.
- Attachments
-
- PaddedRectFromMacro.FCStd
- (7.63 KiB) Downloaded 69 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Feature request : round corner rectangle
Thanks to everybody who tested the script till now.
To all who have already downloaded the script: just delete the 5 lines:
at the beginning of the script.
Please give me further desires and comments.
I think I could fix this bug, the new version is attached.After using this macro for sketch, it is difficult to do secondary operations on the part-body.
There is message of Wrong object type for the pad created by sketch using this macro.
I can not add fillets or any other features on this pad.
To all who have already downloaded the script: just delete the 5 lines:
Code: Select all
import os
import FreeCAD as App
import FreeCADGui as Gui
from FreeCAD import Part
from FreeCAD import Sketcher
Please give me further desires and comments.
- Attachments
-
- CenteredFiguresInSketcher.FCMacro
- (13.03 KiB) Downloaded 82 times
Re: Feature request : round corner rectangle
Thanks edi, now it is working.
Thanks.
Thanks.
Re: Feature request : round corner rectangle
Was there any possibility for me to see where the issue was? Everything seemed to be correct to me.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.