Skip to main content

Posts

Showing posts from 2011

VBA Program for STAAD to CAD

Well hello all, The image above is the UI of my application that extracts data from Staad.Pro and places it in AutoCAD environment. Currently it supports only the hot rolled I-sections of all the libraries in Staad environment. Tools required are .... 1. Staad.Pro V8i or 2007 2. AutoCAD 2009 To use this following are the steps... In staad ----> 1. Open staad file with model of the structure... 2. Go to Tools and then use cut section for cutting a required frame line that is to be drawn in AutoCAD 3.Select All the members that are there in the newly cut view.....make sure that nothing else is selected in other views.... 4. Done now just minimize the Staad.Pro Environment In AutoCAD----> 5. After minimizing the Staad.Pro just run the STAAD2CAD utility and select the plane in which the structural members were cut i.e. XZ plane or XY plane or ZY plane.... 6. keep the scale to be 1000 if you want the natural scale 7. adjust text height, select various layers to be a...

Getting Thumbnail of images, Pdfs and DWG files

Its very much easy to get the thumbnail of the files supporting the thumbnail view like image files, Dwg files, pdf files........many programs need such kind of thumbnails. in VBA or VB6 projects you just need to add a simple control and set the filepath and thats it it is done!!!....i explain it below.... 5 easy steps to go so be patient.... :) 1. Go to Toolbox where general controls lie like textbox, label, button etc..... 2. right click over toolbox and go to Components........... 3. Select the following type library from controls.......if its not there in list go to browse and add it from system32 folder........add webvw.dll and u ll see this control in list....... if using VBA u might have this library alreay loaded and named " thmb ctrl "........ 4. u ll see a blank white control added to your toolbox..... 5. Just put that control on the form and in the code set thumbctl1.displayFile = "path of the file" 5. you could use common dialog to get th...