Created
June 13, 2020 12:58
-
-
Save chuongmep/80d1f43d42f3d2872f2b61aa2a4a285b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
for f in fams: | |
namepra = [] | |
family = UnwrapElement(f) | |
#đóng một transaction đang mở. | |
TransactionManager.Instance.ForceCloseTransaction() | |
doc_family = doc.EditFamily(family.Symbol.Family) | |
if doc_family != None: | |
famman = doc_family.FamilyManager | |
TransactionManager.Instance.EnsureInTransaction(doc_family) | |
pra = doc_family.OwnerFamily.Parameters | |
parameter.append(pra) | |
for p in pra: | |
namepra.append(p.Definition.Name) | |
TransactionManager.Instance.TransactionTaskDone() | |
name.append(namepra) | |
except Exception, ex: | |
namepra.append(ex.message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment