Jump to content

Loop - Recall Feature Points from Pattern of Curves


Recommended Posts

Does anyone know of an efficient way to Recall Feature Points from a Curve that has a Pattern on it? In my example, I have a group of (4) curves that has a 116x pattern on them. I need to then create a FreeForm Surface for each 4x group of curves - so essentially I need to create 116x FFS that pulls from the correct set of (4) curves. 

Any and all help is greatly appreciated. 

Please sign in to view this quote.

Hi Michael, 

I am measuring a blisk. I'm limited to programming in Calypso 2023, so I cannot place patterns on a FreeForm Surface, so currently I'm programming it as 3d Curves that I will then recall feature points into a FreeForm Surface. 

image.png.5e4fc2ddcb4f53c761d312857a03bd2d.png

Due to orientation and angles, I'm measuring it as (3) cross-sections, and (2) different angles, so in total it is (6) 3d Curves, per side, so in total there are (12) 3d Curves that make up one blade. 

I'm looking for an efficient way to correctly recall feature points from the (12) individual 3d Curves into their respective FreeForm Surface. 

image.png.449186c61fcb8c9dadb303003376acdc.png

So for the example above, I'd need to pull the points from 3D Curve - 1-1(1), 3D Curve - 1-2(1), 3D Curve - 1-3(1), 3D Curve - 2-1(1), 3D Curve - 2-2(1), 3D Curve - 2-3(1), 3D Curve - 3-1(1), 3D Curve - 3-2(1), 3D Curve - 3-3(1), 3D Curve - 4-1(1), 3D Curve - 4-2(1), 3D Curve - 4-3(1). And that is for just the first blade, there are 115 more to create. It's a lot of manual work that I'm trying to avoid if possible. 

Please sign in to view this username.

 I don't have FFS, but I assume you can use formula in recall feature points.

I would use PCM to create a list with desired elements and recall that list using formula.

 

You have to change a loop index in every element, but you can come up with some "automatic index extract" from name of element or something and you just copy paste that element x115 😄

 

nameOfElement = "Point"
noOfElements = 4
noOfSections = 3
loop = 1

recallElementsList = "list("

for i = 1 to noOfElements
	for j = 1 to noOfSections
		recallElementsList = recallElementsList + qm() + nameOfElement + "_" + i + "_" + j + "(" + loop + ")" + qm() + ","
	next j
next i

recallElementsList = mid(recallElementsList,1,(len(recallElementsList) - 1)))
recallElementsList = recallElementsList + ")"
//display(recallElementsList)
recallElementsList = getParameterNamed(recallElementsList)

image.thumb.png.7a356439c146fe7fa69577537cd8bdc1.png

image.thumb.png.2c606b07aa4ce8cba4f43c08499a873f.png

  • Like! 2
  • Awesome! 1
  • Thank you! 1

Please sign in to view this username.

 This is perfect! I didn't realize you could build a list like so to be used in such a way. 

Here is the complete code (I removed the sections to clean up the measurement plan), but this now has an automatic loop detection based upon the end number of the feature name. 🙂

nameOfElement = "3D Curve - "
noOfElements = 4

featureName = getNominal().testPlanGeometry.identifier
prefix = "Blisk - Free Form Surface - "

loop = mid(featureName,len(prefix) + 1,len(featureName))
loop = val(loop)

recallElementsList = "list("

for i = 1 to noOfElements
	recallElementsList = recallElementsList + qm() + nameOfElement + i + "(" + loop + ")" + qm() + ","
next i

recallElementsList = mid(recallElementsList,1,(len(recallElementsList) - 1))
recallElementsList = recallElementsList + ")"

//display(featureName)
//display(loop)
//display(recallElementsList)

recallElementsList = getParameterNamed(recallElementsList)

If you want to keep from the list overwriting for every feature, you can use the following as well. 
 

nameOfElement = "3D Curve - "
noOfElements = 4

featureName = getNominal().testPlanGeometry.identifier
prefix = "Blisk - Free Form Surface - "

loop = mid(featureName,len(prefix) + 1,len(featureName))
loop = val(loop)

tempRecallList = "list("

for i = 1 to noOfElements
	tempRecallList = tempRecallList + qm() + nameOfElement + i + "(" + loop + ")" + qm() + ","
next i

tempRecallList = mid(tempRecallList,1,(len(tempRecallList) - 1))
tempRecallList = tempRecallList + ")"

recallElementsList[loop] = getParameterNamed(tempRecallList)

 

  • Like! 2
  • 1 month later...

Now I'm running into an issue that I don't quite understand why it doesn't work. 

I am able to successfully use PCM to generate an appropriate list to be able to recall the correct points from the 3d Curves to the Free Form Surfaces, but then I wanted to go inverse and do some subsequent checks, so I wanted to have a 3d curve that pulled from the correct Free Form Surface. I can manually select it, but I'm unable to get the formula to work - it just straight-up doesn't select the Feature name, even though it is correctly listed. 

 

Ideally what I'd like to do is have a 3d Curve that has a pattern on it, so then my formula should just be 

"Blisk - Free Form Surface - " + LOOP1

And while the computation shows correct, it just doesn't select it from the list. For now I just have the pattern curve pull from the original curves, but I'm not a fan of it because Calypso wants to redraw the pattern on those (4) curves, so every time you click on it, it has a huge delay. 

Any one have any thoughts as to what is going on?

×
×
  • Create New...