Skip to content

Commit 657389e

Browse files
Removed Ifc prefix and \\n
1 parent b9f453e commit 657389e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bt_ifcjson/exporter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def get_properties(entity)
129129
definition = entity.definition
130130
ifc_type = definition.get_attribute "AppliedSchemaTypes", "IFC 2x3"
131131
if ifc_type
132-
properties["Class"] = ifc_type
132+
properties["Class"] = ifc_type[3..-1]
133133
if definition.attribute_dictionaries['IFC 2x3']
134134
if props_ifc = definition.attribute_dictionaries['IFC 2x3'].attribute_dictionaries
135135
props_ifc.each do |prop_dict|

src/bt_ifcjson/obj.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def initialize( faces, transformation )
5454
end # def initialize
5555

5656
def to_s()
57-
return @vertices.join("\\n") << "\\n" << @polygons.join("\\n")
57+
return @vertices.join("\n") << "\n" << @polygons.join("\n")
5858
end
5959
end # OBJ
6060
end # module IfcJson

0 commit comments

Comments
 (0)