Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hi all,
We just upgraded to Creo Parametric 2.0 and we finally want to automate a arc count for our new designed tubes.
In the attachment you can find a simple tube and how they are created in Creo 2.0. In our top assemblies we have 50 to 100 of these tubes so automation is wishfull.
Does anybody know how we can count the arcs found in the information window of the feature.inf and put the value onto a specifik parameter called "aantal_bochten" (integer). If this can be achieved with: relations, jlink, vbapi, mapkey or whatever it's okay.
Thanks in advance,
The feature is created with datum points in combination with the pipe feature functionality within Creo 2.0.
We talked with our supplier of Creo and they asked us if it was possible to say count the usage of the points of the pipe feature and substract them with 2. Perhaps this helps with finding a solution for our problem.
Thanks in advance
I would create a trail file that dumped the model info for one part; then look at the places where the file name is used in that trail file and create a little program that reproduced the trail file with the names of the parts you are interested in. VBA can be used for this. Change the trail file suffix to .txa to run it as a Training file and then run that.
You can get a list of all the parts in the assembly from the info-BOM to use as a list of files to look through; it doesn't matter if it picks up more than the pipe files, it's just creating the model info file.
Then run a second program on the same list that looks for the pipe features and their related arcs.
Combine this with a list of pipe assembly BOMs to add up the individual arc counts; I'd probably use Excel for this.
For example:
pipe assy name | pipe component name | vlookup (pipe component name) -> number of arcs in pipe component.| running total
pipe assy 1 | pipe part 1 | 2 | 2
pipe assy 1 | pipe part 2 | 3 | 5
pipe assy 2 | pipe part 3 | 1 | 1
pipe assy n | pipe part m| x | x
Dear David,
This helps a bit but for the most important thing "fill in the paramater in Creo model" not.
If there is a possiblity for that functionality combined with the other (described in the problem) would be great.
Thanx,
Lars Erckens