How to open autocad and draw shapes? - autocad

I have a question.I have an application that users can draw various shapes on it.
I'd like to have a button so when it is clicked autocad opens and my shapes appear in autocad.how can I do this?
thanks in advance.

You need to save your shapes in dwg or dxf format. If you're already using ObjectARX it should be easy, if not, you might want to read about it. You can then open the file normally or run Autocad with the file name as a parameter to open it.

You have to write an AutoCAD plugin by using AutoCAD.Net SDK instead of writing application out of AutoCAD.
AutoCAD has no feature like office application for controlling it like Microsoft.Office.Interop for accessing from out of it.

Related

How to compare the layout of pdf files programmatically?

It is possible to rip the text from pdf and comapre it. And here i need to compare if the layout of the pdf with another pdf file. Is it possible programmatically? There are third party tools to do that, but is it available for testing using selenium or any programming language?
I have gone through google, but couldn't find a solid solution for this yet? Any help appreciated.
With PDF Box of apache you should be among other things be able to extract the text from existing PDF documents.
ps: you probably have to create a custom program in jave to extract and compare and invoke it from selinium.

How can I load an object file with a scene in OpenSceneGraph using Visual Studio?

I am new in osg. I have installed VisualStudio with all the plugins for OSG. I have alreay tried some examples.
Now I want to download a scene and navigate inside it.
Can anyone help me???
Thnx a lot!!!
Look at the source code to the examples. They almost all load a model from the commandline argument, or from a fixed filename (look for osgDB::readNodeFile()) and set up a Viewer with a Manipulator to navigate around the scene.
Also, questions like this are much better suited for the osg users mailing list.
If you've downloaded the prebuilts, you just need to run osgviewer, or in Windows drag your model onto %OSG_ROOT%\bin\osgviewer.exe, and you should be able to use the mouse to manipulate the model. Hit "h" in the osgviewer window to see the help screen, which shows you how to switch modes, etc.

Can I save a DMBL layout as a jpeg/png?

Is it possible to save the layout diagram from a DBML file as a jpeg/png or any other image format?
A manager wants to know what we are storing in our database and the print out wasn't enough he wants an electronic version.
I know I can use a screen-shot but wonder if there are any other options? I've just thought about printing to a PDF printer as well. Still would be nice if there was a save to PNG
Thanks
If you are a MSOffice user, you can use Microsoft OneNote (copy diagram over there and then export it to a PNG), or you can use Snipping Tool, which is basically a nice tool for taking screen shots out of portions of the screen.
In the end I just used a PDF printer which worked quite nicely.

Inject Open XML into an Open PowerPoint Presentation

I'm looking for a way to inject PresentationML and/or DrawingML into an open PowerPoint 2007/2010 presentation using the Open XML SDK or just System.IO.Packaging. There is an article on doing this with Word, but in that example it is using the Range.XML routine in Word's object model, which I cannot find an equivalant for in PowerPoint's object model.
The reason I'm looking to do this is if I have an item on it that the PowerPoint client does not support editing of but that Open XML does (and as a result, PowerPoint will display it). I want to set this myself via a managed-addin (VSTO) on the open presentation. An example would be the underline of text (not that I'm looking for this, but it is an example) - in PowerPoint, you cannot make the underline of text a picture <a:blip/>, but in Open XML you can.
Does anyone know how to do this?
I am using both OpenXML SDK 2 and the Object Model to process presentations.
What I do, simplistic as it sounds, is to save the presentation, close it, perform all the XML modifications I need using OpenXML SDK, and then load the presentation back and continue with the Object Model.
Nope, according to Microsoft support: http://www.ureader.com/msg/10972430.aspx

Access Text Boxes (in a Keynote slide) in AppleScript

Need some help to figure out how to access Text Boxes inside a slide in Keynote with Applescript. I tried to use ASDictionary but I couldn't find anything that would resemble a text box object. I fear that they are not scriptable in Keynote, but perhaps I can access them through Applescript Cocoa bridge? Any thoughts? Thanks!
If (and only if) Keynote doesn't provide access to objects on a slide via AppleScript, then you should do two things:
File an enhancement request at https://bugreport.apple.com/ .
Try examining the Keynote document directly by parsing its XML.
Keynote's XML document format is not documented, as far as I know, but at least you can access it. You just have to be careful about the format changing out from under you.

Resources