What element should be added to complete sketch feature with Creo Toolkit
Hi community,
I'm trying to create a program that automatically generate sketch curve features from local text files, referring this article.
https://www.ptc.com/en/support/article/cs279605
Apart from the article, I changed a definition of line from Pro2dSplinedef into Pro2dLinedef because I would like to depict skech with straight lines.
Now the program can generate a sketch on a datum plane, but it does not treated as "closed section".
Could anybody show me what should I do with my code? Should I add any element to the sketch feature?
Thanks!

