CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 9437
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 8353:

   
Question CAD 
 %  platform  category 
Q - question

Control your AutoCAD remotely via commands issued over Twitter.

A - answer The ACADtweet utility adds a Twitter interface to AutoCAD (posting and reading tweets).

With a little add-on tool you can use it to receive remote commands submitted via Twitter. Download TwittControl.lsp from Download and load it with APPLOAD. Make sure you have installed ACADtweet (also from Download or from the AutoCAD App Store). Login to your Twitter account with the TWITTLOGIN command (used just for the API interface here).

Now start the TWITTCONTROL command and specify the feed name used for your command tweets (or accept our sample feed "ACcontrol1"). Specify the prefix (a "password") used to identify (distinguish) the "command" tweets from other standard tweets (default: #Command:).

Now AutoCAD enters an infinite loop waiting for any tweets on the specified Twitter channel. All tweets conforming the specified prefix will be read and executed verbatim, as if they were entered (typed) via your keyboard.

You can use semicolons in your tweets - they will be translated to CRLF ([Enter] key). You can exit the loop by pressing ESC.

See the sample video:

See the LSP source code of TwittControl for any customizations. Never modify the code for using API calls more frequently than about 1 in 10 seconds (Twitter limitation). Never connect your AutoCAD to a foreign twitter feed - it will be open to potentially dangerous commands.

ACAD2012
100% *  CAD 
4.12.2011    13089×  
Prices - CAD eShop:
applies to: AutoCAD 2012 ·

See also:
Tip 7634:Linking AutoCAD and Twitter.
Tip 6892:Send Twitter messages directly from AutoCAD.


Back   All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
DwgTextTranslator translates a series of drawings from one language to another using MS Access.
Download a fully functional trial version.


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist