Not able to create Generative Design studies___“No Study Type Found”

Dear all,
Actually, I am facing the same issue in Revit 2023 and Revit 2022.1. My script is not relying on any Revit data. I keep getting “No study types found” when I click on create a study in Dynamo. I have noticed that the required dependency folder has not been created. I tried removing some packages but didn’t solve the issue. I also tried to copy the script to another Dynamo file but it did not work (as suggested by @Ale_Macchi. This issue is happening for all my Dynamo scripts not only this one. Please find the Dynamo file attached and a screenshot. Hope we can find a solution. Thank you
@nate.peters @LilliSmith
Testing.dyn (159.4 KB)

Ps: Sorry as I am creating a new post because my previous post was under a solved old post.

No worries on the new post. I’ve already flagged the prior post with the development team, but will redirect here (today was a holiday for them, so no added confusion in the redirect).

My guess is there is an infosec issue, library dependancy conflict, or a discrepancy with the changes in how graphs exported which is preventing the data from moving over.

Can you post your Dynamo log and Revit journal, as well as a REALLY simple study (like number slider from 0-10 connected to a node which just returns the value of 1 every time kind of simple)? Hopefully with that we can get a head start.

1 Like

Hi Taki,

When we open your testing graph in Dynamo for Revit and attempt to save it as a Generative Design enabled graph we see the attached errors.

Addressing them may be all that is required?

Thanks,

Neal (QA for GD)

Hi @Neal_Burnham,
I did what you suggested, but unfortunately, it didn’t work. Still get the same message “No Study Type Found". I tried a simpler script as shown below I still get the same message.

If i reinstall Revit 2023 again. Do you think this might resolve the issue?

I tried to install Revit 2021.1.2…However, I couldn’t export the Generative Design study (see image).

I got this message: Could be this N an issue in my Windows 11 ?

Could not find file ‘RT60-BIM-Genrative Design (Design Stage) 2.Dependencies’.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.DirectoryInfo.CreateSubdirectoryHelper(String path, Object directorySecurity)
at System.IO.DirectoryInfo.CreateSubdirectory(String path)
at GenerativeDesign.Dynamo.PackAndGo.StudiesManager.Export(Study study, DirectoryInfo target, Boolean clearCachedData)
at GenerativeDesign.Dynamo.ViewExtension.ExportWindow.Export_Click(Object sender, RoutedEventArgs e)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Are you working off of your C drive, or a network location / external disc?

I am working on my local D drive partition…

PS: there is normally no issue in the script as one of my friends tested it and it works fine in his REVIT 2021 /PC

Can you try exporting out of a location like %userprofile%\documents\text? I’d like to rule out some windows craziness.

Sorry @jacob.small didn’t understand what do you mean by “exporting out of a location”, exporting what ?. Could you please clarify in a simple way that an architect can understand? Thanks

Put the file in the path I showed above, and run the export there instead of on D:\. :slight_smile:

I have done what you suggested (see image)

Here is the message that I got:

Could not find file ‘RT60-BIM-Genrative Design (Design Stage) 2.Dependencies’.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.DirectoryInfo.CreateSubdirectoryHelper(String path, Object directorySecurity)
at System.IO.DirectoryInfo.CreateSubdirectory(String path)
at GenerativeDesign.Dynamo.PackAndGo.StudiesManager.Export(Study study, DirectoryInfo target, Boolean clearCachedData)
at GenerativeDesign.Dynamo.ViewExtension.ExportWindow.Export_Click(Object sender, RoutedEventArgs e)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Hello, if you still have problems with this, I got it to work. The generative design file gets saved as a “.DYN” file instead of a “.dyn”. I changed this and copied the support files from one of the preset generative design examples, and everything works fine. My graph only uses OOTB nodes, so there are no issues regarding the dependencies. I would have to figure out how to copy custom packages into the dependencies folder. I don’t think that would be too difficult.

Hi @bayowindapo,
No this didn’t work for me. Dynamo file extension is already “.dyn” not “.DYN”. Thanks for your feedback!

Did you create the dependencies folder?

Yes

@Neal_Burnham any ideas on this?

Hello! I have a similar issue. I have both the DYN file and the dependencies folder in one folder, but I still can’t create a generative design study. Can you please help?


Following this advice:

worked!

1 Like