mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
Big bSDD overhaul for properties and classifications. See description.
* bSDD now supports a couple more args when querying the API. * Fetching properties via the classification UI has been removed * The bSDD dictionary selector has been merged into the classification source dropdown * The bSDD dictionary selector merged into the property set name dropdown * You can now search for properties in the bSDD directly when adding properties * You can browse properties via groups or classifications (based on assigned classifications) * You can browse properties via keyword (with some limitations due to the API) * You can selectively choose which properties you then want to add. Only basic support right now.
This commit is contained in:
+14
-2
@@ -658,13 +658,25 @@ class Client:
|
||||
return self.get(endpoint, params)
|
||||
|
||||
def get_properties(
|
||||
self, dictionary_uri: str, offset: int = 0, limit: int = 100, language_code: str = "", version: int = 1
|
||||
self,
|
||||
dictionary_uri: str,
|
||||
search_text: str = "",
|
||||
offset: int = 0,
|
||||
limit: int = 100,
|
||||
language_code: str = "",
|
||||
version: int = 1,
|
||||
) -> DictionaryPropertiesResponseContractV1:
|
||||
"""
|
||||
Get Dictionary with its properties
|
||||
"""
|
||||
endpoint = f"Dictionary/v{version}/Properties"
|
||||
params = {"Uri": dictionary_uri, "languageCode": language_code, "offset": offset, "limit": limit}
|
||||
params = {
|
||||
"Uri": dictionary_uri,
|
||||
"SearchText": search_text,
|
||||
"languageCode": language_code,
|
||||
"offset": offset,
|
||||
"limit": limit,
|
||||
}
|
||||
return self.get(endpoint, params)
|
||||
|
||||
def get_class(
|
||||
|
||||
Reference in New Issue
Block a user