Jump to content

PCM to change all features using "Base Alignment" to another alignment?


---
 Share

Recommended Posts

  • 3 weeks later...
---
I don't know about an ordinary pcm command.
but this should work:

// Name of the feature:
featureId ="Plane1"
// name of the Coord-system:
CoordSysId="Coord.-Test"
executeCode("Zeiss.Calypso.WPMeasElementExecute new setLCSToMeasElement: '" + featureId + "' with: '" + CoordSysId + "' move: 0")
"move: 0" transforms the geometry nominals (x,y,z value) into the new Coord.-System
"move: 1" means no transformation 
Link to comment
Share on other sites

  • 2 weeks later...
---
Is there a way to use the above code that finds all instances of a named alignment in all features?
Link to comment
Share on other sites

---

CoordSysId="Coord.-Test"
constElements=baseSystem().machine.inspection.nominalPart.constructedGeo.dictionary.values
allMeasEl=baseSystem().machine.inspection.allMeasElementNames

for i=1 to constElements.size
 el=getParameterNamed(constElements,i)
  if el.identifier == CoordSysId then
   // all me and cf with CoordSysId
   refs=el.checkReferences
    endif
     next i

// check for feature
for j= 1 to refs.size
 refEl=getParameterNamed(refs,j)
  for k=1 to allMeasEl.size
   if getParameterNamed(allMeasEl,k)==refEl then
    display(refEl)
     endif
      next k
       next j



Link to comment
Share on other sites

---
Nice one Michael, thank you for all the support here.

I would have been surprised if ANYONE at Zeiss would have came up with something this clever.

Probably typical canned response "nope, can't be done", etc.

Cheers Mate !

🧑‍💻
Link to comment
Share on other sites

---

Please sign in to view this quote.

Clever method. I am consistently impressed with the clever solutions to unique questions presented in the ZEISS Forum. Thank you for your contribution Michael. This type of support and spread of knowledge is a benefit to all and the intent of the Forum

Please sign in to view this quote.

Is there something you'd like to discuss? I find this statement to be generally insulting and disrespectful to myself and my colleagues who provide direct support to you and your colleagues on a regular basis. Did you have something you would like to have myself or my team review for you?
Link to comment
Share on other sites

---
Jeff,

Certainly no hard feeling to you sir, you've been nothing but helpful here.

I actually do have a request in original Req# 8102943763 ; which was cancelled with no response at all.

I reached out to inquire and told it was a complex PCM/QDAS request and they have sent to Germany.

I had a different meeting involving something else a few days later with our RSM, and he says the request came into him; maybe that's where it's supposed to go ? Doesn't seem like it.

Anyways yes I apologize for a few of my not so satisfying experiences with Zeiss overall I do still prefer Zeiss over most. 🙂

Thank you again for everyone that helps on the forums as well.

1
Link to comment
Share on other sites

 Share

×
×
  • Create New...