关于 floor-plan-generation
这是一个使用 each::sense 生成 2D、3D 平面图和室内布局的技能,适用于建筑、房地产和室内设计工作。它支持住宅、商业空间、零售店和餐厅,并可添加家具、尺寸标注及迭代修改。
主要功能
- 01生成 2D 和 3D 平面图
- 02住宅与商业空间布局
- 03零售店与餐厅平面图
- 04家具摆放
- 05按比例标注尺寸
- 06基于会话迭代设计
适用场景
- 01根据描述起草公寓布局
- 02规划办公室或餐厅空间
- 03制作带家具的房间布局
- 04准备供审核的尺寸图
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ eachlabs/ skills --skill floor-plan-generation安装后在 Claude Code 中输入/floor-plan-generation确认已加载。
附带文件references/SSE-EVENTS.md
详细介绍
楼层平面图生成
使用 each::sense 生成专业的楼层平面图和建筑布局。此技能可为住宅、商业和零售空间创建 2D 平面图、3D 可视化效果和室内布局。
功能
- 住宅平面图:独栋住宅、公寓、共管公寓和多层住宅
- 商业布局:办公空间、联合办公区、会议室
- 零售设计:店铺布局、商品摆放、客户动线优化
- 餐厅平面图:厨房布局、用餐区、吧台设置
- 3D 可视化效果:具有纵深感和透视效果的渲染平面图
- 家具布置:包含家具摆放的室内设计
- 测量与标注:按比例绘制并标注尺寸的平面图
快速开始
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a floor plan for a modern 2-bedroom apartment, approximately 900 sq ft, with open kitchen and living area"}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
平面图类型与应用场景
| 类型 | 说明 | 常见应用 |
|---|---|---|
| 2D 平面图 | 俯视示意图 | 建筑、房地产房源展示 |
| 3D 平面图 | 等轴测图或透视图 | 营销、客户演示 |
| 带家具平面图 | 带家具的布局 | 室内设计、房屋布置 |
| 技术平面图 | 带测量数据和标注 | 施工、许可证申请 |
| 概念平面图 | 快速草图风格 | 设计初期阶段 |
应用场景示例
1. 根据描述生成平面图
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Generate a floor plan for a single-story family home with 3 bedrooms, 2 bathrooms, a large open-concept kitchen and living room, home office, and attached 2-car garage. Modern minimalist style."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
2. 公寓布局设计
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Design a studio apartment floor plan, 550 sq ft. Include a sleeping area, kitchenette, bathroom, and living space. Maximize natural light with large windows. Modern urban style with efficient use of space."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
3. 房屋平面图
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a traditional 2-story house floor plan. Ground floor: entryway, living room, dining room, kitchen, half bath, mudroom. Second floor: master suite with walk-in closet and en-suite, 3 additional bedrooms, 2 full bathrooms, laundry room. Approximately 2,800 sq ft total."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
4. 办公空间平面图
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Design an open office floor plan for a tech startup, 3,000 sq ft. Include: open workspace for 30 employees with standing desk options, 3 private offices, 2 meeting rooms (one for 8, one for 4), a phone booth area, kitchen/break room, reception area, and server room. Modern collaborative workspace aesthetic."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
5. 餐厅布局
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a floor plan for a 2,500 sq ft casual dining restaurant. Include: main dining area seating 60 guests, bar area with 12 bar stools, commercial kitchen with separate prep and cooking areas, walk-in cooler, restrooms, staff area, and outdoor patio seating for 20. Optimize customer flow and server paths."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
6. 零售店铺布局
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Design a retail clothing store floor plan, 1,800 sq ft. Include: storefront display windows, main sales floor with clothing racks and display tables, fitting rooms (4 units), checkout counter area, stockroom, and small office. Create a customer journey that maximizes product exposure. Contemporary boutique style."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
7. 3D 平面图可视化
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 3D isometric floor plan visualization of a luxury penthouse apartment. Show the layout from an elevated angle with visible furniture, textures, and materials. Include living room, dining area, gourmet kitchen, master bedroom, two guest bedrooms, and wraparound terrace. High-end modern interior design with warm lighting."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
8. 家具布置平面图
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a furnished floor plan for a 400 sq ft living room. The room is rectangular (20ft x 20ft) with windows on the south wall and entry door on the north wall. Include furniture placement for: sectional sofa, coffee table, TV console, two accent chairs, bookshelf, and floor lamp. Focus on conversation-friendly arrangement with good TV viewing angles."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
9. 多层平面图
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Design a 3-story townhouse floor plan. Basement: home gym, media room, full bathroom, utility room. Ground floor: open living/dining/kitchen, powder room, back patio access. Second floor: master suite with walk-in closet and spa bathroom, two bedrooms with shared bathroom, small home office nook. Show all three levels side by side."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
10. 带测量数据的平面图
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a technical floor plan with detailed measurements for a 1,200 sq ft 2-bedroom apartment. Show room dimensions, door widths, window placements with sizes, and wall thicknesses. Include: living room (15x18 ft), kitchen (10x12 ft), master bedroom (12x14 ft), second bedroom (10x12 ft), bathroom (8x6 ft), and hallway. Architectural blueprint style with dimension lines."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
最佳实践
平面图规格
- 注明建筑面积:帮助 AI 理解空间比例和尺度
- 指定房间类型:明确说明需要哪些房间
- 注明风格:现代、传统、工业风、极简主义等
- 考虑动线:描述空间之间应如何连接
详细描述
- 功能需求:居住人数、具体使用场景
- 相邻关系:哪些房间应彼此相邻
- 特色功能:步入式衣帽间、中岛、嵌入式设施
- 朝向:窗户位置、自然采光偏好
视觉风格
- 2D 示意图:线条简洁,采用建筑符号
- 3D 渲染图:逼真的材质和光照
- 草图风格:概念化的手绘效果
- 蓝图:包含测量数据的技术图纸
平面图提示词技巧
请求生成平面图时,请包含以下信息:
- 空间类型:住宅、商业、零售、餐厅
- 总面积:平方英尺或平方米
- 房间清单:所需的所有房间和空间
- 风格:建筑和室内设计风格
- 视图类型:2D 俯视图、3D 等轴测图、透视图
- 特殊要求:无障碍要求、特定功能
- 细节程度:概念图、带家具图、技术图
提示词结构示例
"Create a [view type] floor plan for a [space type], [total area].
Include [room list].
Style: [architectural/interior style].
[Additional requirements like measurements, furniture, etc.]"
模式选择
生成前请询问用户:
“您想要快速低成本,还是高质量?”
| 模式 | 最适合 | 速度 | 质量 |
|---|---|---|---|
max | 最终演示、客户交付物、详细平面图 | 较慢 | 最高 |
eco | 快速构思、初稿、探索方案 | 较快 | 良好 |
多轮设计迭代
使用 session_id 对平面图设计进行迭代:
# Initial floor plan
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a floor plan for a 1,500 sq ft 3-bedroom ranch house with open concept living"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "floorplan-project-001"
}'
# Request modification
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Add a sunroom off the living area and make the master closet larger"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "floorplan-project-001"
}'
# Convert to 3D view
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Now show this floor plan as a 3D visualization with modern furniture"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "floorplan-project-001"
}'
批量生成以供比较
生成多个布局方案以便比较:
# Option A - Open concept
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 2-bedroom apartment floor plan, 1,000 sq ft, with completely open concept living/dining/kitchen"}],
"model": "eachsense/beta",
"stream": true,
"mode": "eco"
}'
# Option B - Defined spaces
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 2-bedroom apartment floor plan, 1,000 sq ft, with separate defined living room, dining room, and kitchen"}],
"model": "eachsense/beta",
"stream": true,
"mode": "eco"
}'
# Option C - Split bedroom layout
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a 2-bedroom apartment floor plan, 1,000 sq ft, with bedrooms on opposite sides of the unit for maximum privacy"}],
"model": "eachsense/beta",
"stream": true,
"mode": "eco"
}'
错误处理
| 错误 | 原因 | 解决方案 |
|---|---|---|
Failed to create prediction: HTTP 422 | 余额不足 | 在 eachlabs.ai 充值 |
| 内容政策违规 | 内容被禁止 | 调整提示词以符合政策 |
| 超时 | 生成内容复杂 | 将客户端超时时间设为至少 10 分钟 |
相关技能
each-sense- 核心 API 文档interior-design-generation- 房间布置与装饰architectural-visualization- 建筑外观与渲染图real-estate-marketing- 房产营销视觉内容
评论
支持 Markdown