> For the complete documentation index, see [llms.txt](https://windows.help.formit.autodesk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://windows.help.formit.autodesk.com/zh-cn/plugins/example-1/generate-string-lights.md).

# 生成灯串

*在本章中，我们将对 FormIt 附带的几个插件进行举例介绍，以对* ***“Encode Campus Sample Model.axm”** 进行一些改进。如果您尚未下载，可以从* [*FormIt Primer Part II 数据集*](https://formit-help.s3.amazonaws.com/FormIt+Primer+Part+2+Datasets.zip)*下载文件*\_\_

*此款简洁插件让您可以根据直线或曲线为模型快速添加吊灯。*

1 - 在添加任何新灯之前，我们先使用模型中的预制场景查看预期结果。

1. 要跳转到包含现有灯串的场景，请打开 **“场景选项板”**，然后双击名为 **“视点标高 - 短巷”** 的场景。
2. 请注意此模型随附的灯串 - 这是我们将要重新创建的对象，但位于其他位置。
3. 在 **“层选项板”** 中，打开 **“辅助几何图形”** 图层，以便可以看到用于生成这些灯串的原始线。

![](/files/xHlpLqAJAmwk8AGv4bBz)

2 - 现在，我们导航到其他巷子并添加一些灯。在 **“场景选项板”** 中，打开 **“视点标高 - 长巷”** 场景。请注意，这条巷还没有任何灯串。

3 - 创建新灯串的步骤：

1. 通过单击灯串图标，打开新安装的 **“生成灯串选项板”**。默认情况下，新插件的图标显示在底部。
2. 将 **“装置数量”** 选项更改为 **“10”**。
3. 双击其中一条辅助线，以编辑预先创建的 **“灯串 - 长巷”** 组。然后，单击其中一条预先绘制的辅助线以将其选中。
4. 单击插件选项板内的 **“生成灯串”** 按钮，此时应显示一个新灯串！请注意，每个灯串都是作为其自己唯一的组创建的。

![](/files/Bdxq9OxggfRu2x1PglWI)

***注意：*** *有些线穿过“凹槽咖啡”标志是可以的，因为该灯串插件会创建一条实际上在该符号下方下垂的悬链线曲线。*

4 - 尝试使用其他预制辅助线和/或创建一些您自己的辅助线，来创建更多灯串。玩转插件的设置，以获取不同的结果。

5 - 为帮助保持模型井然有序，完成后，建议您对所有辅助线进行分组并将该组放置在 **“辅助几何图形”** 图层上，以及将所有灯串组指定给 **“上下文 - 外部照明”** 图层。这将阻止辅助线显示在我们不希望看到它们的任何“视点标高”场景中。完成后，结果应类似于下一个屏幕截图。

![](/files/xtkWAJHjnS4ZxXqseGKW)

***注意：*** *不同于 Dynamo 脚本创建的几何图形（可以通过* ***“特性选项板”** 更新和重新生成），插件所创建的对象（在大多数情况下）只是常规 FormIt 几何图形。创建后，只能使用 FormIt 内置的建模工具编辑它们。*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://windows.help.formit.autodesk.com/zh-cn/plugins/example-1/generate-string-lights.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
