compas_cadwork.utilities

Classes

IFCExporter

Used to export elements to ifc files.

IFCExportSettings

Represents settings for the ifc export.

Functions

get_plugin_home

Returns the home root directory of the currently running plugin

get_filename

Returns the name of the currently open cadwork document.

get_active_elements

Returns the currently selected elements in the cadwork viewport.

get_element_groups

Returns a dictionary mapping names of the available building subgroups to their elements.

activate_elements

Activates the given elements in the cadwork viewport.

hide_elements

Hides the given elements in the cadwork viewport.

lock_elements

Locks the given elements in the cadwork viewport.

unlock_elements

Unlocks the given elements in the cadwork viewport.

show_all_elements

Shows all elements in the cadwork viewport.

hide_all_elements

Hides all elements in the cadwork viewport.

disable_autorefresh

Disables the automatic refresh of the cadwork viewport.

enable_autorefresh

Enables the automatic refresh of the cadwork viewport.

force_refresh

Forces a refresh of the cadwork viewport.

get_all_element_ids

Returns all element ids of the currently open cadwork document.

get_all_elements

Returns all element ids of the currently open cadwork document.

get_all_elements_with_attrib

Returns a generator containing all elements with the given user attribute set to the given value.

remove_elements

Removes the given elements from the cadwork document.

save_project_file

Saves the current cadwork project file.

zoom_active_elements

zoom active elements

get_bounding_box_from_cadwork_object

Returns the 8 vertices of an elements bounding box.

get_dimensions

get_user_point

Prompts the user to select a cadwork point in the viewport and returns the coordinates of the selected point.