This is Jeremy Tammik's Typepad Profile.
Join Typepad and start following Jeremy Tammik's activity
Join Now!
Already a member? Sign In
Jeremy Tammik
Switzerland
Interests: rock climbing
Recent Activity
Image
An add-in will often need to retrieve the elements that it just created for further processing. Frequently, the Revit API method used to create them will return their element ids. Sometimes, that is not the case. Now this topic arose again in a couple of cases and brought some other aspects to mind – Using the element lister – Consecutive element ids – Retrieving recently added elements – AEC job openings in Munich and elsewhere... Continue reading
Posted 4 days ago at The Building Coder
Image
Let's highlight a few recent threads from the Revit API discussion forum. Before getting to those, a quick pointer to the DevDays Online recording from last week – DevDays online presentations on Revit API updates – External command with ribbon button sample – RevitAddinKeyNoteSystem keynote manager – REX extensions versus Revit add-ins – Reloading Revit links from user selected folder – Converting all parameter values to metric... Continue reading
Posted Feb 12, 2018 at The Building Coder
Image
Questions on how to use NewFamilySymbolProfile have come up a couple of times in the Revit API discussion forum. The short answer is: retrieve the family symbol from the profile family, then call the creation application NewFamilySymbolProfile method. I implemented a new sample add-in for you to demonstrate the steps using the Profiles_L-Angles.rfa profile family... Continue reading
Posted Feb 11, 2018 at The Building Coder
Image
Some insight on the use of the MergedViews property provided by the DGN, DWG and DWG export options classes and other ideas to export multiple views into a single DWG file – Question: I want to combine and export multiple views into one single DWG file. I set the option MergedViews, but the code still generates multiple DWG files for the views... Continue reading
Posted Feb 8, 2018 at The Building Coder
Image
Here is an interesting code snippet illustrating the use of BRepBuilder and Boolean operations to generate a DirectShape. It might come in useful somewhere, even though this approach is non-optimal to address the task at hand, as explained below... Continue reading
Posted Feb 6, 2018 at The Building Coder
Image
I listed several possible approaches to trigger a refresh of an element's graphics display. Here is another one: Applying element rotation to adjust and fix conduit end... Continue reading
Posted Feb 2, 2018 at The Building Coder
Image
Konrads Samulis shared a very nice solution to retrieve the crop box for a given view using a highly efficient parameter filter in his comment on rotating a plan view. In digging up this old thread, I found something quite curious in the API in 18.1, that I'm not sure was there before. The method of using a temporary transaction (with rollback) to find the element id of the crop box was taking a very long time on a large model, so I did a bit of digging to see how I could improve it. I noticed that in the built-in parameter ID_PARAM of the crop box contains the element id of the view it's in. E.g., the crop box 'points' to the id of the view it is in using ID_PARAM... Continue reading
Posted Feb 1, 2018 at The Building Coder
Image
Is there a way to return failure information to your main command when creating a transaction? My program does some error logging and creates an error report at the end, and I'd like to include some information from specific types of Revit failures (i.e., include if multiple instances were created in the same place). Yes, you can use the PreprocessFailures method argument failuresAccessor to review and store failure message information for later use... Continue reading
Posted Feb 1, 2018 at The Building Coder
Image
Question: I am trying to create a swept blend geometry and assign it to a DirectShape element. The initial code threw an exception when calling the GeometryCreationUtilities CreateSweptBlendGeometry method. How can I fix this? Answer: The path parameters assume that they should be normalised or that the curve has a range of parameterisation from 0 to 1... Continue reading
Posted Jan 25, 2018 at The Building Coder
Image
Christian Thieme of the Chair of Computational Modeling and Simulation at TUM, the Technical University Munich, shares his tools connecting Revit to the MomenTUM agent-based pedestrian simulation framework – Giving something back to the community – Project overview – Export workflow – Import and display results workflow – Transformation from XYZ to UV... Continue reading
Posted Jan 18, 2018 at The Building Coder
Image
Quick notes on the best speakers at the last event in Las Vegas, and your chance to become one of them at the next in London – Best AU Speakers in Las Vegas 2017 – CFP for Autodesk University London 2018... Continue reading
Posted Jan 17, 2018 at The Building Coder
Image
Here are some of the topics I dealt with in the last couple of days – CMake and YoAudio – AutoCAD and Revit SDK Access and Content – Determining AreaLoad direction and value from its force vectors – ExportCncFab 2018... Continue reading
Posted Jan 16, 2018 at The Building Coder
Image
Revitalizer shared two important hints: a performance issue using ElementTransformUtils and a problem reporting mechanism built into the TessellatedShapeBuilderResult method GetIssuesForFaceSet. First, though, let's highlight an even more important upcoming event, the series of DevDays online webinars – Register now for Autodesk DevDays online webinars – Avoid using ElementTransformUtils for batches – Finding cause of DirectShape generation problem... Continue reading
Posted Jan 10, 2018 at The Building Coder
Image
Revitalizer shared two important hints: a performance issue using ElementTransformUtils and a problem reporting mechanism built into the TessellatedShapeBuilderResult method GetIssuesForFaceSet. First, though, let's highlight an even more important upcoming event, the series of DevDays online webinars – Register now for Autodesk DevDays online webinars – Avoid using ElementTransformUtils for batches – Finding cause of DirectShape generation problem... Continue reading
Posted Jan 10, 2018 at The Building Coder
Image
I'll begin the new year by discussing a bunch of topics addressing various aspects of DirectShape elements – Updated DirectShapeFromFace – Improve loft form creation speed using DirectShape – Create DirectShape instead of conceptual mass – Create surface from face – Create DirectShape from solid – Control DirectShape colour and material – Improve family performance suppressing DirectShape generation – Create DirectShape from room... Continue reading
Posted Jan 10, 2018 at The Building Coder
Image
Time to wind down for the year... Here are some last things to share before signing off – Magic number for schedule instance bounding box margin – Using PostCommand with the Windows Automation API – Programmer jokes – Season's greetings... Continue reading
Posted Dec 22, 2017 at The Building Coder
Image
I bring up two recurring topics, fresh every time around – Project identifier – Fuzzy comparison versus exact arithmetic for curve intersection... Continue reading
Posted Dec 21, 2017 at The Building Coder
Image
Looking at setting the SetAllowVaryBetweenGroups flag on a shared parameter; is there any way to set can vary by group instance (what I need) the default for API-created bindings? ... Continue reading
Posted Dec 20, 2017 at The Building Coder
Image
Two recent Revit MEP related cases brought up some new information on the pipe K factor table and custom calculations for pipe fittings, the Forge DevCon class recordings are now available, and I discovered Konrad Sobon's wonderful archi+lab Revit API blog, which helps resolve an installation and setup issue – Pipe K factor table – Custom K factor calculation for pipe fittings – Dynamo code to change loss coefficient – Forge DevCon 2017 class recordings – Archi+Lab – Revit add-in installer and buttons... Continue reading
Posted Dec 13, 2017 at The Building Coder
Image
I'm trying to retrieve connected framing elements through the API. My end goal is to select a beam and retrieve the element id of the elements its ends are framing into. I have been able to do this by checking location intersection of all other beams, but this scales by n^2 based on the number of beams for the check. I read the article on finding connected structural elements, but I'm confused on the actual implementation of it. Has anybody come across a working example showing how to call GetAnalyticalModelSupports? ... Continue reading
Posted Dec 12, 2017 at The Building Coder
Image
Let's discuss the Revit API enhancements added since the initial release of Revit 2018 – Revit 2018.2 Product Update and Resolved API Issues – Revit 2018.2 SDK Update – Major Additions to the Revit 2018.1 API – Material API additions – Geometry API additions – BrowserOrganization API additions – IFC additions – Rebar API additions – Major Additions to the Revit 2018.2 API – Fabrication API additions... Continue reading
Posted Dec 11, 2017 at The Building Coder
Image
I went on my first ski tour this season... lots of interesting issues in the Revit API discussion forum... a Japanese case on programmatically generating a mass floor, enabling us to mention yet another hitherto unmentioned Revit API usility class, MassInstanceUtils... Please tell me if a method exists to generate a mass floor using the API... Continue reading
Posted Dec 5, 2017 at The Building Coder
Image
Alexander Ignatovich shares an exceedingly elegant solution for automatic wall creation, illustrating a number of important concepts and implementing the following functionality very succinctly indeed – Retrieve all the cube family instances – Retrieve their height parameter value – Retrieve their solids making use of the .NET yield operator – Extract their horizontal outline contours using an ExtrusionAnalyzer – Create walls along each contour curve segment – Place a door family instance at the midpoint of each wall... Continue reading
Posted Nov 30, 2017 at The Building Coder
Image
Slabs created by an add-in are displayed perfectly in Revit 2015. In Revit 2016, they are not. What can be the problem? These slabs are located at an exorbitant distance from the origin. Relocating them closer to the origin resolves the problem... Continue reading
Posted Nov 29, 2017 at The Building Coder
Image
The Revit API discussion forum continues to reach ever new levels of depth and coverage. Here are a couple of recent topics – Welcome to the top solution authors, Jim! – Setting a parameter to regenerate the model – Checking model for C4R versus local file... Continue reading
Posted Nov 29, 2017 at The Building Coder