# 代码块和 DesignScript

代码块是 Dynamo 中的一项独特功能，可将可视化编程环境与基于文本的环境动态链接。代码块可以访问所有 Dynamo 节点，并且可以在一个节点中定义整个图形。请仔细阅读本章，因为代码块是 Dynamo 的基本构建块。

!


---

# Agent Instructions: 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:

```
GET https://primer2.dynamobim.org/zh-cn/8_coding_in_dynamo/8-1_code-blocks-and-design-script.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
