cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to read Part Sketch Information? Like points, lines, sketch planes.

SOLVED
Highlighted
Amethyst

How to read Part Sketch Information? Like points, lines, sketch planes.

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

Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: How to read Part Sketch Information? Like points, lines, sketch planes.

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

View solution in original post

7 REPLIES 7
Highlighted

Re: How to read Part Sketch Information? Like points, lines, sketch planes.

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.

Highlighted

Re: How to read Part Sketch Information? Like points, lines, sketch planes.

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

Highlighted

Re: How to read Part Sketch Information? Like points, lines, sketch planes.

I am sorry as i would not able to help you on those APIs. I am into toolkit API of C++.

Highlighted

Re: How to read Part Sketch Information? Like points, lines, sketch planes.

Okay. Cool.

Highlighted

Re: How to read Part Sketch Information? Like points, lines, sketch planes.

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.

Highlighted

Re: How to read Part Sketch Information? Like points, lines, sketch planes.

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?

Highlighted

Re: How to read Part Sketch Information? Like points, lines, sketch planes.

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

View solution in original post

Announcements