# Wywoływanie wtyczek i interfejsu API z dodatku Dynamo

## **Łączenie wtyczek z dodatkiem Dynamo**

Program FormIt w wersji 2022.1 i nowszych zapewnia dostęp do interfejsów API języka JavaScript i funkcji niestandardowych z dodatku Dynamo za pośrednictwem dwóch nowych węzłów:

### **CallJSAPI** <a href="#calljsapi" id="calljsapi"></a>

Węzeł **CallJSAPI** umożliwia wywoływanie interfejsów API języka JavaScript programu FormIt bezpośrednio z dodatku Dynamo.

![](https://formit.autodesk.com/page/formit-dynamo/dynamo-formitCallJSAPI-GetTotalGrossArea.png)

Nazwy funkcji i parametry można znaleźć w dokumentacji języka JavaScript, która jest podzielona na dwie części: [Interfejs API programu FormIt](https://formit3d.github.io/FormItExamplePlugins/docs/FormItJSAPI/group__mod__jsapi__formit.html) oraz [Interfejs API WSM](https://formit3d.github.io/FormItExamplePlugins/docs/FormItJSAPI/group__mod__jsapi__wsm.html) (jądro modelowania).

### **CallPluginJS** <a href="#callpluginjs" id="callpluginjs"></a>

Natomiast węzeł **CallPluginJS** umożliwia wywoływanie funkcji niestandardowych z wczytanej wtyczki lub fragmentu skryptu wykonywanego z poziomu okna Edytor skryptów.

![](https://formit.autodesk.com/page/formit-dynamo/dynamo-formitCallPluginJS.png)


---

# 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://windows.help.formit.autodesk.com/pl/plugins/how-to-develop-plugins/additional-development-options/invoking-plugins-and-api-from-dynamo.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.
