Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shapefile Locked until Revit is closed #2

Open
sanzoghenzo opened this issue May 26, 2016 · 2 comments · May be fixed by #3
Open

Shapefile Locked until Revit is closed #2

sanzoghenzo opened this issue May 26, 2016 · 2 comments · May be fixed by #3

Comments

@sanzoghenzo
Copy link
Contributor

I think I've messed up the plugin by adding the DbfReader but never closing it.
Is there a way to dispose of the object at the end of the execution?
Should I dump everything in a list/datatable and then close the DbfReader? That way all the nodes that read attributes have to be rewritten.

@sharadkjaiswal
Copy link
Owner

You can implement IDispose interface for Shape file by deriving it from IDispose and close DbfReader in Dispose() method.

@sanzoghenzo sanzoghenzo linked a pull request May 30, 2016 that will close this issue
@sanzoghenzo
Copy link
Contributor Author

Dispose() works only when you quit Dynamo but it's a good start, see PR with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants