Skip to main content
Solved

How to use SETSURFACEPROPERTY to set TILT Z for a COORDINATE BREAK SURFACE

  • August 27, 2024
  • 1 reply
  • 102 views

Forum|alt.badge.img

This should be pretty simple to do but I can’t figure it out.  In a .ZPL I am trying to set the value of the Tilt about Z for Coordinate Break surface #12.  It seems that this is PARAMETER 5.

 

So I use the command:

SETSURFACEPROPERTY  12, 5 123.456

 

nothing happens,

 

 

It is so simple in CodeV.

CDE S12 123.456

So archaic that Optic Studio uses “parameter number” instead of a simple keyword like ADE, BDE, CDE for tilt. CDE is tilt about Z axis (rotation)

 

Best answer by MichaelH

Hey Harvey,

For someone coming from CodeV, I can see how this can be challenging, but you also needed to learn what ADE, BDE, CDE was for CodeV when you first started...this is no different.

  • For the ZPL, you can use either SETSURFACEPROPERTIES or SURP
  • To change an extra data parameter (anything to the right of the TCE column), you need to use the PARM (10) code
  • To set the new number, the Value1 should be 123.456
  • To change the Tilt About Z, the Value2 should be 5

So the final code should be:

SURP 12, 10, 123.456, 5

View original
Did this topic help you find an answer to your question?

1 reply

MichaelH
Ansys Staff
Forum|alt.badge.img+2
  • Ansys Staff
  • 355 replies
  • Answer
  • August 27, 2024

Hey Harvey,

For someone coming from CodeV, I can see how this can be challenging, but you also needed to learn what ADE, BDE, CDE was for CodeV when you first started...this is no different.

  • For the ZPL, you can use either SETSURFACEPROPERTIES or SURP
  • To change an extra data parameter (anything to the right of the TCE column), you need to use the PARM (10) code
  • To set the new number, the Value1 should be 123.456
  • To change the Tilt About Z, the Value2 should be 5

So the final code should be:

SURP 12, 10, 123.456, 5


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings