Skip to main content
10-Marble
Aug 1, 2023 8:23 AM UTC
Question

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!

 

 

 

 

 

 

2 replies

17-Peridot
Aug 2, 2023 9:49 AM UTC

Use the function ProSectionIntentManagerModeSet() to set the Intent Manager property to ON or OFF for the specified section. This function must be called before using the other Creo Parametric TOOLKIT functions to access sections with the Intent Manager property set to ON.

Translate
Yu_70710-MarbleAuthor
10-Marble
Aug 3, 2023 11:57 PM UTC

Thank you for your suggestion. My code includes the function as same as the article. 

Even the code has the function, I still could not have closed section somehow. Lines included in the section seem to not be connected each other(see screen shots plz). The problem is supporsed to have nothing with the function.
Do you know how to help?

 

SS2.pngdSS1.png

Translate