View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001702 | PartDesign | Feature | public | 2014-08-19 21:17 | 2014-08-20 11:48 |
| Reporter | Nico | Assigned To | wmayer | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Platform | Laptop | OS | Windows | OS Version | 7 64-Bits |
| Product Version | 0.14 | ||||
| Summary | 0001702: Sweep commands from 0.13 to 0.14 | ||||
| Description | I have a script that worked well with v0.13 but cannot use it with v0.14. I am not sure what have changed that I cannot use my script anymore. I have attached the script that worked with v0.13. I am sure it is a small scripting difference between both versions, but cannot figure it out. It seems that it cannot find the spine, but there is no error message in Report view. Could you help? | ||||
| Steps To Reproduce | Run the script attached in v0.13 and v0.14. | ||||
| Tags | No tags attached. | ||||
| FreeCAD Information | |||||
|
|
|
|
|
I would say you are lucky that it worked with 0.13. There is a line which is definitely wrong: App.activeDocument().ActiveObject.Spine=(App.ActiveDocument.SplineOuter,['Outer']) It must be: App.activeDocument().ActiveObject.Spine=(App.ActiveDocument.SplineOuter,['Edge1']) After this change it works fine for 0.13 and 0.14. |
|
|
Thank you for your prompt reply. I have to confess that I must not have fully understood the command then. Thanks again, it worked fine now. |
|
|
FYI, the "Spine" points to a part object and a list of sub-elements (edges). App.activeDocument().ActiveObject.Spine=(App.ActiveDocument.SplineOuter,['Edge1']) In this example "App.ActiveDocument.SplineOuter" is the part object and "['Edge1']" the list of edges. In this case it's a single edge but it can also be several edges -- but then it's important that they are connected so that internally a wire can be created. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2014-08-19 21:17 | Nico | New Issue | |
| 2014-08-19 21:17 | Nico | File Added: Sweep-v0.14.FCMacro | |
| 2014-08-20 10:32 | wmayer | Note Added: 0004975 | |
| 2014-08-20 11:35 | Nico | Note Added: 0004976 | |
| 2014-08-20 11:48 | wmayer | Note Added: 0004977 | |
| 2014-08-20 11:48 | wmayer | Status | new => closed |
| 2014-08-20 11:48 | wmayer | Assigned To | => wmayer |
| 2014-08-20 11:48 | wmayer | Resolution | open => no change required |
FreeCAD