Skip to content

Resolve "Create Build class"

Lucas POLO-LOPEZ requested to merge 14-create-build-class into develop

Closes #14 (closed)

Classes to integrate

  • Material
  • Shape
  • Boolean
  • Transform

Methods to implement

deleteObject(self, objectName, objectType)

objectType can be either "Solid" or "Component". Use adequate delete command depending on this:

  • 'Solid.Delete "{}"'.format(objectName), 'delete shape: {}'.format(objectName)
  • 'Component.Delete "{}"'.format(objectName), 'delete component: {}'.format(objectName)

If the Solid/Component does not exist, CST will return an error. Catch the error message and return it through a RuntimeError.

Merge request reports

Loading