MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_class_relations

Method get_class_relations

src/bsdd/bsdd.py:785–807  ·  view source on GitHub ↗

Get class relations or reverse relations (paginated)

(
        self,
        class_uri: str,
        get_reverse_relations: bool = False,
        search_text: str = "",
        offset: int = 0,
        limit: int = 1000,
        language_code: str = "",
        version=1,
    )

Source from the content-addressed store, hash-verified

783 return self.get(endpoint, params)
784
785 def get_class_relations(
786 self,
787 class_uri: str,
788 get_reverse_relations: bool = False,
789 search_text: str = "",
790 offset: int = 0,
791 limit: int = 1000,
792 language_code: str = "",
793 version=1,
794 ) -> ClassRelationsContractV1:
795 """
796 Get class relations or reverse relations (paginated)
797 """
798 endpoint = f"Class/Relations/v{version}"
799 params = {
800 "ClassUri": class_uri,
801 "GetReverseRelations": get_reverse_relations,
802 "SearchText": search_text,
803 "Offset": offset,
804 "Limit": limit,
805 "languageCode": language_code,
806 }
807 return self.get(endpoint, params)
808
809 def get_class_properties(
810 self,

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected