CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 2906 

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

100% *  CAD 
4.12.2011    4223x  
Comments   Tell a friend
applies to: AutoCAD 2012 ·

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

Back   All CAD Tips All CAD tips&tricks

How to change a linetype in AutoCAD WS? « | » Add dynamic text frame to any text.

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   

Simply link AutoCAD LT blocks to Excel table data.
Excellink LT 2006 More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.