A CLI utility based on .NET Core technology to print a AutoCAD drawing in to a pdf.
Uses Forge Design Automation V3
This sample uses Shared Activity AutoCAD.PlotToPDF+prod
- Forge Account: Learn how to create a Forge Account, activate subscription and create an app at this tutorial.
- Visual Code: Visual Code (Windows or MacOS)
- ngrok: Routing tool, download here
- .netcore 3.1: dotnet core SDK
git clone https://github.com/MadhukarMoogala/FDA_PlotToPdf_v3.git
cd FDA_PlotToPdf_v3\client
touch appsettings.users.json
dotnet build
dotnet run -i "<input Drawing>" -o "<outputFolder>"
appsettings.users.json
{
"Forge": {
"ClientId": "Your ForgeClientId",
"ClientSecret": "Your ForgeClientSecret"
}
}
notepad Properties\launchSettings.json
launchsettings.json
{
"profiles": {
"ClientV3": {
"commandName": "Project",
"commandLineArgs": "-i \"inputs\\blocks_and_tables_-_metric.dwg\" -o \"outputs\"",
"workingDirectory": "D:\\Work\\GithubRepos\\FDA_PlotToPdf_v3\\Client",
"environmentVariables": {
"FORGE_CLIENT_SECRET": "",
"FORGE_CLIENT_ID": ""
}
}
}
}
This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.
Madhukar Moogala, Forge Partner Development @galakar