Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JStephen on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

protoolkit - load coordiantes

  • Thread starter Thread starter bocian49
  • Start date Start date
B

bocian49

Guest
I starting programing with protoolkit and I want to create application which load a coordinates of points created in part to some text document. Is it possible?



I work with Creo Parametric 1.0



Thanks for answer



Viktor
 
use ProPointCoordGet() .. it will return 3D vector with values of x,y,z co-rdinates using C++ calls write them to text document.
 
Read in the API Wizard about visiting geometry. You will learn how to traverse the features of a solid and then to visit each geometry item of the feature. You can then call APIs to get the X, Y, Z coordinates of the geometry in the solid coordinate system. If you need the points out in a different coordinate system then you will have to transform the point by using a matrix. It's all a LOT OF FUN...
 
Thanks for your answers.
 
I have one more question.

I created application which load points and print coordinates to text file with your help. But I want to skip hidden points.

I tried to use function ProGeomitemIsInactive but application writes coordinates of hidden points to file. Is it the proper function for my problem or I have to use some other function?

Thanks for your answers

Regards

Viktor
Edited by: bocian49
 
I would give try to following APIs-
ProFeatureStatusGet()
ProFeatureElemIsVisible().
 

Part and Inventory Search

Sponsor

Back
Top