How to extract/apply/get a grid of an active view

mathieu.josserand
Contributor
Contributor

How to extract/apply/get a grid of an active view

mathieu.josserand
Contributor
Contributor

Hey guys,

 

As it's mentionned in the following link : 

https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2020/EN...

I want to apply a grid to a view to get the view representation.

I don't know how to deal with that process..

How to get the external borders out of the view to define the grid size ?

 

After that, I will assign a true/false value to each cell to find out if there is an obstacle or not thanks to the clash detection.

 

What do you think of this? Is there another way to do it?

thank you for your answers,

Mathieu

0 Likes
Reply
Accepted solutions (1)
514 Views
4 Replies
Replies (4)

jeremy_tammik
Autodesk
Autodesk

The documentation that you point out discusses an internal process.

 

The grid mentioned there has nothing to do with a Revit BIM grid.

  

Your questions are rather vague, so these answers are pretty useless:

  

> What do you think of this?

 

Interesting.

 

> Is there another way to do it?

  

Yes, definitely.

  

If you wish to discuss this in more depth, you should probably first describe your goal and ideas in much more detail.

  

Maybe you should explain what you wish to achieve.

 

Do you wish to calculate your own path of travel?

 

Why do you not just use the path of travel and the API for it provided by Revit?

 

https://duckduckgo.com/?q=path+of+travel+revit

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

mathieu.josserand
Contributor
Contributor

Thank you for your response,
and sorry for being vague


Indeed my goal is to create my own path of travel, especially for ventilation ducts, or plumbing pipes.
At first, I want to be able to run the process in 2D (on a plan view, or a section view if possible), we'll see about 3D later.


To do this, I will follow the steps described by the link above:
1- Create the grid
2- Apply A* Algorithm
3- Optimising the process

 

I suspect that The grid mentioned there has nothing to do with a Revit BIM grid, but I would like to be able to model one...

 

This grid will surely be very useful for other projects! 🙂

 

 

0 Likes

jeremy_tammik
Autodesk
Autodesk
Accepted solution

Well, I might be able to save you a lot of work by pointing out that Adam Sheather presented an example of wrapping the A* algorithm in a Dynamo node at AU 2016:

  

https://thebuildingcoder.typepad.com/blog/2017/06/finding-an-exit-path-and-elementid-parameter-value...

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

mathieu.josserand
Contributor
Contributor

Oh wow !  Great thanks a lot !

0 Likes