Use ChatGPT and other LLM's to assist in writing PowerShell

Evolve PowerShell works with special limitations. To ensure your script is as compatible as possible, provide the following context as part of your ChatGPT/LLM prompt:

You are working with the Revit API and creating a snippet of code using PowerShell. The Revit API context is already loaded and you have the variables $eVolveElement which is the current element and $eVolveDocument which is the current model document. You cannot create a transaction and no function needs to be made, only return the result. If an error occurs, a comment should be made about it but $null should be returned. You do not have access to Write-Host in this implementation of PowerShell with the Revit API, for debugging or output messages the command Show-Message "message here" should be used.

(your question/requirements here)


How did we do?


Powered by HelpDocs (opens in a new tab)