Sketch (hwx.inspire.Sketch)#
- class Sketch(system='Global Z', feature=None, origin=None, normal=None)#
Bases:
Sketch
Inspire version of the core Sketch class. Redefines the initialization to use CFs and has method to convert to an Inspire Part.
# Name
Description
realize
(self)Return this sketch as an Inspire Part. This allows to do push/pull on it.
Example
from hwx import inspire from hwx.inspire import Sketch # Start with an empty model model=inspire.newModel() s = Sketch() r = s.addRectangle2Vertex((0, 0), (2, 2)) c = s.addCircleCenterRadius((1, 1), 0.3) skp = s.realize() skp.features[10].pushPull(2.5) inspire.orientView(direction="isometric")
- realize()#
Return this sketch as an Inspire Part. This allows to do push/pull on it.