BIM World
A Professional BIM Learning Platform


Dynamo_Space: A Guide to Linear Numbering Systems

A friend recently asked how to use Dynamo to number parking spaces. After some research, he documented a method for numbering parking spots using Dynamo.

There are various ways to number parking spaces, but here we focus on linear numbering. This approach involves drawing a line and numbering the parking spaces sequentially along the direction of that line. This method has been discussed in several online resources. The core technique presented here is based on a lecture by Mr. Tian Hongjun, the technical manager at Autodesk Taiwan. The idea is to extract lines from Revit, calculate the nearest point on the line for each parking space, and number the spaces according to the order of these points along the line.

Example:

Dynamo_Space Linear NumberingDynamo_Space Linear Numbering

Dynamo node setup:

Dynamo_Space Linear Numbering

Key points to consider:

  1. Get Objects: Retrieve all parking family categories in the project using categories, then intersect them with the elements visible in the current view to isolate all parking families within that view.
  2. Convert Curve to Polyline: Since directly using a spline curve to find the nearest point can cause errors, first convert the spline curve into a polyline, then use the polyline to determine the nearest points.
  3. Get Nearest Points: Use the Geometry.ClosestPointTo node to calculate the nearest point on the line for each parking space. Note that the node connections should be adjusted to use the longest matching method.
  4. Sort Elements: Convert the points on the line into positional parameters, then use SortByKey to order the elements based on these parameters. After sorting, assign the numbers accordingly.
xuebim
Follow the latest BIM developments in the architecture industry, explore innovative building technologies, and discover cutting-edge industry insights.
← Scan with WeChat
Like(0) 打赏
BIM WORLD » Dynamo_Space: A Guide to Linear Numbering Systems

Comment Get first!

Must log in before commenting!

 

BIM World, A Professional BIM Learning Platform

Stay updated on the latest architecture trends and share new building technologies.

Contact UsAbout Us

觉得文章有用就打赏一下小编吧

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

Account Login

By signing in, you agree toUser Agreement

Sign Up