Skip to content

CADblokeCADforks/workflow-aspdotnet-autocad.io

 
 

Repository files navigation

workflow-aspdotnet-autocad.io

An ASP.Net Web application that uses AutoCAD IO and View&Data API to preview and create a closet drawing

As this sample includes a reference to "library-dotnet-autocad.io", please build that sample following the instruction provided in that sample. Here is the link : https://github.com/Developer-Autodesk/library-dotnet-autocad.io

Also, please ensure that the following custom activities have been created in AutoCAD IO. These activities can be created using the UI provided by “workflow-winform-autocad.io” sample if you wish. Here is the link to that sample : https://github.com/Developer-Autodesk/workflow-winform-autocad.io

The scripts used by the custom activities are provided below :

Picture

The script used by the CreateCloset activity makes use of a custom command named “CreateCloset”. This is part of CreateCloset.bundle included in this sample. Create an AppPackage using this bundle and link it to the CreateCloset activity while creating it.

After you have the initial setup ready, Open the AutoCADIODemoWebApp sample project in Visual Studio 2012 Add reference to AutoCADIOUtil library

In the project settings, provide the following details:

  • AutoCAD IO Client Id
  • AutoCAD IO Client Secret
  • Bucket name in your AWS S3 Storage

Picture

Open “Web.Config” file and provide AWS credentials. This will allow the sample project to access Amazon S3 storage in your AWS profile.

Picture

Open “UserSettings.cs” file and provide View & Data API credentials. This will allow the sample project to load the drawing in a viewer using Autodesk view & data API.

Also provide your email credentials. This will allow this web application to send the drawing as an attachment in an email.

Picture

Build the sample project Host the web app or run it locally. This will display the web page as shown in below screenshot :

Picture

Change the closet parameters as needed. Click on “Preview” button This generates a drawing with the closet model using AutoCAD IO and the drawing is loaded in the viewer as shown in below screenshot.

Picture

Click on “Send Email” button This generate a drawing with the closet model using AutoCAD IO and this drawing is emailed as an attachment to the email id provided. A screenshot of the email that is sent is shown below.

Picture

About

An ASP.Net Web application that uses AutoCAD IO and View&Data API to preview and create a closet drawing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 68.5%
  • JavaScript 16.7%
  • CSS 13.0%
  • C 1.6%
  • Classic ASP 0.2%