GithubHelp home page GithubHelp logo

albandechasteigner / geniuslocifordynamo Goto Github PK

View Code? Open in Web Editor NEW
40.0 6.0 9.0 871 KB

Genius Loci is a package of 350+ custom nodes for Dynamo in Revit.

License: MIT License

Python 100.00%
python dynamo dynamobim revit

geniuslocifordynamo's Introduction

contributions welcome Maintained Current version Follow me on Twitter for updates

Logo Genius Loci

Genius Loci is a compilation of +350 custom nodes for the Dynamo environment. The vast majority of nodes are written in Python and related to Revit. Particular emphasis is placed on interoperability and many nodes can handle with DWG, DWF, NWC and IFC files. Another goal is to interact easily with linked files and Revit documents. Other categories of nodes focus on automating dimensions and managing materials and graphics.

Genius Loci is compatible with Dynamo 2.x. Revit 2017 to Revit 2024. Make sure to have the DynamoIronPython2.7 package installed for Dynamo 2.16/18 in Revit 2023/24.

Feedbacks, issues, pull request and suggestions for improvement are welcome and can be reported in the repository.

Some custom nodes were inspired by the brilliant authors of the packages like archi-lab.net, Clockwork and Springs and adapted to meet my needs. Thanks to the original authors for their great Python scripts and for everything they taught me by analyzing them..

INSTALLATION

Installation is simple - just use Dynamo's built-in package manager and search for Genius Loci.

If the package helps you be more productive, feel free to vote for it in Dynamo's package manager. You can also donate on : Buy Me A Coffee

UPDATES

21.05.18 Update nodes for Revit 2022 and add Export PDF.
21.01.12 Added CAD Block Location from DWG link, Closest Level, TextNote AddLeader, Family Properties, Documents Properties, All Elements of Family, Document Units nodes.
20.11.08 Fixed the Print PDF(multiple formats) node which only worked for Dynamo 2.6 in previous update "20.10.15".
20.06.18 Added Delete Compound Layer, Material Add Image and Duct Surfaces References nodes
20.05.14 Added Link DWF, Copy DWFMarkup and Print Settings Properties nodes.
20.04.29 Added Group Lines by Orthogonality and Element Filter By Name (equals, contains, doesn't contain) nodes
20.04.23 Added Parse and Export PAT File nodes, Purge using API. Improvement for the creation of tags on linked elements.
20.04.16 Added nodes to batch create fill patterns, Element Inner Centroid and FamilyInstance.ByReference nodes.
20.04.04 Added CAD Layer Overrides, Create Family Parameter and All Elements at Phase nodes. Updated Material Change Texture Path, CAD Layer Visibility and Set SubCategory Properties nodes.
20.03.24 Added All Elements at Level+, Element Change Level, Element Origin Reference, Family Document, Reset Materials Properties, Material Find Texture Path and Dimension Properties nodes. Updated Create Material, Get Project Locations and Dimension ByReferences nodes.
19.09.03 Revised custom node inputs for Dynamo 2.2
19.08.23 Added AppearanceAsset Get Properties, Get and Set Material Properties, Link IFC nodes.
19.05.27 Added Manage Worksets of RevitLinkInstance and Family Get SubCategory nodes.
2019.5.6 Added FamilyInstance Reference Line, 3DView Toggle To Isometric, updated Export IFC.
2019.2.22 Added Convert Linked Reference node
2019.02.06 Updated Compound Surfaces References node. Added Compound Edges References, Create 3DView and Create Note Block Schedule nodes.
2019.1.28 Updated Set SubCategory Properties. Added FamilyInstance Symbolic Lines, Set Wall JoinType, Wall Edges References, Element Points References and Set SystemType Properties nodes.
2019.1.20 Added Get Elements at Ends and Get Joined Elements nodes.
2019.1.14 Added Create Compound System FamilyType, Get SystemType Properties, Set SketchPlane By Line, Compound Surfaces References and Element Pattern Reference nodes.
2019.01.01 Added FamilyInstance Reference, FamilyInstance ReferenceType, Wall Layer References, Element Reference, and Dimension ByReferences nodes.
2018.12.17 Added Wall CompoundStructureLayersLocation and Tag Set Location nodes. Updated Create Line Pattern.
2018.12.09 Updated Tag Get tagged Element node (it now works with tags on linked elements and linked rooms). Added View Range and Create Line Pattern nodes.
2018.11.29 Added support for Foreground and Background Patterns in various nodes. New nodes : View SetElementOverrides, Material Create and Add AppearanceAssetElement, Material Set Render Appearance Color and FilledRegion Color Change nodes.
2018.11.22 Added 3DView Lock or Unlock, 3DView Restore Orientation, Create Sheet List Schedule, Create View List Schedule, Get Pinned Element and Get Hidden Element nodes.
2018.11.02 Added View Properties, Collector of UserWorksets, Collector of Detail Items Types, and Tag Get tagged Element nodes. Updated SelectByCategoryAnd3DView node.
2018.10.20 Added Display Units, ReportRevitLinks and Reload Revit Links nodes.
2018.10.16 New nodes to create Material, to set Rendering Color and Tint Color, to change Texture Path and to Get and Set Appearance Asset.
2018.10.09 New nodes : Railing SetPath, Get/ Set and Create DWG Export Setup nodes, Purge Unused
2018.10.02 Added Get Elements Overrides
2018.09.16 Added Reload CADLinks. Updated Print PDF in document node.
2018.09.05 New nodes : Get Phase Map, Collector of FillPatternElement, FilledRegion Pattern Change, Enumerate Datum Extent Type, Switch between 2D or 3D extent
2018.08.27 Added the ability to tag linked elements to the node Create Independent Tag. New nodes : Tag Is Orphaned, Get Phase Filter Presentation, Get Phase Filter

SOURCE OF PACKAGE NAME

Genius Loci usually refers to a location's distinctive atmosphere or the spirit of the place. It's a familiar notion for architects. Automation should free up time to create a better architecture.

geniuslocifordynamo's People

Contributors

albandechasteigner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

geniuslocifordynamo's Issues

Create Tag, Revit 2023

Hi Alban, first of all, thanks for sharing all your nodes, they are excellent.
I have been testing rebar on Revit 2023, and your node for creating tags doesn't work with rebar.
Is this something that you are available to fix?

Regards

Paulo Lima

Appearance Asset Nodes Returning Null

Hello,

I am starting work on a script to pull material data from a Revit project to excel, modify data in excel, then re-create new materials with that data in a new Revit file.

I just started working with Genius Loci, and the AppearanceAsset nodes are returning null values. Could someone let me know what might be causing this? I am running Genius Loci 2022.3.9 in Dynamo Core 2.10.1.3976, Dynamo Revit 2.10.1.4002.

image

Thanks,

Jonathan

node Get ColorFill Scheme Properties unable to return values for AreaScheme

the python script in this node seems to fail to find the correct BIP associated with the ColorFillScheme's ParameterDefinition when the ParameterDefinition is a ParameterElement and not a BIP integer. Not really sure if the second case for identifying the paramName values is supposed to cover this. Maybe a third case needs to be implemented and have the parameter collection be moved into the try/except?

View CropBox does not handle ViewType.Detail

I just discovered that within the View CropBox node, that it could not handle my detail views.

Upon investigation it seems that the node does not have a condition to catch views of the type ViewType.Detail.

The three conditions are:
if view.ViewType == ViewType.FloorPlan or view.ViewType == ViewType.CeilingPlan or view.ViewType == ViewType.EngineeringPlan :
elif view.ViewType == ViewType.Section or view.ViewType == ViewType.Elevation :
elif view.ViewType == ViewType.ThreeD:

I added or view.ViewType == ViewType.Detail: to row 58 and the node works.

Object Lineweight change

Hello,

I initially posted this question in the Dynamo forums, but never received an actual reply to my question.

I put together this script and there are no errors or nulls, but nothing seemed to change in my object style settings. Are you able to tell what I am missing?

image

Thanks,

-Ian

Get Filter Overrides - CutLineColor

Hi, apologies if this is not the correct forum to raise such issues, but when using the Get Filter Overrides node, the CutLineColor output appears to be outputting the incorrect values (doubles rather than colours). The ProjectionLineColor output is working correctly, comparison displayed in image below.

Revit 2023.1
Dynamo 2.16
GeniusLoci 2023.2.21

image

Custom Nodes - Can't Find

Hi. My boss sent me and image of Dynamo script he uses and I'm trying to recreate it with your package. But I can't find the nodes he's using:
GeniusLoci.Family Document and GeniusLoci.FamilyDocument Parameters
He's using 2020.12.22 but I don't see both of these nodes in that version. Which version has both of these nodes available?
MicrosoftTeams-image

Open-sourcing GeniusLoci

Hi @albandechasteigner ,
I see the GeniusLociForDynamo/py folder contains source code for only one file: "Element Inner Centroid.py".
Are you planning on open-sourcing the GeniusLoci plugin?

Export IFC and Export IFC in Document not working

Revit Version: 2022.1
Dynamo version: 2.12
Genius Loci version: 2021.10.25
Ifc 2022 plugin not installed

Hello Alban,
first of all, I would like to say that I appreciate your work very much.
I was trying to create a graph to batch export Ifc files and I've tried to use Export IFC from Genius Loci.
First, I've got a message that one of the input values needed to be fixed, as in the image below:

Export IFC_2022-02-07_01-55-11

I fixed it as follows:

Export IFC_2022-02-07_01-53-59

Anyway, it didn't bring me any results:

Export IFC

As much as using Export IFC in Document:

Export IFC in Document_LI

Do you have any hint of what is happening and how to fix it?

Export IFC in Document problem in Revit 2023

I have a Dynamo graph/script (see attached screenshot) using your Export IFC in Document node that works in Revit 2022 but returns a null value when I try it in 2023. Has there been a change in 2023 in the IFC export function? Perhaps there is a simple fix in the Python code?

Any guidance you can provide is much appreciated.

2022-12-02_09-25-30

Borrow Element Limitation

Thank you for a very useful package.

We are having difficulties to run scripts in normal office hours, because someone always owns something in a large workshared model. we have successfully used the "Borrow Element" node, but since the model have more elements, this node has stopped working.
Are there any known limitations to how many elements that are allowed to borrow?
Are there any way to make Dynamo write information to all elements except those owned by others?

image

Compound Surface Reference Node

I was just using your "Compound Surface Reference Node" and noticed that the bottom surface was reporting material and the material was reporting the surface
Compound Surface Reference

Import DWG Issue

I apologize if this is not the correct place to post this.

I am using the Import DWG node and would like to be able to get the 3D autocad imports to show up in all views of the Revit family file. Currently there is only an option to specify a single view. If not possible, are there any alternative solutions?

Thank you and great package!

View ToSheet method depreciated in R23+

Hi Alban,

The View ToSheet node was not returning anything for me in R24.2.

Upon investigation, the case-sensitive version of the method you deploy to filter sheet numbers was removed in R23.

https://www.revitapidocs.com/2022/056fd8e1-a989-b262-8c8e-9e79ece62b01.htm.

The non-case-sensitive version of this method is still valid (https://www.revitapidocs.com/2022/5bd5286a-612f-e12f-e200-6a8763bb2aee.htm), so simply removing the boolean parameter from line 17 means the code still works as expected.
fRule = FilterStringRule(pvp, fsr, sheetNumber)

Jake

DeleteWorkset

Dear Alban,
Sorry for bothering.
The script below results in "null"
DD#1012-F1 1 Script View
Here is the Revit version:
DD#1012-F1 1 Current Version
Is any issue with this node?

Wall CompoundStructureLayersLocation returns list of nulls in R2023

To start, thank you for the awesome package!

I've used your "Wall CompoundStructureLayersLocation" node successfully in the past, but I am now getting an issue in Dynamo Revit 2.16.1.6510. I was initially using version 2022.7.5 of the package, but then updated to the latest version 2023.7.13 and in both cases I get the same null result. Are you aware of any issues with this node in the most recent versions of dynamo? I feel like I've used it successfully in Revit 2023 before but this may be the first time I'm running it in 2023.1.

Thank you for your time!

image

GeniusLociForDynamo failed installation on Revit 2020.2

Hello,
Could you help me resolve this issue?
I'm on Revit 2020.2.
When I try to install Genius Loci from the Dynamo for Revit Package loader a pop up appear telling me that Genius Loci is using a newer Dynamo's version. If I click continue I get errors when I try to use it in a script.
The version I need is 2021.1.12

Thanks!

Revit 2020.2
Dynamo Core 2.3.0.5885
Dynamo Revit 2.3.0.8352

Capture9

'AppearanceAsset Create' not working Dynamo 2.12

Hi,

The node 'AppearanceAsset Create' is not creating Assest in Dynamo 2.12
I don't know if it worked before the last revit 2022 update. (I went straight from Revit 2020.2 to Revit 2022.1 (22.1.1.516).)

Running on Lacing: Auto I get an Empty list
Running on Lacing: Longest I get null's

Thanks a lot!

Dimension properties node

Hi, i noticed that the dimension properties node only works on vertical dimensions and not horizontal dimensions am i doing something wrong or is there something in de node wrong

Document Units for Revit links

I'm trying to have the units in use for all the linked models and the node will output the units of the open document and not the links.
I've tested linking 2 models, with length units one in inches and other in cm to the open model in meters and the result is meters for both of them. I'm using Revit 2023.1 and DYNAMO v.2.16.1

imagen

CAD Block Layers

Hello
While using CAD Block some block layers are "null"
image
In my case "null" are only block "LAPUKO" other blocks in the same Layer shows up correctly
i checked in .dwg there everything looks fine
image
I am using Revit 2024

Curves FromHatch

I am getting a null response when using this node even though the cad link has hatches in it. Is there something I need to do to the hatches in the CAD file?

Export IFC - IFC Site

Hello

I use your IFC Export node, is it possible to manage the IFCsite elevation in the advanced settings?

Thank you for your reply

Material Set not working from list

Hi, when I use the "Material Set Appearance Asset" it is only working for a single material. Either by a single string, or if I use the attached image and filter for a single material, it works too. But, if I filter by a name that gives me 3 materials, only the first material will be changed, and the rest will not change. Is the "Material Set Appearance Asset" written to only change a single material? Or Am I doing something wrong? Should I use a different command when I have a list of materials instead of a single material? Thanks!

Material Set from List

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.