View Issue Details

IDProjectCategoryView StatusLast Update
0001702PartDesignFeaturepublic2014-08-20 11:48
ReporterNico Assigned Towmayer  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformLaptopOSWindows OS Version7 64-Bits
Product Version0.14 
Summary0001702: Sweep commands from 0.13 to 0.14
DescriptionI 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 ReproduceRun the script attached in v0.13 and v0.14.
TagsNo tags attached.
FreeCAD Information

Activities

Nico

2014-08-19 21:17

reporter  

Sweep-v0.14.FCMacro (100,369 bytes)

wmayer

2014-08-20 10:32

administrator   ~0004975

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.

Nico

2014-08-20 11:35

reporter   ~0004976

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.

wmayer

2014-08-20 11:48

administrator   ~0004977

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.

Issue History

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