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

parse Interferencecheck node #54

Closed
Mohamadnawar opened this issue Jun 10, 2019 · 5 comments
Closed

parse Interferencecheck node #54

Mohamadnawar opened this issue Jun 10, 2019 · 5 comments

Comments

@Mohamadnawar
Copy link

Hello,

The below node not working in Revit 2020

image

@mehmetduzenli
Copy link

i have the same problem

@dimven
Copy link
Owner

dimven commented Jun 13, 2019

Revit 2020 uses a new version of iron python - 2.7.8. The way this new version opens and reads text files seems to be different. Still trying to figure out why.

@dimven
Copy link
Owner

dimven commented Jun 13, 2019

As a temporary fix, edit the python script and replace lines 48 to 50 as such:

image


with System.IO.File.OpenText(report1) as f:
	while not f.EndOfStream:
		parser.feed(f.ReadLine().replace("&", ""))

@dimven
Copy link
Owner

dimven commented Jun 14, 2019

the python equivalent of the above code seems to be:

import io
with io.open(filepath, "r", encoding="utf-16") as f:
    for line in f:
        print line

@Mohamadnawar
Copy link
Author

Thank you working perfectly now

@dimven dimven closed this as completed Sep 11, 2019
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

No branches or pull requests

3 participants