GuyR
2005-07-07, 05:25 AM
From this (http://forums.augi.com/showthread.php?t=21945) thread and the end of this (http://forums.augi.com/showthread.php?t=21191) thread find attached zip of a working dll, source code, revit file and entry for the ini file.
It's not accessing a structural family James but shows you one method of accessing type parameters and changing the values. Written in C#. You also have to have the .NET 1.1 framework installed to use the API, and this is a whopping 100MB!!!
Depending on where you put the dll you'll need to change the entry in the ini file.
What it does.
It parses the document looking for keynote families. Then it gets the keynote types and changes the description text of each keynote type. Finally it shows you the names of all the parameters in the keynote ;-)
I was really reluctant to write this example because it shows how to fix something that should be coming from the factory IMO (keynote text updating). But for whatever reason keynotes haven't been touched in at least 2 major releases. Those using keynotes extensively will see the significance of what this example can do and how you could develop it ;-) Roll on pyRevit.
If there are others using the API I'd be interested to know if there is a more direct route to the family types. I couldn't work out how to get to the family types from a selection rather than parsing the document.
HTH,
Guy
It's not accessing a structural family James but shows you one method of accessing type parameters and changing the values. Written in C#. You also have to have the .NET 1.1 framework installed to use the API, and this is a whopping 100MB!!!
Depending on where you put the dll you'll need to change the entry in the ini file.
What it does.
It parses the document looking for keynote families. Then it gets the keynote types and changes the description text of each keynote type. Finally it shows you the names of all the parameters in the keynote ;-)
I was really reluctant to write this example because it shows how to fix something that should be coming from the factory IMO (keynote text updating). But for whatever reason keynotes haven't been touched in at least 2 major releases. Those using keynotes extensively will see the significance of what this example can do and how you could develop it ;-) Roll on pyRevit.
If there are others using the API I'd be interested to know if there is a more direct route to the family types. I couldn't work out how to get to the family types from a selection rather than parsing the document.
HTH,
Guy