MACRO:Work Feature 2014_12

Need help, or want to share a macro? Post here!
mslonik
Posts: 40
Joined: Mon Jan 25, 2016 7:42 pm
Location: Poland
Contact:

Re: MACRO:Work Feature 2014_12

Postby mslonik » Wed Mar 02, 2016 8:10 pm

Just type RETURN into the "End tab, Ending Point: To define: X" Edit Line and "End tab, Ending Point: To define: Y" Edit Line in order to validate your changes and it will works
It works :D That was trivial... Anyway I expected that after pressing "Apply" button selected values for X and Y will be applied... Yeah, little bit confusing. You don't guess how happy I am now :D
You always need an axis and a rotation center to define any rotation...but most of the time the rotation center belongs to the rotation axis.
Just couple of days before I realized, that basically speaking there are couple of ways to realize rotation: do a rotation on plane or do a rotation in space (3D). Excuse me, just another newbie discovering how to rotate solids in 3D space...

Kind regards, mslonik
rentlau_64
Posts: 181
Joined: Tue Oct 21, 2014 9:47 am
Location: Pau (France)

Re: MACRO:Work Feature 2014_12

Postby rentlau_64 » Wed Mar 30, 2016 5:43 am

Hello!

A new release is available:

https://github.com/Rentlau/WorkFeature.git

and documentation on releases at:
WorkFeature/WorkFeature/Doc/WF_releasesDocumentation.pdf
https://github.com/Rentlau/WorkFeature/ ... tation.pdf

Release of 2016-03-29 :

Modification:
"Point 1/2" TAB and "Point 2/2" TAB gathered into sub tabs of one "Point" TAB
idem for "Axis" and "Plane" TABs.
Addition:
into "Point"/"Point2/3" TAB :
Object(s) Mass Center Point
Object(s) N Point(s)
into "Point"/"Point3/3" TAB :
Load Points
Save Points
into "Axis"/"Axis3/3" TAB :
Object(s) N Axes(s)
Object(s) 3 Axes(s)
into "Modif." TAB :
Align Main Axis
into "Plane"/"Plane1/2" TAB :
Plane=(N Points)
Plane=(2 Points)

Rentlau_64
cox
Posts: 963
Joined: Wed Nov 26, 2014 11:37 pm

Re: MACRO:Work Feature 2014_12

Postby cox » Wed Mar 30, 2016 6:22 am

rentlau_64 wrote:A new release is available:
Congratulation with the release, rentlau_64. looks really nice. The documentation is super easy to follow. :D

Thanks
Need help? Feel free to ask, but please read the guidelines first
rentlau_64
Posts: 181
Joined: Tue Oct 21, 2014 9:47 am
Location: Pau (France)

Re: MACRO:Work Feature 2014_12

Postby rentlau_64 » Wed Mar 30, 2016 7:13 pm

@Cox
Congratulation with the release, rentlau_64. looks really nice. The documentation is super easy to follow.
Thank you very much, I appreciate.
I hope you will enjoy the functions.
Let me know if you have comments or advices.

My best
Rentlau_64
rentlau_64
Posts: 181
Joined: Tue Oct 21, 2014 9:47 am
Location: Pau (France)

Re: MACRO:Work Feature 2014_12

Postby rentlau_64 » Sun Sep 11, 2016 7:55 am

Hello!

A new release is available:

https://github.com/Rentlau/WorkFeature.git

and documentation on releases at:
WorkFeature/WorkFeature/Doc/WF_releasesDocumentation.pdf
https://github.com/Rentlau/WorkFeature/ ... tation.pdf

and starting full documentation at:
https://github.com/Rentlau/WorkFeature/ ... tation.pdf

Release of 2016-09-10 :

Bug Fix:
Correction of home directory path by default
(for txt file selection widget) on "Save" and "Load Points" functions
not handled previpusly for Window version.

Modification:
For "Point tab" changes for allowing more complex multi objects
selections, same improvements ongoing for other tabs for next release.

Addition:

into "Circle" TAB :
Arc=(3 Points):
Create one Arc depending on 3 points.
- First select 3 Points
- Then Click on the button

into "Wire 1/3" TAB :
Bezier Cubic=(4 Points):
Create a Wire (Bezier Cubic) from 4 selected points.
- First 4 Points
- Then push this button

into "Image" TAB (new tab):
Copy and Scale Image(s) :
Scale an image along desired direction(s) (make a copy first of
the original Image).
- First define the direction(s) on the right combo
(default is XY):
if X is selected then only X direction will be scaled
if XY is selected then the scale will be squared in X and
Y directions together
- Select one or several Images (in combo view)
- Select one Line (or 2 Points) (close to the Image) you want to
define new dimension.
(better to select a Line strictly in X direction if you want to
enlarge/squize the Image in X direction)
- Then give the target dimension of the Line (on the last right
LineEdit).

some 3D parametrics examples were added:
Helix.jpg
Helix.jpg (285.54 KiB) Viewed 1316 times
Have fun

Rentlau_64
cox
Posts: 963
Joined: Wed Nov 26, 2014 11:37 pm

Re: MACRO:Work Feature 2014_12

Postby cox » Sun Sep 11, 2016 9:44 am

Nice, feature additions, @rentlau_64
Looking forward to testing these :D
Need help? Feel free to ask, but please read the guidelines first
rentlau_64
Posts: 181
Joined: Tue Oct 21, 2014 9:47 am
Location: Pau (France)

Re: MACRO:Work Feature 2014_12

Postby rentlau_64 » Sun Jan 01, 2017 9:28 pm

Hello!

A new release is available:

https://github.com/Rentlau/WorkFeature.git

and documentation on releases at:
WorkFeature/WorkFeature/Doc/WF_releasesDocumentation.pdf
https://github.com/Rentlau/WorkFeature/ ... tation.pdf

and starting full documentation at:
https://github.com/Rentlau/WorkFeature/ ... tation.pdf

Release of 2016-12-31 :
Addition:
into "Point 3/3" TAB :
Random Point(s):
into "Wire 1/3" TAB :
Make Wire:
Suppression of "Wire 2/3 and 3/3" TABs and replacement by
"Curves And Surfaces" TAB :
Addition:
into "Curves And Surfaces " TAB :
Launch Curves and Surfaces Menu:
Click to launch a new tool for Curves and Surface a new tool for
Regression 2D,
Parametric curves 2D
Parametric curves 3D
Parametric Surfaces

here a flavor of the new tool:
seashell.jpg
seashell.jpg (128.53 KiB) Viewed 1127 times
Have fun and Happy new year!

Rentlau_64
User avatar
nemesis
Posts: 344
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

Re: MACRO:Work Feature 2014_12

Postby nemesis » Tue Jan 03, 2017 12:15 pm

Hi,
Some Path issue on OS X

Code: Select all

ERROR:cannot load FreeCAD module...modify line 6 and 7 of this script !!
<unknown exception traceback><unknown exception type>: <unknown exception data>
so I changed 6 and 7 from this

Code: Select all

if not sys.path.__contains__("/usr/lib/freecad/lib"): 
    sys.path.append("/usr/lib/freecad/lib")
to this

Code: Select all

if not sys.path.__contains__("/Applications/FreeCAD.app/Contents/lib"): 
    sys.path.append("/Applications/FreeCAD.app/Contents/lib")
but it's not working, "/Applications/FreeCAD.app/Contents/lib" is the Path where Freecad.so and freeCAD.gui are located.

any idea?

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6706 (Git)
Build type: Release
Branch: tag: 0.16.6706
Hash: f86a4e411ff7848dea98d7242f43b7774bee8fa0
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17
rentlau_64
Posts: 181
Joined: Tue Oct 21, 2014 9:47 am
Location: Pau (France)

Re: MACRO:Work Feature 2014_12

Postby rentlau_64 » Tue Jan 03, 2017 6:15 pm

Nemesis,

Try to just comment these lines and see if the macro is working. I guess it should...

I will test on my side too!

Rentlau_64
User avatar
nemesis
Posts: 344
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

Re: MACRO:Work Feature 2014_12

Postby nemesis » Tue Jan 03, 2017 8:29 pm

Nope,

I got a pop up window requesting for.... I don't know what, I guess a Folder, but if I test with the WF folder or the lib folder of freeCAD, I got this error message :

Code: Select all

Traceback (most recent call last):
  File "/Volumes/doc/Thierry/Library/Preferences/FreeCAD/Macro/start_WF.FCMacro", line 34, in <module>
    import WorkFeature.WF_2015 as WF
  File "/Volumes/doc/Thierry/Library/Preferences/FreeCAD/Mod/WorkFeature/WorkFeature/WF_2015.py", line 65, in <module>
    from ParCurve.WF_ObjParCurve_2016 import *
  File "/Volumes/doc/Thierry/Library/Preferences/FreeCAD/Mod/WorkFeature/WorkFeature/ParCurve/WF_ObjParCurve_2016.py", line 16, in <module>
    import WF_ObjParCurveEdit_2016    as ParCurveEdit 
  File "/Volumes/doc/Thierry/Library/Preferences/FreeCAD/Mod/WorkFeature/WorkFeature/ParCurve/WF_ObjParCurveEdit_2016.py", line 11, in <module>
    import Ui.WF_ObjParCurve2DEditGui_2016 as EDIT_2D
<type 'exceptions.ImportError'>: No module named WF_ObjParCurve2DEditGui_2016
so still guessing it's Path, but which one?