{"id":20382691,"url":"https://github.com/autodesk-forge/forge-listlayers-designautomation","last_synced_at":"2025-07-29T01:37:04.428Z","repository":{"id":149154854,"uuid":"218564755","full_name":"Autodesk-Forge/forge-listlayers-designautomation","owner":"Autodesk-Forge","description":"Sample AutoCAD plugin migrated to run with Design Automation for AutoCAD","archived":false,"fork":false,"pushed_at":"2020-09-09T16:37:50.000Z","size":188,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-12T08:54:07.290Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Autodesk-Forge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-10-30T15:51:21.000Z","updated_at":"2021-11-09T14:43:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2133cf1-db2a-490f-bd0f-e3fb01100662","html_url":"https://github.com/Autodesk-Forge/forge-listlayers-designautomation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Autodesk-Forge/forge-listlayers-designautomation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk-Forge%2Fforge-listlayers-designautomation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk-Forge%2Fforge-listlayers-designautomation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk-Forge%2Fforge-listlayers-designautomation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk-Forge%2Fforge-listlayers-designautomation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Autodesk-Forge","download_url":"https://codeload.github.com/Autodesk-Forge/forge-listlayers-designautomation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Autodesk-Forge%2Fforge-listlayers-designautomation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267616785,"owners_count":24116164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T02:18:38.246Z","updated_at":"2025-07-29T01:37:04.417Z","avatar_url":"https://github.com/Autodesk-Forge.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ListLayers CRX Plug-in for Design Automation for AutoCAD Tutorial\n[![visual studio](https://img.shields.io/badge/Visual%20Studio-2017-yellowgreen.svg)](https://www.visualstudio.com/)\n[![AutoCAD](https://img.shields.io/badge/AutoCAD-2020-DF1B22.svg)](http://developer.autodesk.com/)\n[![License](https://img.shields.io/:license-mit-red.svg)](http://opensource.org/licenses/MIT)\n\n\n## Description\n\nThis repository contains C# project of a simple AutoCAD CRX plug-in for use with the [Design Automation for AutoCAD tutorial](https://forge.autodesk.com/en/docs/design-automation/v3/tutorials/autocad/). The plug-in implements an AutoCAD custom command named LISTLAYERS. This command extracts layer names from the current drawing and saves them to a text file.\n\n## Dependencies\n\n-  [Visual Studio](https://visualstudio.microsoft.com/downloads/). This sample was created in Visual Studio 2017.\n-  [AutoCAD .NET API](https://www.nuget.org/packages/AutoCAD.NET/23.1.0). This sample was built using the AutoCAD 2020 .NET API.\n\n## Build the project\n\n1. Open *command.sln* in Visual Studio.\n\n2. In Visual Studio, in the Solution Explorer, right-click the project name. A menu displays.\n\n3. Click **Manage NuGet Packages**. The Manage Packages for Solution dialog displays.\n\n4. Click **Restore**, which is on the top-right of the dialog. The packages are downloaded and restored.\n\n5. Build the solution. \n\n## Test the custom command\n\nWe recommend that you test the custom command on your local machine before you use it in Design Automation.\n\n1. Start AutoCAD. (This code sample was tested with AutoCAD 2020)\n\n2. Open a drawing file. You can use any of the drawing files from [the AutoCAD samples page](https://knowledge.autodesk.com/support/autocad/downloads/caas/downloads/content/autocad-sample-files.html).\n\n3. On the AutoCAD command line, enter NETLOAD.\n\n4. Select *command.dll* that you built in the previous section.\n\n5. On the AutoCAD command line, enter LISTLAYERS. If the plug-in executes as designed, a text file containing the layer names is generated. The file is typically saved in the folder that you most recently interacted with in AutoCAD.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautodesk-forge%2Fforge-listlayers-designautomation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautodesk-forge%2Fforge-listlayers-designautomation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautodesk-forge%2Fforge-listlayers-designautomation/lists"}