Back in 2015 when I started learning programing macros in SharpDevelop in Revit to change different parameter’s value like Sheet names, Room numbers or custom Parameters, I decided to find a time saving solution to something more serious.
In our office there was a need to create about 35 Sheet Sets for printing purposes from few hundreds of drawings in our project. Sheets created in our project were divided to series. Because we wanted to have more descriptive information in project browser then just a simple Sheet number we added a custom Project Parameter to Sheets called “Drawing Sheet Series”. (i.e. Sheets begging with number 20 had this parameter set to “(20) General Arrangment”)
This way all the sheets in our project were divided.
As a beginner to start with this task I needed some help. I didn’t know how to alter Revit print settings. It wasn’t easy to understand Revit API help file but I found a useful macro at Boos Your BIM web page (link is hear) which is creating a Sheet Set from Sheets containing in their number specific letters. In my case I needed to do it for all Sheets therefor changes were required. Additionally because it was written in C# and I was more fluent in VB.Net I decided to translate it.
Below you can find a final macro prepared for Revit 2015:
Continue reading Revit – VB.Net Macro to make Print (Sheet) Sets from Sheet’s parameter.
I encountered some problems while trying to compile Revit Lookup 2016 using the procedure described on the archi-lab.net page for Revit 2014. It didn’t work. SharpDevelop couldn’t build solution.
This was the output information:
Instead of reading it I tried to download the compiled version 2016 from the Internet. Kindly Troy Gates shares it on his blog – Revit Coaster. But it didn’t work either. I received this error.
(here is also a compiled Revit Lookup 2015 at Revit Coaster)
Then I tried again to compile it using SharopDevelop but his time I had read the Output window which was showing what is wrong.
The problem of course was with the path so I tried to locate this path. I found it under Properties by clicking at Revit Lookup in Project Panel.
It can also be accessed through the top menu Project > Project Options..
The wrong path was under Compiling tab in Output Path here:
I changed it to the existing folder in …bin\Debug\ and all went fine.
SharpDevelope nicely compiled the project and put two files RevitLookup.addin and RevitLookup.dll automatically in: C:\Users\UserName\AppData\Roaming\Autodesk\Revit\Addins\2016
Revit started with Revit lookup 2016 already installed.
The complete procedure to Install Revit Lookup 2016 looks like this:
- Download the latest Revit Lookup 2016 from https://github.com/jeremytammik/RevitLookup/releases
- Open SharpDevelop. It should be installed automatically with revit 2016. You can find the SharpDevelop.exe file in here: C:\Program Files\Autodesk\Revit 2016\SDA\bin
- Drag and drop RevitLookup.csproj to the Projects Panel.
- Remove existing References from Projects Panel to RevitAPI and RevitAPIUI.
- Add references to the RevitAPI.dll and RevitAPIUI.dll that can be found in the main Revit folder at: C:\Program Files\Autodesk\Revit 2016
Right click on References:Go to .NET Assembly Browser and click on the Browse… button.Go to the C:\Program Files\Autodesk\Revit 2016 location and add the RevitAPI.dll and RevitAPIUI.dll file.
- Amend the Output Path in menu Project >Project Options.. > Compiling to any existing folderif you have an error like me.
- Hit Build Solutions button and watch for errors. If it says that it was Build Successfully then you are good to go.The RevitLookup.addin and RevitLookup.dll will be saved in: C:\Users\Name\AppData\Roaming\Autodesk\Revit\Addins\2016
If you get bunch of warnings with it, its OK as long as its compiled successfully. I didn’t have any.
If you want to use ProgramData instead, copy RevitLookup.addin and RevitLookup.dll to:
C:\ProgramData\Autodesk\Revit\Addins\2016 and remove them from:
- Open Revit and check if Lookup 2016 is in the Add-Ins tab.
I hope I helped.
This command is useful when you need to create many Viewports in a Layout and see all of them. Why? By default you can see only about 20 Viewports.
Type MAXACTVP and you will be able to maximize it to 64.
Below you can see the compression of the viewport with this command set to 10 and to 64.
The origin of this tip is in the list of layers which includes all of the Xref layers (from externally referenced files) as you can see below:
My problem occurred when trying to find a specific layer amongst all of the Xref layers and other layers in my current drawing. I dont need to see all of the Xref layers because i do not usually amend them.
The expandable list of layers shows the same layers as a Layer Manager. I create a filter in the Layer Manager in order to hide them and make the list clearer to browse.
By default there is no filter that shows only the layers from the current drawing (I think there should be) but there is a way to create it.
This is what you need to type in the field Name in Filter definition to filter only current drawing layers:
I called this filter of course Current Drawing Layers.
To find out how to filter a layer list using different symbols please check this link:
Filter and Sort the List of Layers
My advice is to create this filter and other useful filters already in your template file.
Image below shows my filters:
One thing to remember about attributes – attributes which are not inside the block are not visible when attached in an external reference.
There is ATTDISP command which allows to change visibility of attributes which are also in blocks but it still doesn’t work when attributes are xrefed.If there is a way to show them in xrefs please let me know. Thanks.
Advanced Painter is a free alternative to other commercial plugins like Forest Pack or MultiScatter for scattering objects on surfaces. It doesn’t have so many options to scatter objects, but similar to MutiScatter it allow to drop objects on surface of other objects. This action resemble painting.
To install the plugin start Max, then go to MaxScript>Run Script … and choose the extracted file advpainter_1.6.0.mzp. A dialog box will inform you that installation is successful.
You may need to be logged as an administrator of your computer.
(I’ve also “Run as administrator” 3DS Max )
You can also create Advanced Painter shortcut icon to your toolbar (main menu bar, or quadmenu). The video below can help you to install Advanced Painter and help familiarise with its futures. (The way of installing it using drag and drop technique didn’t work for me)
New version for download is possible here: AdvPainter v1.6.0(x32/x64)
You can also try to install this version: advpainter_1.6.0_max2013.mzp for 3DS Max 2013 up [only]. It works fine with my 3DS Max 2014.
You can also learn how to use this plugin from tutorials e.g.
at CGWORKSHOP or here.
Advanced Painter Icons – here you can download icons I have quickly created for this plugin. You can check here how to install them.
After years of using AutoCAD one can still discover something new and useful in this program. This happens to me every now and then.
CHSPACE command allows on a layout to transfer selected objects between model space and paper space and vice versa. It is in AutoCAD since version 2007.
Here’s a simple step-by step guide how to use this command:
- From Paper Space, select the objects that you want to move through a viewport.
- Type the CHSPACE command, or select it from the Modify menu.
- Next, the command needs to know which viewport you want to “push” the objects through. This will determine how the objects are scaled and their final positions in Model Space. Bear in mind that if there is only one viewport in the active Paper Space layout, this will be a automatically selected, and this step will be skipped.
Here is an example when this was useful for me to move dimensions and annotations from Model Space do Paper Space. The scale of the objects was automatically adjusted to the Paper Space.
This is the view in the Model Space.
This is the view in the Paper Space. I have moved the dimension and the leader annotation to position them outside the viewports. Additionally I have override the dimension text to represent the real Model Space dimension.
This command could be a real tie saver. I’m sure you will find you own ways how to use this command. You can find some more examples e.g. here or here. Good luck.
Most of us in Europe work in metric units. We usually start a new file and it’s already preconfigured but sometimes we need to amend something in the file received from someone else and we encounter Imperial units like on the image below:
Of course changing the UNITS doesn’t help.
On the list of available scales which we can add still there is no metric scales:
Only one thing can be done in this situation – command MEASUREMENT need to be entered and its value changed between 1 and 0 (or from 0 to 1 for opposite problem) Command MEASUREMENT is responsible for the file internal units settings where values mean: 0 – Imperial file system 1 – Metric file system
Recently we had this situation in my office so I hope this tip may be helpful to you in the future.
Parametric design gets recently more and more popular. It gives not known previously endless possibilities for designers. More software starts to incorporate parametric functions or generative components which give ability to design parametric objects or structures. One of the most popular is Grasshopper for Rhino.
“Grasshopper® is a graphical algorithm editor tightly integrated with Rhino’s 3-D modeling tools.“
The best way to learn it (to see what it does) is to watch the main tutorial from the Gasshopper web page. In 2h time it shows various examples how to use it in practice. Take a look.
David Rutten’s Introduction to Grasshopper Webinar from Rhino Tutorials on Vimeo.
Here it is – preview and features of a new upcoming version of VRay 3.0