Giter Site home page Giter Site logo

stephensmitchell-forks / design.automation-windows-services-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from autodesk-forge/design.automation-windows-services-sample

0.0 2.0 0.0 4.11 MB

Plot drawing in a folder: Windows service sample to plot a drawing placed in a folder using Design Automation API

License: MIT License

C# 100.00%

design.automation-windows-services-sample's Introduction

Sample of Windows Service by Design Automation API

(Formely AutoCAD I/O)

.net odata ver visual studio License

Description

Windows service sample to plot a drawing placed in a folder to PDF using Design Automation API

Thumbnail

thumbnail

Industry Background

  • an utility to convert AutoCAD drawing to PDF automatically on the background.

Setup

Dependencies

Prerequisites

  1. Forge Account: Learn how to create a Forge Account, activate subscription and create an app at this tutorial. Make sure to select the service Design Automation.
  2. Make a note with the credentials (client id and client secret) of the app.
  3. as mentioned in Dependencies, ensure to build the auxiliary library project and get the binary dll.

Running locally

  1. Open the project. Restore the packages of the project by [NuGet](https://www.nuget.org/. The simplest way is
  • VS2012: Projects tab >> Enable NuGet Package Restore. Then right click the project>>"Manage NuGet Packages for Solution" >> "Restore" (top right of dialog)
  • VS2013/VS2015/2017: right click the project>>"Manage NuGet Packages for Solution" >> "Restore" (top right of dialog)
  1. Add other missing references and the library ofdesign.automation-.net-library
  2. In the project settings, provide the following details:
  • Path to a local folder in your system that contains AutoCAD drawings.
  • Design Automation Client Id
  • Design Automation Client Secret
  • Bucket name in your AWS S3 Storage Picture
  1. Open “App.Config” file and provide AWS credentials. This will allow the sample project to access S3 storage in your AWS profile. Picture
  2. Build the sample project
  3. Install the windows service using “installutil” in the command line of Visual Studio. To do this open Visual studio command prompt and run : installutil < path to PlotToPDFService.exe >
  4. Start the windows service. To do this from the Run windows, type services.msc and look for Plot2PDFService and start it. thumbnail
  5. You may need to switch to "[Log on local system account" of the service if you hit an error of "Access Denied". Picture
  6. Copy any drawing to the watched folder (C:\Temp by default). After some time, a PDF of the same name should be available in the watched folder. Picture

Known Issues

  • as of writing, Design Automation of Forge is released with version 2. Odata is used with .NET project. In futher version, OData might not be used.

Further Reading

License

These samples are licensed under the terms of the MIT License. Please see the LICENSE file for full details.

Written by

Balaji Ramamoorthy updated by Xiaodong Liang

design.automation-windows-services-sample's People

Contributors

augustogoncalves avatar jaylimboonkiat avatar kimekeunkyung avatar xiaodongliang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.