Skip to content

szilvaa/variadic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#AutoCAD IO V2 API C# samples -- Create custom Activity with network access

.net odata ver License

##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:

  1. 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.
  2. 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.

Questions

Please post your question at our forum.

License

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

##Written by

Albert Szilvasy

About

AutoCAD.IO sample

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages