So basically the system allows you to generate primitives and then it also allows you to search for them by drawing some shapes and then it looks for similar shapes in the line data-base and pulls out all the relevant related figures.