Visualizzazione post con etichetta update. Mostra tutti i post
Visualizzazione post con etichetta update. Mostra tutti i post

venerdì, luglio 18, 2014

View Depth Override External Command - Bugs Fixed



You can downlaod a zip file containing the .DLL and the .Addin manifest for the external command.
I've to thank a reader for pointing out some issues with the planting category (because previous version didn't take into account categories with no material quantities just like planting).
Also there was another issue with 2D views because the override was performed on a polar distance like in 3D views, now it's been fixed using the distance between the center of the bounding box of an object and the plane of the view.
I discovered that CGS has copied my first idea, and that was basically the goal of me starting to publish the code: to make companies develop better add-ins, but unfortunately this is not the case.
Now you can choose to pay a subscription to them for this tool (along with many others of course), which by the way doesn't work on perspective views while mine does, so why don't use just mine instead of waisting money? please if you're happy with my code show me some gratitude Paying What You Want via PayPal to:

puntorevit@gmail.com

*UPDATE 2015
The command for Revit 2015 works just fine, there's still need for the .addin to reside in the correct folder and the paths inside the file to be eventually updated.
Anyway the addin file should be copied in here:

C:\ProgramData\Autodesk\Revit\Addins\2015

here's the addin file with paths updated for 2015 version.

mercoledì, luglio 02, 2014

Hatch to Room 2 - Update



This version of the code takes into account also overlapping arcs, so no more warnings of overlapping objects should pop up when you run the macro (like in previous versions).
To determine if two arcs are overlapping I used the Project() method which projects a XYZ point onto a curve and then I measured the distance between the projected point and the original point (which is one end of the other curve). If the distance is equal to zero (well, a rounded distance at the nineth decimal digit because you never know...), then the curves overlap.
I managed to reverse one of the two arcs to get the proper result which is the shortest arc passing through all the vertices of the two orginal arcs, because the algorythm works if the curves are equally oriented (in other words they share the same normal).

You can find the source here. If you are happy with my code please show me some gratitude Paying What You Want via PayPal to:

puntorevit@gmail.com

lunedì, giugno 02, 2014

Fire Rating Lines 2015 - Update



Here's an update of the macro for Revit 2015 containing also comments in the code to change the behavior of the tagging part.
For the record, I had to change just a line of code (2014 release should work anyway but I've updated the code just in case).

Here's the source code and here's the tag family. In order to make the macro work the family tag needs to be loaded in the project before you try to run the macro, just like in the previous version.

For those who are interested here's the new line of code, Family.Symbols has been deprecated so:

FamilySymbol tagtype=doc.GetElement(firetag.GetFamilySymbolIds().FirstOrDefault()) as FamilySymbol;

If you're happy with my code, please Pay What You Want via PayPal to:

puntorevit@gmail.com