Spaces:
Sleeping
Sleeping
embed later if
Browse files
app.py
CHANGED
@@ -137,7 +137,9 @@ st.markdown(
|
|
137 |
'''
|
138 |
# Convert Revit IDs to GUIDs
|
139 |
|
140 |
-
Provide any spreadsheet (using a dropbox link) that has a column of revit IDs.
|
|
|
|
|
141 |
|
142 |
|
143 |
Select the sheet witin the spreadsheet and the column with the IDs.
|
@@ -185,25 +187,25 @@ if tabs:
|
|
185 |
columns,
|
186 |
)
|
187 |
|
188 |
-
if selected_column:
|
189 |
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
|
208 |
|
209 |
|
|
|
137 |
'''
|
138 |
# Convert Revit IDs to GUIDs
|
139 |
|
140 |
+
Provide any spreadsheet (using a dropbox link) that has a column of revit IDs.
|
141 |
+
A typical Revit IDS is `60f91daf-3dd7-4283-a86d-24137b73f3da-0001fd0b`.
|
142 |
+
The script will convert the ID to `3CPy6r22DAahSW8AIIobik`.
|
143 |
|
144 |
|
145 |
Select the sheet witin the spreadsheet and the column with the IDs.
|
|
|
187 |
columns,
|
188 |
)
|
189 |
|
190 |
+
if selected_column:
|
191 |
|
192 |
+
# df['COBieGUID'] = df.apply(compress)
|
193 |
+
df[selected_column] = df.apply(
|
194 |
+
revit_id_to_guid,
|
195 |
+
column=selected_column,
|
196 |
+
axis=1
|
197 |
+
)
|
198 |
|
199 |
+
st.markdown(
|
200 |
+
download_button(
|
201 |
+
df,
|
202 |
+
'IFC_GUIDs.xlsx',
|
203 |
+
'Download IFC GUIDs sheet',
|
204 |
+
pickle_it=False,
|
205 |
+
),
|
206 |
+
unsafe_allow_html=True,
|
207 |
+
)
|
208 |
+
st.markdown(download_button(df, 'COBieIDs.xlsx', 'Download COBieIDs.xlsx'), unsafe_allow_html=True)
|
209 |
|
210 |
|
211 |
|