algorithmic modeling for Rhino
Hi
I was wondering how the synchronize feature in the GH file-path component works? I would like to be able to do something similar, but not based on file reading/writing. Basically I want to prevent certain components from activating other components unless a specific event occurs. (I know there is something called event handling/listening, but I am not sure how it works)
Tags:
It watches for file system events regarding the files in question. They're a bit cumbersome to deal with because the file system may raise multiple events for a single file change. For example when writing a large file you may get several events during the entire write process. There's also issues with path length and such, it's all terribly 1980's and I don't quite understand why there still isn't something better available.
Also it seems that watching for filesystem events on network drives is exceptionally slow, so only use them for local drives.
The basis of events in .NET are reasonably simple:
--
David Rutten
david@mcneel.com
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by