You are currently reviewing an older revision of this page.
# Only check elements in reference files, this skips any element# in the master fileif (file <> 0) then # Next assign the logical name of the current element's # reference file to the ip_logical_index. This # is required to make ip_short_ref_filename contain # the filename for the current reference file. # Note that iplot assigns unique logical names to # references that do not have logical names. This # means the code below works with ALL reference # files. ip_logical_index = lname # look up the filename (with extension, but no path) # based on the ip_logical_index set above. Compare it # to *ref1.dgn. * matches any character in any number. # this comparison matches any reference filename ending # in ref1.dgn if (ip_short_ref_filename == "*ref1.dgn") then color = 'red' endif # same as above but for files ending in ref2.dgn if (ip_short_ref_filename == "*ref2.dgn") then color = 'green' endifEndif
# Only check elements in reference files, this skips any element# in the master fileif (file <> 0) then # Next assign the logical name of the current element's # reference file to the ip_logical_index. This # is required to make ip_short_ref_filename contain # the filename for the current reference file. # Note that iplot assigns unique logical names to # references that do not have logical names. This # means the code below works with ALL reference # files. ip_logical_index = lname
# look up the filename (with extension, but no path) # based on the ip_logical_index set above. Compare it # to *ref1.dgn. * matches any character in any number. # this comparison matches any reference filename ending # in ref1.dgn if (ip_short_ref_filename == "*ref1.dgn") then color = 'red' endif
# same as above but for files ending in ref2.dgn if (ip_short_ref_filename == "*ref2.dgn") then color = 'green' endif
Endif
Requires InterPlot 8.9.3.xx or higher
# Offset sheet numbers by 11if (characters == 'page_number') then # Create new variable for page numbers envr_variable = "IPLOT_PageNum" # Store current page number envr_value = page_number # Add offset to current page number envr_value_num = envr_value_num + 11 # Substitute new page number in for characters characters = envr_valueendif if (characters == 'total_pages') then # Create new variable for total page number envr_variable = "IPLOT_TotalPages" # Store current number of pages envr_value = total_pages # Add offset to total pages envr_value_num = envr_value_num + 11 # Substitute new total page number in for characters characters = envr_valueendif