Skip to content

Improvements to python-ifc - #6

Closed
gansanay wants to merge 9 commits into
mvaerle:masterfrom
gansanay:master
Closed

Improvements to python-ifc#6
gansanay wants to merge 9 commits into
mvaerle:masterfrom
gansanay:master

Conversation

@gansanay

Copy link
Copy Markdown

Dear all :)

I needed to browse through the IFC schemes specifications for my uses and stumbled upon python-ifc which was nearly enough for my uses and simple enough to start using it and adding what I needed.

I then fixed some problems and added features to the initial parser to make it accurately detect the types and entities of the IFC2x3 and IFC4 schemes. The main part now includes a test which checks it is still ok.

I also added the attributes of subtypes and supertypes for each entity, which I am using to make graph visualizations of IFC entities. I can share the code that does it.

Are you still maintaining it ? I saw you just pushed an LGPL license on it 3 days ago. If you lost interest in this little tool I can maintain it if it helps: I think it can have an (even pedagogical) interest.

Hope this pull request helps, feel free to ask for more information of what I implemented !

Guillaume

gansanay added 9 commits August 13, 2013 13:35
Regular expression used for parsing IFC schema raised an internal error
from the regexp engine. Seemed to be too greedy and matched keywords
over several lines. Replaced . with \S in keyword regex to match
one-word alphanumeric keywords.
Code raised an error when all attributes of an entity were not present,
but current version of python-ifc doesn't make a difference between
mandatory and optional attributes. Commenting the assert().
Clear repository of compiled modules
buildingSMART released on March 25, 2013 a new release of the IFC
schema, named IFC4
The file reader should not let the file object in an open state.
Fixes#1, #2, #3.
* Implements an accurate count of types such as defined by the EXPRESS
language and the documentation of the IFC2x3 TC1 and IFC4 schemes
* Adds two unit tests to the __main__ part of the library to check that
the numbers of types and entities are correct.
* Closes the file object after reading it.
* Fixes#4.
* Adds encoding information at the beginning of source code files
@gansanaygansanay closed this Jan 5, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@gansanay