Tuesday, December 25, 2012

Print pdf with sheet number and revision - FREE Revit addin


This page is the manual for PRINT PDF WITH SHEET NUMBER AND REVISION Revit 2012 /2013 add-in. The add-in / plug-in can be download at:

64 bit revit 2012/2013
http://pan.baidu.com/share/link?shareid=172850&uk=1259096542
https://docs.google.com/file/d/0B2dWucciRgDPbGFRcWxCNENxUms/edit?usp=sharing
32 bit revit 2012/2013
http://pan.baidu.com/share/link?shareid=172852&uk=1259096542
installation: extract and copy files into:
    • In a non-user specific location
      • For Windows XP - C:\Documents and Settings\All Users\Application Data\Autodesk\Revit\Addins\2012\
      • For Vista/Windows 7 - C:\ProgramData\Autodesk\Revit\Addins\2012\
        -- OR --
    • In a user specific location
        • For Windows XP - C:\Documents and Settings\<user>\Application Data\Autodesk\Revit\Addins\2012\
        • For Vista/Windows 7 - C:\Users\<user>\AppData\Roaming\Autodesk\Revit\Addins\2012\
in windows 7 you may need to unblock the dll by right clicking and select security -> unblock

How to use.

1. click inject default parameters to add default sheet parameters
2. create a sheet schedule and customize your pdf names
3. create a sheetset to put the sheets for printing there
4. change pdf setting as you want
5. save the setting so you can load it later
6. click print
After changing any printer settings, you need to restart revit.
This addin \ plug-in is free. If you like it please donate by click the link below.


Sunday, December 16, 2012

HOW TO INSTALL / COPY REVIT APPLICATION MACRO

Revit application macro modules usually saved in:
C:\ProgramData\Autodesk\Revit\Macros\2012\Architecture\VstaMacros\AppHookup\

to install application macros, you just need to copy your application macro module folder under it. You can also duplicate macro modules from this folder and copy onto different machines. The only disadvantage is macro contains source code. if you don't want to share source code with others. try to build add on or plug-ins.

revit 2012 Application macro set up tutorials

Revit application macro is easy to develop using vsta. And easy to debug. If you are not aiming to sell your program, and not care about sharing the source code, it is a good and time saving tool. To deploy it is as easy as copying you module file under your revit.
The main tricks for setting up revit application Macro is reference passing. In ThisApplication.cs , the module class, you need to pass 'this',which is the running application itself to your macro class.

In your macro class, you need to define 3 variables,
1. m_app point to running application
2. m_uidoc point to active uidocument , you can use it to get user selection, etc.
3. m_doc point to current active document, the opening revit file you want to modify.

now is the form class, the user interface to take user input if necessary. it is created as an object inside your macro class. just make the controls (elements) public for easy access from macro class. for example:
mainFrame.Textbox1.Text will return you the text input from textbox1(a text field)
also when create this form in macro class, you need to pass macro class itself to it using 'this' key word. the corresponding variable in form class is m_dataBuffer. if you want to access macro class, you can call m_dataBuffer.methodYouWant().

overall, you need 3 files, ThisApplication.cs is created for you by macro manager. ClassMacro.cs for put your business logic(thing to do, to interactive with revit file), Form.cs to interactive with user. put classmacro and form file in a folder for easy management in future.

 below are video tutorials: