bcf.v3.topic

BCF XML V3 Topic handler.

Module Contents

class bcf.v3.topic.TopicHandler(topic_dir: zipfile.Path | None = None, xml_handler: bcf.xml_parser.AbstractXmlParserSerializer | None = None)

BCF Topic and related objects handler.

add_viewpoint(element: ifcopenshell.entity_instance) bcf.v3.visinfo.VisualizationInfoHandler

Add a viewpoint tergeting an IFC element to the topic.

Args:

element: The IFC element.

add_viewpoint_from_point_and_guids(position: numpy.typing.NDArray[numpy.float64], *guids: str) bcf.v3.visinfo.VisualizationInfoHandler

Add a viewpoint tergeting an IFC element to the topic.

Args:

element: The IFC element.

add_visinfo_handler(new_viewpoint: bcf.v3.visinfo.VisualizationInfoHandler, snapshot_filename: str | None = None) bcf.v3.model.ViewPoint
classmethod create_new(title: str, description: str, author: str, topic_type: str = '', topic_status: str = '', xml_handler: bcf.xml_parser.AbstractXmlParserSerializer | None = None) TopicHandler

Create a new BCF topic.

Args:

title: The title of the topic. description: The description of the topic. author: The author of the topic. topic_type: The type of the topic. topic_status: The status of the topic. xml_handler: The XML parser/serializer to use.

Returns:

The BCF topic definition.

save(destination_zip: bcf.inmemory_zipfile.ZipFileInterface) None

Save the topic to a BCF zip file.

Args:

bcf_zip: The BCF zip file to save to.

property bim_snippet: bytes | None
property comments: list[bcf.v3.model.Comment]

Return the comments of the topic.

property guid: str

Return the GUID of the topic.

property header: bcf.v3.model.Header | None

Return the header of the topic.

property markup: bcf.v3.model.Markup | None
property reference_files: dict[str, bytes]
property topic: bcf.v3.model.Topic

Return the Topic object.

property viewpoints: dict[str, bcf.v3.visinfo.VisualizationInfoHandler]