Skip to content

A .NET core console application to plot a AutoCAD drawing to a PDF file.

Notifications You must be signed in to change notification settings

MadhukarMoogala/FDA_PlotToPdf_v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FDA_PlotToPdf_v3

Data-Management Design-Automation netCore

Description

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

Working Gif

MyGif

Prerequisites

  1. Forge Account: Learn how to create a Forge Account, activate subscription and create an app at this tutorial.
  2. Visual Code: Visual Code (Windows or MacOS)
  3. ngrok: Routing tool, download here
  4. .netcore 3.1: dotnet core SDK

Instructions To Build

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"
  }
}

Instructions To Debug

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": ""
      }
    }
  }
}

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.

Written by

Madhukar Moogala, Forge Partner Development @galakar

About

A .NET core console application to plot a AutoCAD drawing to a PDF file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages