Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hi,
I've been working on reading Sketch from a part feature through API. With the APIs I can go upto Feature types and Subitems. In subitems I'm not able to find sketches.
Could anyone please help?
Thanks
Solved! Go to Solution.
Hi,
you cannot access to the element tree or to sketcher entities through the VB API – COM object.
This is not free functionality. It‘s possible only with licensed APIs - TOOLKIT C/C++/Java.
I'm convinced; see/compare the API doc for VB API vs. Object C++.
PZ
You cannot get sketch directly if same is used in extrude or other feature.
You have to identify type of feature first. Then extract element tree of feature to get element of sketch. From sketch, you can get lines and arcs which all are available.
Hi,
Thank you for the reply.
Under each feature there is an option to get Subitems. But while selecting subitems there is no feature to select 'Sketch'. There are options for points, dimensions as ModelItems. Could you please direct me towards any option?
I'm using API COM refernce with C#.
Thanks
I am sorry as i would not able to help you on those APIs. I am into toolkit API of C++.
Okay. Cool.
As Long you read only
ProFeatureNumSectionsGet (ProFeature *feat_handle,int *p_n_sections);
next
ProFeatureSectionCopy (ProFeature *feat_handle,int section_number,ProSection *p_section);
Now you have a section copy.
Hi,
Thanks for the reply. The methods you mentioned are with using ProToolKit but I'm using APIs with C#.
How can do the process with APIs?
Hi,
you cannot access to the element tree or to sketcher entities through the VB API – COM object.
This is not free functionality. It‘s possible only with licensed APIs - TOOLKIT C/C++/Java.
I'm convinced; see/compare the API doc for VB API vs. Object C++.
PZ