Giter Site home page Giter Site logo

karmacooper / library-dotnet-autocad.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from autodesk-forge/design.automation-.net-library

1.0 1.0 0.0 226 KB

Library with helper methods to perform tasks related to AutoCAD IO

License: MIT License

C# 100.00%

library-dotnet-autocad.io's Introduction

library-autocadio-dotnet

Library with helper methods to perform tasks related to AutoCAD IO

How to build :

  1. Open the solution file in Visual Studio 2012

  2. Add service reference to the following endpoint: https://developer.api.autodesk.com/autocad.io/v1

Picture

  1. Add the following NuGet packages to the project:

Picture

  1. Build the library project.

Following methods are provided by this library :

<member name="Autodesk.AcadIOUtils.SetupAutoCADIOContainer(System.String,System.String)">
	<summary>
	Does setup of AutoCAD IO. 
	This method will need to be invoked once before any other methods of this
	utility class can be invoked.
	</summary>
	<param name="autocadioclientid">AutoCAD IO Client ID - can be obtained from developer.autodesk.com</param>
	<param name="autocadioclientsecret">AutoCAD IO Client Secret - can be obtained from developer.autodesk.com</param>
</member>

<member name="Autodesk.AcadIOUtils.GetActivityDetails">
	<summary>
	Get the activity name and script associated with the activities
	</summary>
	<returns>Key Value pair of the activity names and script associated with each activity</returns>
</member>

<member name="Autodesk.AcadIOUtils.GetAppPackageDetails">
	<summary>
	Get the appPackage name and resource associated with the appPackages
	</summary>
	<returns>Key Value pair of the appPackage name and resource url associated with each appPackage</returns>
</member>

<member name="Autodesk.AcadIOUtils.CreateActivity(System.String,System.String)">
	<summary>
	Creates a new activity
	</summary>
	<param name="activityId">Unique name identifying the activity</param>
	<param name="script">AutoCAD Script that is associated with the activity</param>
	<returns>true if activity was created, false otherwise</returns>
</member>

<member name="Autodesk.AcadIOUtils.DeleteActivity(System.String)">
	<summary>
	Removes an existing activity
	</summary>
	<param name="activityId">Unique name identifying the activity to be removed. Activity with this name must already exist.</param>
	<returns>true if activity was removed, false otherwise</returns>
</member>

<member name="Autodesk.AcadIOUtils.UpdateActivity(System.String,System.String)">
	<summary>
	Updates an existing activity script
	</summary>
	<param name="activityId">Unique name identifying the activity to be updated. Activity with this name must already exist.</param>
	<param name="script">Script to replace the existing one associated with the activity</param>
	<returns>true if activity was updated, false otherwise</returns>
</member>

<member name="Autodesk.AcadIOUtils.SubmitWorkItem(System.String,System.String)">
	<summary>
	Creates a new WorkItem
	</summary>
	<param name="activityId">ActivityId that is associated with the new workItem</param>
	<param name="hostDwgS3Url">Url of the drawing after it has been uploaded to Amazon S3</param>
	<returns>true if WorkItem was created, false otherwise</returns>
</member>

<member name="Autodesk.AcadIOUtils.CreateAppPackageFromBundle(System.String,System.String)">
	<summary>
	Creates a new AppPackage 
	</summary>
	<param name="packageId">Unique name identifying the appPackage to be created. AppPackage must not already exist with the same name.</param>
	<param name="bundleFolderPath">Local folder path to the autoloader bundle. This path must contain the PackageContents.xml</param>
	<returns>true if appPackage was created, false otherwise</returns>
</member>

<member name="Autodesk.AcadIOUtils.CreateAppPackageFromZip(System.String,System.String)">
	<summary>
	Creates a new AppPackage
	</summary>
	<param name="packageId">Unique name identifying the appPackage to be created. AppPackage must not already exist with the same name.</param>
	<param name="packageZipFilePath">Local path to the autoloader bundle after it has been zipped.</param>
	<returns>true if appPackage was created, false otherwise</returns>
</member>

<member name="Autodesk.AcadIOUtils.LinkAppPackage2Activity(System.String,System.String)">
	<summary>
	Links an appPakage with an existing activity
	</summary>
	<param name="activityId">Unique name identifying the activity to be linked with an AppPackage. Activity with this name must already exist.</param>
	<param name="packageId">Unique name identifying the package to be linked with the activity. AppPackage with this name must already exist.</param>
	<returns>true if appPackage was linked with the activity, false otherwise</returns>
</member>

<member name="Autodesk.AcadIOUtils.DeletePackage(System.String)">
	<summary>
	Removes an existing appPackage
	</summary>
	<param name="activityId">Unique name identifying the appPackage to be removed. appPackage with this name must already exist.</param>
	<returns>true if appPackage was removed, false otherwise</returns>
</member>

<member name="Autodesk.GeneralUtils.FindListedCommands(System.String,System.Collections.Specialized.StringCollection@,System.Collections.Specialized.StringCollection@)">
	<summary>
	Identifies the commands exposed by a bundle represented by the "packageZipFilePath"
	</summary>
	<param name="packageZipFilePath">Path to the zip file of the bundle</param>
	<param name="localCommands">Returns the local commands identified from packagecontents.xml</param>
	<param name="globalCommands">Returns the global commands identified from packagecontents.xml</param>
</member>

<member name="Autodesk.GeneralUtils.UploadObject(System.String,System.String)">
	<summary>
	Uploads the contents from "filePath" to the url provided
	</summary>
	<param name="url">Upload url</param>
	<param name="filePath">Local file path</param>
	<returns>true if uploaded, false otherwise</returns>
</member>

<member name="Autodesk.GeneralUtils.Download(System.String,System.String@)">
	<summary>
	Downloads and saves the contents from the url in a local file
	</summary>
	<param name="url">Download url</param>
	<param name="localFilePath">Local file path to which the contents were saved</param>
	<returns>true if downloaded, false otherwise</returns>
</member>

<member name="Autodesk.GeneralUtils.UploadDrawingToS3(System.String)">
	<summary>
	Uploads the drawing to Amazon S3
	</summary>
	<param name="dwgFilePath"></param>
	<returns>Presigned Url of the uploaded drawing file in Amazon S3</returns>
</member>

<member name="Autodesk.GeneralUtils.S3BucketName">
	<summary>
	Bucket name in Amazon S3 to be used for uploading drawing
	</summary>
</member>

Examples on using this library can be found in the following samples :

https://github.com/Developer-Autodesk/workflow-winform-autocad.io

https://github.com/Developer-Autodesk/workflow-windowsservice-autocad.io

https://github.com/Developer-Autodesk/workflow-aspdotnet-autocad.io

library-dotnet-autocad.io's People

Stargazers

 avatar

Watchers

kaRma 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.