Guide Grid API access Create

Rab_i
Advocate

Guide Grid API access Create

Rab_i
Advocate
Advocate

I want to programmatically create guide grid in a given sheet. The purpose of the process is to be able to align guide grids between two project files. What would be the best way to create rename or delete guide grids in Revit? if someone can help guide me through it in API or show me where to find, that would be great.

0 Likes
Reply
318 Views
3 Replies
Replies (3)

jeremy_tammik
Autodesk
Autodesk

One of the first places to lkook for such guidance is the official collection of Revit SDK samples.  In this case, the GridCreation SDK sample looks like an appropriate choice, showing how to create grids and modify grid properties through Revit API.

    

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

Rab_i
Advocate
Advocate

Isn’t GuideGrids different from Grids? Am I missing something? I searched the SDK but still no success. That’s why I turned to forum. Anyways thanks. 

0 Likes

jeremy_tammik
Autodesk
Autodesk

Oh Interesting. I asked Gemini for you, and it replies:

 

Jeremy: in a Revit BIM model, what is the difference between a grid and a guide grid, please?

 

Gemini: In a Revit BIM model, grids and guide grids serve distinct purposes:

 

Grids:

  • Model-based: Grids are fundamental to the 3D model. They define the primary structural and organizational framework of the building.
  • 3D Alignment: They extend vertically and horizontally throughout the building, providing a consistent reference for aligning elements like walls, columns, and floors.
  • Dimensioning: Grids serve as the basis for precise dimensions and coordinates within the model.  
  • Visibility: Grids are generally visible in 3D views and can be controlled in plan views.

Guide Grids:

  • Sheet-based: Guide grids are specific to 2D sheet views. They are primarily used for organizing and aligning multiple views on a sheet.  
  • Layout and Presentation: They help ensure consistent spacing and alignment of floor plans, elevations, sections, and other views within the sheet layout.  
  • No Model Impact: Guide grids do not affect the 3D model geometry. They are purely a visual aid for sheet organization.
  • Visibility: Guide grids are only visible within the sheet view where they are created.

In Summary:

  • Grids: Define the 3D model structure.
  • Guide Grids: Organize and align views on sheets.  

Key Differences:

Feature Grids Guide Grids
Scope Model-wide Sheet-specific
Purpose 3D model organization and alignment Sheet layout and view alignment
Impact Influence model geometry No impact on model geometry
Visibility Visible in 3D views and controllable in plan views Visible only in the associated sheet view

I hope this explanation clarifies the distinction between grids and guide grids in Revit!

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