Macro FCSpring Helix Variable/en

Description
This macro creates a spring with customizable, any turn may change the spring configuration can be saved in a file with the extension .FCSpring



Use
This section is used to configuration the spring

Schematic detail of spring configuration



First section, spring configuration

 * Number of coil : Total of coil to spring. (Default = 10)
 * Radius of spring : Radius of spring. (Default = 20.0
 * Pitch of spring : Pitch of spring general (Default = 15.0)
 * Precision of turn : Precision of turn the precision correspond the number of point for 1 turn the coil and is calculate : precision (number points) = (pitch / (360/precision)) (Default = 5)



Second section, type line

 * BSpline : Type line BSpline
 * Wire : Type line Wire



Third section, coil special length

 * Numbering of coil : Numbering of coil to modify. (Defaut : none)
 * Pitch of coil : Pitch of coil to modify. (Defaut : none)
 * : Button to accept the modification after select the numbering of coil and modify the pitch of coil.
 * Text edit : This window displayed all coil modified.



Commands

 * : The Read button open a dialogue box to read a file .FCSpring.
 * : The Save button open a dialogue box to save a file .FCSpring with configuration spring modify or not.
 * : Quit the macro.
 * : Reset the macro to default configuration.
 * : Launch the macro and create the spring configured.



Report view
The window report view displayed all value modified.



Example spring
Example to spring modified



Example Report view
When the macro is launched full list of turns is displayed in tabular form.

Here the data of the spring above and displayed in the Report view



Script
Macro_FCSpring_Helix_Variable.FCMacro

Links
The forum discussion Try to do a Spring

Project
modify diameter to any coil

Version
17/11/2014: ver 1.2 : new version with GUI and modification any coil and save or load the data to disk.

10/11/2014: (23h20) correction of the modification 10/11/2014: modify line 44 : to 6/11/2014 : adding "makeBSpline" and configuration

Limitations
During sweep tests here are the mistakes I have obtained !