I’m currently trying Generative Design with Dynamo for Civil3D. I completed creating the nodes and ran the study, but I got an error saying ‘Geometry not found,’ and no values were displayed. From what I’ve seen in the community, it seems like this issue happens a lot. I’m using Dynamo for Civil3D 2024. Also, the Civil3D project I’m using for surface calculations was created in Civil3D 2021.
Does anyone know the cause of this kind of error and how to fix it? If needed, I can attach the .dyn file directly.
Hi @sugitaniPCTG2 様,
Welcome to the community. (JP: フォーラムへようこそ!)
Please share a up-close view of your graph so we can see your nodes: in the top-right, select “export as image” and then “workspace”. (JP:使用しているノードを見させていただくように、グラフのどこかに拡大し、右上に「イメージとして書き出し」>>「ワークスペース」の手間でより画質のいい画像を書き出し、ご共有していただければ幸いです。)
Also, please show us the contents of the warning boxes. (JP: また、エラーメッセージの内容を表示する画像もご共有していただければ幸いです。)
I’ve attached screenshots showing the full node and the error I’m encountering.
In the node, I get the PolyCurves for the horizontal and vertical alignments, convert the surface from TIN to Dynamo format, and then calculate using the placement location of the check dam as input. The output values are the dimensions of each part of it. Also, the error message says, ‘Geometry not found.’
Which node shows this error? If possible, please show the warning above and/or the node output below, like this: (JP: どのノードでエラーが発生されていますでしょうか? 可能でありましたら、下記の事例に示すように警告(ノードの上)またはノードの出力(ノードの下)の画像をご共有していただければ幸いです。)
FYI, if possible, I recommend using Dynamo for Civil 3D 2025 or newer because there are more nodes related to Alignments and Profiles that might simplify your graph and reduce dependence on packages. (JP: ご参考までに、Civil 3D 2025以降のDynamoでは、線形および縦断に関連するノードがかなり多く供給されているため、そちらのグラフが簡素化、外部パッケージの必要性が低減できる可能性がありますので、可能でありましたら、2025版以降の使用を検討することを推奨いたします。)
@sugitaniPCTG2 welcome to the comunity, come take a look to this post, here there is a couple basic things for Dynamo Autocad!!
The node Object.ByGeometry ask for Gemotry instance, or List of Geometry instances, the fact that you put the node “Data.Gate” make me a bit of noise, perhaps is a Custom Node? i’ve never see it, perhaps the output of this node is a boolean or other type of data, verify this and let us konw what happens please!!
Anyway, I’ll go ahead and include an explanation of the data and remember nodes. It does seem like it could be one of the possible causes of the problem.
In Generative Design for Revit (Civil 3D), Dynamo scripts are calculated repeatedly in parallel. When referencing Revit (Civil 3D) data during such calculations, a small problem arises. Actually, while the repeated calculations are happening, Dynamo cannot access Revit (Civil 3D). So, it’s necessary to convert the data obtained from Revit (Civil 3D) into Dynamo’s data format and store it on the Dynamo side. The Data.Remember node is useful here. After converting the long-section alignment (Alignment.ProfileByName) obtained from Civil 3D into Dynamo data (Profile.PolyCurveByRange), you store it on the Dynamo side using the Data.Remember node. The Generative Design engine can then call the data stored in this Data.Remember node to perform repeated calculations in parallel.
Also, what I concerns is that running the node yields no errors anywhere, but instead of it, at the end, The ByGeometry result is null. Maybe this is where the problem lies…
Data.Remember and Data.Gate nodes are from the GenerativeDesign package. Have you checked that the GenerativeDesign package is correctly installed for Civil 3D?
Generative Design doesn’t have any access to Civil 3D API, the AutoCAD API, the Revit API, or any other ‘in process’ API. As such if you use any Dynamo for Civil 3D node inbetween a Remember node and a Data.Gate node you’re going to get an error. Open the graph in Dynamo Sandbox (or in this case Dynamo for Revit) and run it there to see if you get a result. If not, you’ll have to modify the graph to make your nodes have valid outputs.
From 2023 to 2026, if your graph uses more than 750mb of RAM it forces itself to close, resulting in bad data. This was added to prevent memory leaks. You can check your generative design log files to confirm if this is the issue (or there is another thing preventing graphs from running). Logs are here: %appdata%\GenerativeDesign 2024\refinery-server-log.txt. I recommend you follow these steps to understand what may be happening: delete the file there (or rename it), start GD (which will create a new log), open the new log in notepad++ or another editor which allows reloading the document and go to the very end, create a new study that’ll run a decent length of time but not forever (random option, 20 samples should do), reload the log in your editor and check the ‘new lines’. Repeat reloading the log a few times and read over the errors found. If it’s a memory issue or another ‘failed to execute’ issue you’ll see a line like “ERROR Traceback”. If those are occurring consistently then most likely you’ve got an issue with graph size/execution.
@jacob.small , could it be a missing NewtonSoft.Json.dll file like with this thread?
Assuming a Revit / Civil 3D 2024 environment, the NewtonSoft.Json.dll file should be in the C:\Program Files\Autodesk\AutoCAD 2024\C3D\Dynamo\Core folder, and if not, then it needs copying from the C:\Program Files\Autodesk\Revit 2024 folder, doesn’t it?
Thanks to all of your great efforts, the GD issue that seemed nearly impossible to solve has been resolved.
Referring to Mr. Jacob Small’s previous solution, I copied the dII format application extension from C:ProgramFiles/Autodesk/Revit 2024/AddIns/SiteLinker to C:ProgramFiles/Autodesk/AutoCAD 2024C3D/Dynamo/Core, and I was able to successfully generate objects in GD.
I really appreciate all your help.