'sthit' is the length of the cone so you need to create a length parameter called 'sthit' in your parameter list to control it.
'lsec' is the radius of the cone (leg) so again you need a length parameter called 'lsec' to control it.
So instead of using actual fixed numbers in your CONE command you now have parameters that the user will be able to see in the object settings and by changing the values in those parameters the user can control the length and width of the chair legs.
In your CONE command example instead of using one parameter for the base width and another for the top width you are simple using the same radius (lsec) but divided by 3 for the base and divided by 2 for the top.
This way you are guaranteed that the base will always be smaller than the top.
The divide by 3 or 2 are arbitrary figures - they could be anything you want to get the desired ratio between the top and base cone radii.
If you use two separate parameters for base and top then you can control them independently so you could make the base and top any width you want.
The '90,90' at the end is just then angle of the base and top ends of the cone - 90 is perpendicular to the axis of the cone length.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11