Is there a function in jlink/tool-kit/otk api to copy paste features?
I've a requirement where in I need to automate a shaft modeling and drafting. There are many segments in the shaft that will have spur gear or a helical gear. The number of segments and type of segment is an user input. Hence the shaft has to be generated in runtime. To do that I was planning to keep different types of segments built in separate files and based on the user requirement the program will chose a segment and copy the features from the respective file and paste it in to the current model being built. It is possible to copy paste features in native Creo2. Is there a function in jlink/tool-kit/otk api that could do this? Or is there any other work around?
Re: Is there a function in jlink/tool-kit/otk api to copy paste features?
To be honest, I wouldn’t do it by copy and paste. I would create a 200% Model linked with a 200% Drawing. Provide an interface for all the options you have. Then resume/suppress features and modify dimensions and parameters. This will save you a lot of time. If 80% of the drawing stuff will regen, you will be a hero. Don’t forget - Start simple, it could end up as a nightmare 🙂