Hi, the command should now add a simple railing on landing as experiment ... on one side only
(new ArchStairs.py attached)
That is, select a multi-edge object, click the button, there should be a landing + 1 railing.
yorik wrote: ↑Thu Jul 12, 2018 1:06 am
Hi, see if you could offer some help on using Draft.MakeWire?
Basically, the experimental ArchStair use Draft.MakeWire on new OutlineLeft & OutlineRight attributes which include a series of vectors generated representing the path of railing ...see below (hardcoded 90mm from edge 900mmH from landing)
For reasons I can't figure out, it always return below for the '1st' vector series -
- "Too many wires in the base shape. Unable to build the base path"
If I swap the sequence of OutlineLeft / OutlineRight 'to Draft.makeWire', the railing on the other 'Hand' side is created and the opposite side is not created then! I.E., there should be no problem on the vector series.... no idea what's wrong
Thanks for any idea!
Code: Select all
lRailWire = Draft.makeWire(stair.OutlineLeft)
rRailWire = Draft.makeWire(stair.OutlineRight)
lRail = ArchPipe.makePipe(lRailWire,50)
rRail = ArchPipe.makePipe(rRailWire,50)
Vectors
Code: Select all
DEBUG - outlineP1P2, outlineP3P4, outline
[Vector (3750.0, -90.0, 3900.0), Vector (6160.0, -90.0, 3900.0), Vector (6160.0, -3032.8611542376734, 3900.0), Vector (8404.318303359612, -5696.499059728652, 3900.0), Vector (6674.949793716716, -8060.839990482926, 3900.0)]
[Vector (6013.099952389854, -7576.737948000551, 3900.0), Vector (7362.202356033304, -5732.285470158311, 3900.0), Vector (5340.0, -3332.262781736474, 3900.0), Vector (5340.0, -910.0, 3900.0), Vector (3750.0, -910.0, 3900.0)]
[Vector (3750.0, -90.0, 3900.0), Vector (6160.0, -90.0, 3900.0), Vector (6160.0, -3032.8611542376734, 3900.0), Vector (8404.318303359612, -5696.499059728652, 3900.0), Vector (6674.949793716716, -8060.839990482926, 3900.0), Vector (6013.099952389854, -7576.737948000551, 3900.0), Vector (7362.202356033304, -5732.285470158311, 3900.0), Vector (5340.0, -3332.262781736474, 3900.0), Vector (5340.0, -910.0, 3900.0), Vector (3750.0, -910.0, 3900.0), Vector (3750.0, -90.0, 3900.0)]
Too many wires in the base shape
Unable to build the base path
Only the Right Hand Side !
- Screenshot from 2018-07-14 09-33-34.png (324.49 KiB) Viewed 1644 times
Or Only the Left Hand Side !!!
- Screenshot from 2018-07-14 09-54-25.png (273.9 KiB) Viewed 1644 times
regis wrote: ↑Fri Jul 13, 2018 10:19 am
I was playing with more of the simple stair settings available at the moment to discover what you can do. I'm pretty impressed at what is already currently possible. You can already do complex stairs of some sort.
Hi, nice TechDraw output!
See if the railing feature works on your side. In fact, you may also try again selecting multiple object ... I use 'original' Yorik's method to 'run' FreeCAD command.