#AutoCAD IO V2 API C# samples -- Create custom Activity with network access
##Description This is C# sample demonstrates a custom activity that accesses a relational database while processing a drawing. Your code running on AutoCAD.IO cannot normally access the network since it runs in sandbox. However, AutoCAD.IO now provides an experimental feature that allows you to access predefined network resources. This is how it works:
- Your Activity defines one of input arguments as 'variadic'. A 'variadic' argument is like any other except the AutoCAD.IO infrastructure does not try to use it prior to starting your code.
- Your code uses the variadic argument by calling the acesHttpOperation function. The AutoCAD.IO infrastructure then makes the HTTP call on your behalf and provides the results back to you.
Note that your can only access HTTP resources on the network. This means, for example, you cannot make TCP/IP calls to a SQL database. You must wrap the database with a REST API. This sample does not show you how to do the wrapping but there are lot of good resources on the internet. One helpful search keyword is 'Odata'.
##Dependencies
Visual Studio 2013.
##Setup/Usage Instructions
Please refer to AutoCAD.IO V2 API documentation.
Please post your question at our forum.
These samples are licensed under the terms of the MIT License. Please see the LICENSE file for full details.
##Written by
Albert Szilvasy