from hwx import inspire
from hwx.inspire import motion
model = inspire.openTutorialFile("Motion/M01_FourBar.stmod")
link = model.getChild('Link Single Slot')
tracer = motion.Tracer(
name='Tracer 1',
pen=link.features[0],
location=link.location,
color='Red',
thickness=2
)
analysis = motion.MbdAnalysis()
analysis.analyze()