Coder Social home page Coder Social logo

forge-explodetext's Introduction

Forge-ExplodeText

OAuth2 DesignAutomation Shippable Shippable

Setup

For using this sample, you need an Autodesk developer credentials. Visit the Forge Developer Portal, sign up for an account, then create an app that uses Design Automation. For this new app, use http://localhost:3000/api/forge/callback/oauth as Callback URL [This is option, we are not developing UI], although is not used on 2-legged flow. Finally take note of the Client ID and Client Secret.

Run Locally

Development Enviroment VS 2017 Community or Professional or Ultimate. .NET framework 4.6.

Launch VS 2017 Developer Command from start menu
git clone https://github.com/MadhukarMoogala/Forge-ExplodeText.git
cd Forge-ExplodeText
devenv .\FDA.ExplodeText\FDA.ExplodeText.sln

There is only a single variable drawingResource that needs to be customized to provide your own drawing with DBTEXT entities.

Please ensure provided drawing resource URL should be accessible by HTTP. This sample fetches drawing resource from Amazon S3 Bucket.

Open the app.config file and adjust the Forge Client ID & Secret. If you plan to deploy to Appharbor, configure the variables (no need to change this web.config file).

<appSettings>
  <add key="FORGE_CLIENT_ID" value="" />
  <add key="FORGE_CLIENT_SECRET" value="" />
</appSettings>

License

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

Preview

EXPTXT1.gif

forge-explodetext's People

Contributors

madhukarmoogala avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

forge-explodetext's Issues

"eInvalidInput" error when using the AutoCad 2019 version of AccoreConsole

We are running AutoCad 2018 currently but will be moving to 2019 soon. When I run the same script and drawing flags with the AutoCad 2019 version of AccoreConsole I get the error "eInvalidInput" on the line shown below. Are you able to reproduce this?

ed.Command("_.WMFOUT", tempFile, "", "");

Null value for the variable wmfBlock on line 150

I have an issue running the EXPTXT command from accoreconsole. If I run it from the regular AutoCad Gui it works but from accoreconsole I get a null value for the variable wmfBlock on line 150. The entity from "SelectLastEnt" is a Polyline not a BlockReference. Any Ideas?
Thanks

var wmfBlock = tr.GetObject(ed.SelectLastEnt(), OpenMode.ForWrite) as BlockReference;

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.