Skip to content

Windows & Visual Studio build scripts continued#9

Merged
aothms merged 10 commits into
IfcOpenShell:masterfrom
Tridify:windows_build_scripts
Dec 1, 2015
Merged

Windows & Visual Studio build scripts continued#9
aothms merged 10 commits into
IfcOpenShell:masterfrom
Tridify:windows_build_scripts

Conversation

@Stinkfist0

Copy link
Copy Markdown
Contributor

I will be pushing some enhancements and fixes to this PR during the weekend.

…VS version can be identified in generic fashion
…nditional expressions, integer conversions, inability to generate copy-ctor and/or assignment operator, etc.
… + move <map> inclusion to .cpp as it's not needed in .h + use spaces instead of tabs consistently for these files as seems to be the convention.
@Stinkfist0

Copy link
Copy Markdown
Contributor Author

I'd have one more commit pending at my home PC, but it seems that the SSD broke or something and I cannot currently boot my PC into Windows... I'll probably re-do the commit at work.

@aothms

aothms commented Nov 23, 2015

Copy link
Copy Markdown
Member

Sorry to hear that. Btw. I started using boost::to_upper(_copy) and its -lower equivalent. For the sake of consistency maybe that's better sake then your std::transform(). But anyway everything better than this for-loop from hell.

@Stinkfist0

Copy link
Copy Markdown
Contributor Author

Yup, actually I even added // TODO add toLower() and toUpper() string helper functions for the project there in the commit, but boost::to_lower() et al. works just fine too.

@Stinkfist0

Copy link
Copy Markdown
Contributor Author

OK, the stuff I have in mind for now is in. I left couple warnings as I wasn't 100 % sure if these should be simply suppressed or not, so maybe you can check these out when you have the time.:

src\ifcparse\IfcHierarchyHelper.cpp(248): warning C4100: 'context': unreferenced formal parameter
src\ifcparse\IfcHierarchyHelper.cpp(247): warning C4100: 'place': unreferenced formal parameter
src\ifcparse\IfcHierarchyHelper.cpp(293): warning C4127: conditional expression is constant
src\ifcparse\IfcHierarchyHelper.cpp(315): warning C4100: 'context': unreferenced formal parameter
src\ifcconvert\ColladaSerializer.cpp(54): warning C4100: 'default_material_name': unreferenced formal parameter

E: never mind

@Stinkfist0

Copy link
Copy Markdown
Contributor Author

I should be done with this for now, if you don't have any issues with the commits. Next I'll try to focus on actual IfcOpenShell/IfcConvert enhancements. :)

@Stinkfist0

Copy link
Copy Markdown
Contributor Author

I'll probably also commit logic for detecting the used Visual Studio version automatically in vs-cfg.cmd by Monday. Edit: I'll commit this tomorrow, after that should be good to go.

@aothms

aothms commented Nov 30, 2015

Copy link
Copy Markdown
Member

Ok, thanks for the update. Looking forward for that, take your time.

@Stinkfist0

Copy link
Copy Markdown
Contributor Author

@aothms OK, ready to rock!

aothms added a commit that referenced this pull request Dec 1, 2015
Windows & Visual Studio build scripts continued
@aothms aothms merged commit 0036bd2 into IfcOpenShell:master Dec 1, 2015
@aothms

aothms commented Dec 1, 2015

Copy link
Copy Markdown
Member

Great. Thanks again for a great effort. I don't really have the time to test extensively, but since changes in this PR have already proven to help users [1] I'm just going ahead and merge it.

[1] https://sourceforge.net/p/ifcopenshell/discussion/1782718/thread/d6365537/?limit=25&page=2#59c9

ghost pushed a commit to bjorkstrom/IfcOpenShell that referenced this pull request Aug 30, 2017
When adding entities, don't assign ID to Simple types.
Otherwise that type will be serialized incorrectly.

This fixes the issue with IFCPLANEANGLEMEASURE being serilzed
incorrectly when used as attribute to IFCMEASUREWITHUNIT.

With ID assigned, it will look like this:

  IfcOpenShell#10=IFCMEASUREWITHUNIT(IfcOpenShell#9=IFCPLANEANGLEMEASURE(0.017453293),IfcOpenShell#8);

The correct way to serialze is:

  IfcOpenShell#10=IFCMEASUREWITHUNIT(IFCPLANEANGLEMEASURE(0.017453293),IfcOpenShell#8);
@ghost ghost mentioned this pull request Aug 30, 2017
aothms pushed a commit that referenced this pull request Sep 9, 2017
When adding entities, don't assign ID to Simple types.
Otherwise that type will be serialized incorrectly.

This fixes the issue with IFCPLANEANGLEMEASURE being serilzed
incorrectly when used as attribute to IFCMEASUREWITHUNIT.

With ID assigned, it will look like this:

  #10=IFCMEASUREWITHUNIT(#9=IFCPLANEANGLEMEASURE(0.017453293),#8);

The correct way to serialze is:

  #10=IFCMEASUREWITHUNIT(IFCPLANEANGLEMEASURE(0.017453293),#8);
aothms pushed a commit that referenced this pull request Jan 23, 2019
Fix issue with opening placements
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 this pull request may close these issues.

2 participants