Skip to main content

Hi, I am writing a macro to modify some surface properties and I can't figure out how to define a pickup...



Here is what I am trying to do:



SRFn (actually a coordinate break) : I use SETVAR to set the parameter #1 to variable



SRFn+3 (I want to make it a coordinate break return): I would like to set parameter #1 of this srf by pickup the one of SRFn but I can't find the right ZPL keyword to do that.



 



Any help is welcome.

Hi Renaud,



I hope this macro excerpt can help:





# Surface where the solve is set

pickup_surface = 2

# Surface from which the solve is picked up

from_surface = 1

# Solve code for a [Thickness Pickup]

# (Parameter pickup code is 'PP_p' where p is the parameter number)

thickness_pickup$ = 'TP'

# Solve codes can be found in the Help File under:

# The Programming Tab > About the ZPL > KEYWORDS (about the zpl) > SOLVETYPE

# Scale factor

scale_factor = 1.25

# Offset

offset = 2.75

# Conic column (Parameter 1-12 columns are encoded with numbers 5-17 respectively)

conic = 3

# The columns are encoded as specified under:

# The Programming Tab > About the ZPL > Using ZPL Macro Solves > Integer Codes for Column Numbers

# Setup the pickup solve

SOLVETYPE pickup_surface, thickness_pickup$, from_surface, scale_factor, offset, conic


Take care,



David


Thank you David, I will have a try.



 



 


Reply