{"format":"cadcraft-library-item","format_version":1,"uuid":"c9f77322-7ea9-4f7c-90ce-dde56dcee676","version":2,"name":"Parametric door, single swing","kind":"door","category":"openings/doors","description":"A single swing door in plan. Width from a list of leaf sizes, wall thickness, opening angle, and two flips: hinge side and swing side.","maker":"","model":"","ifc":{"class":"IfcDoor","predefined":"NOTDEFINED"},"plan":{"layers":[{"name":"PB-OUTLINE","color":7},{"name":"PB-DETAIL","color":8},{"name":"PB-CENTER","color":1},{"name":"PB-TEXT","color":3}],"entities":[{"type":"line","layer":"PB-OUTLINE","color":null,"x1":0,"y1":-75,"x2":0,"y2":75},{"type":"line","layer":"PB-OUTLINE","color":null,"x1":900,"y1":-75,"x2":900,"y2":75},{"type":"line","layer":"PB-OUTLINE","color":null,"x1":0,"y1":75,"x2":0,"y2":975},{"type":"arc","layer":"PB-DETAIL","color":null,"x":0,"y":75,"r":900,"a0":0,"a1":90}]},"body":null,"params":{"width":900,"depth":1050,"height":2040,"remarks":"Parametric block: the sizes here are its starting sizes."},"dynamic":{"format":"cadcraft-parametric-block","version":1,"params":[{"name":"Width","expr":"900","kind":"length","list":[600,700,750,800,850,900,1000,1100,1200]},{"name":"Wall","expr":"150","kind":"length","min":50,"max":500,"step":5,"note":"Wall thickness"},{"name":"Angle","expr":"90","kind":"angle","min":15,"max":180,"step":15},{"name":"HingeRight","expr":"0","kind":"yesno","note":"Hinge on the right"},{"name":"SwingOut","expr":"0","kind":"yesno","note":"Swing to the other side"}],"acts":[{"t":"set","key":0,"f":{"y1":"-Wall / 2","y2":"Wall / 2"}},{"t":"set","key":1,"f":{"x1":"Width","x2":"Width","y1":"-Wall / 2","y2":"Wall / 2"}},{"t":"set","key":2,"f":{"y1":"Wall / 2","x2":"Width * cos(Angle)","y2":"Wall / 2 + Width * sin(Angle)"}},{"t":"set","key":3,"f":{"cy":"Wall / 2","r":"Width","a0":"0","a1":"Angle"}},{"t":"mirror","keys":[0,1,2,3],"when":"HingeRight","x0":"Width / 2","y0":"0","x1":"Width / 2","y1":"1"},{"t":"mirror","keys":[0,1,2,3],"when":"SwingOut","x0":"0","y0":"0","x1":"1","y1":"0"}],"grips":[{"t":"list","name":"Width","param":"Width","x":"Width / 2","y":"0"},{"t":"angle","name":"Opening angle","param":"Angle","x":"if(HingeRight, Width - Width * cos(Angle), Width * cos(Angle))","y":"if(SwingOut, -1, 1) * (Wall / 2 + Width * sin(Angle))","cx":"if(HingeRight, Width, 0)","cy":"if(SwingOut, -1, 1) * Wall / 2","a0":"if(HingeRight, 180, 0)","s":"if(HingeRight, -1, 1) * if(SwingOut, -1, 1)"},{"t":"flip","name":"Hinge side","param":"HingeRight","x":"Width * 0.25","y":"0"},{"t":"flip","name":"Swing side","param":"SwingOut","x":"Width * 0.75","y":"0"}]},"source_attrs":{},"license":{"id":"CC0-1.0","holder":"CadCraft","attribution":"“Parametric door, single swing” by CadCraft, CC0 (https://creativecommons.org/publicdomain/zero/1.0/)","url":"https://creativecommons.org/publicdomain/zero/1.0/"},"provenance":{"library":"librarycraft","item":"c9f77322-7ea9-4f7c-90ce-dde56dcee676","version":2,"sha256":"75e0ed5f5ce9a0d84c35b63be73f46fb40beba23b0aacecfa37f5f19c640e7cd","source_file":"door-single-swing.item.json","source_sha256":"29aa6dabfa9080049710ba353ecc7333ef502bd2e4eb7e2652b69ca6f283d879","published_at":"2026-11-24T22:41:37Z"}}