Skip to content

Instantly share code, notes, and snippets.

View htlcnn's full-sized avatar

Long htlcnn

  • Hanoi, Vietnam
View GitHub Profile
@htlcnn
htlcnn / lockview.py
Created May 21, 2023 09:02 — forked from Fweeb/lockview.py
Blender add-on for exposing the 3D View's rotation locking feature
# ***** BEGIN GPL LICENSE BLOCK *****
#
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of

You: Viết 1 đoạn code Python để chạy trong pyRevit, nội dung là yêu cầu người dùng chọn nhiều đối tượng thuộc category Structural Columns


ChatGPT: Here is a sample code in Python to be run in pyRevit that asks the user to select multiple objects belonging to the "Structural Columns" category:

import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import FilteredElementCollector, BuiltInCategory
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.