Extended modules > Advanced Machining > Machining customization > Customizing the flag/label strings used for the Creo Elements/Direct Machining Advisor Features
  
Customizing the flag/label strings used for the Creo Elements/Direct Machining Advisor Features
This is an example file showing the possibility to customize name of a Creo Elements/Direct Machining Advisor Feature by using customization functionality provided by Creo Elements/Direct Machining Advisor.
The Features have the following names and flag strings (here the english ones), if you specify the key :reset instead of a string, the name will be reset to the Creo Elements/Direct Machining Advisor standard values. (The names of the features are split after MACH_ADV_LIBRARY_ and after COUNTERSUNK_ in order to get a smaller table).
Feature
Name
Parameter
MACH_ADV_LIBRARY_
BLINDHOLE
Blind HOLE~%Drill {1} Dia Hole to depth {2}~%cone angle {3}
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :CONE_ANGLE
MACH_ADV_LIBRARY_
COUNTERSUNK_
BLINDHOLE
Countersunk Blind HOLE~%Drill {1} Dia Hole to depth {2}~%Chamfer depth {3}~%Cone angle {4}
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :CHAMFER_DEPTH
4. :CONE_ANGLE
MACH_ADV_LIBRARY_
COUNTERBORED_
THROUGHHOLE
COUNTERBORED THROUGHHOLE~%Drill {1} Dia Hole to depth {2}~% Sink {3} dia to depth {4}
1. :HOLE_DIA
2. :HOLE_DEPTH
3. :SINK_DIA
4. :SINK_DEPTH
MACH_ADV_LIBRARY_
COUNTERBORED_
THROUGHHOLE_WITH_CHAMFER
COUNTERBORED THROUGHHOLE WITH CHAMFER~%Drill {1} Dia Hole to depth {2}~% Sink {3} dia to depth {4}~%chamfer {5}
1. :HOLE_DIA
2. :HOLE_DEPTH
3. :SINK_DIA
4. :SINK_DEPTH
5. :CHAMFER_DEPTH
MACH_ADV_LIBRARY_
COUNTERSUNK_
PARTIALLY_TOLERANCED_BLINDHOLE
Countersunk Partially Toleranced Blind HOLE~%Drill {1} Dia Hole to depth {2}~%Chamfer depth {3}~%Cone angle {4}
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :CHAMFER_DEPTH
4. :CONE_ANGLE
MACH_ADV_LIBRARY_
COUNTERSUNK_
PARTIALLY_TOLERANCED_FLAT_BLINDHOLE
Countersunk Partially Toleranced Flat Blind HOLE~%Drill {1} Dia Hole to depth {2}~%Chamfer depth {3}
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :CHAMFER_DEPTH
MACH_ADV_LIBRARY_
COUNTERSUNK_
PARTIALLY_TOLERANCED_THROUGHHOLE
Countersunk Partially Toleranced Through HOLE~%Drill {1} Dia Hole to depth {2}~%Chamfer depth {3}
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :CHAMFER_DEPTH
MACH_ADV_LIBRARY_
COUNTERSUNK_
THROUGHHOLE
COUNTERSUNK THROUGHHOLE~%Drill {1} Dia Hole to depth {2}~%Chamfer depth {3}
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :CHAMFER_DEPTH
MACH_ADV_LIBRARY_
FLAT_BLINDHOLE
Flat Blind HOLE~%Drill {1} Dia Hole to depth {2}
1. :DRILL_DIA
2. :DRILL_DEPTH
MACH_ADV_LIBRARY_
COUNTERSUNK_
FLAT_BLINDHOLE
Countersunk Flat Blind HOLE~%Drill {1} Dia Hole to depth {2}~%Chamfer depth {3}
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :CHAMFER_DEPTH
MACH_ADV_LIBRARY_
PARTIALLY_THREADED_THROUGHHOLE
TAPPED HOLE~%Drill {1} Dia Hole to depth {2}~% Thread Diameter {3} x Thread Size {4} to depth {5}
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :THREAD_SIZE
4. :THREAD_DIA
5. :DRILL_DIA
6. :DRILL_DEPTH
7. :TAP_DEPTH
If the given string contains the following "{3}{4}" i.e. the thread diameter and the thread size without separating characters, the combined short hand notation for thread and lead will be used.
MACH_ADV_LIBRARY_
PARTIALLY_THREADED_BLINDHOLE
Partially Threaded Blind Hole~%Drill {1} Dia Hole to depth {2}~% Thread Diameter {3} x Thread Size {4} to depth {5}
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :THREAD_SIZE
4. :THREAD_DIA
5. :TAP_DEPTH
If the given string contains the following "{3}{4}" i.e. the thread diameter and the thread size without separating characters, the combined short hand notation for thread and lead will be used.
MACH_ADV_LIBRARY_
THREADED_THROUGHHOLE
THREADED THROUGHHOLE~%Drill {1} Dia Hole to depth {2}~% Thread Diameter {3} x Thread Size {4}
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :THREAD_SIZE
4. :THREAD_DIA
If the given string contains the following "{3}{4}" i.e. the thread diameter and the thread size without separating characters, the combined short hand notation for thread and lead will be used.
MACH_ADV_LIBRARY_
OUTER_THREAD_WITH_CLEARANCE
Outer Thread with Clearance~%Thread Length {1}~%Thread Diameter {2} x Thread Size {3}
1. :THREAD_LENGTH
2. :THREAD_DIA
3. :THREAD_SIZE
MACH_ADV_LIBRARY_
OUTER_THREAD_WITH_GROOVE
Outer Thread with Groove~%Thread Length {1}~%Thread Diameter {2} x Thread Size {3}
1. :THREAD_LENGTH
2. :THREAD_DIA
3. :THREAD_SIZE
MACH_ADV_LIBRARY_
THREAD_BOLT_WITH_CLEARANCE
Thread Bolt with Clearance~%Thread Length {1}~%Thread Diameter {2} x Thread Size {3}
1. :THREAD_LENGTH
2. :THREAD_DIA
3. :THREAD_SIZE
MACH_ADV_LIBRARY_
THREAD_BOLT_WITH_GROOVE
Thread Bolt with Groove~%Thread Length {1}~%Thread Diameter {2} x Thread Size {3}
1. :THREAD_LENGTH
2. :THREAD_DIA
3. :THREAD_SIZE
MACH_ADV_LIBRARY_
STEPPED_HOLE
Stepped hole~%Overall Depth {1}~%Number of steps {2}
1. :MAX_DEPTH
2. :NUM_STEPS
MACH_ADV_LIBRARY_ STEPPED_HOLE_FLAT_BLIND_ HOLE_STEP
(Drill {1} Dia FlatBlindHoleStep to depth {2} Chamfer depth {3})
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :CHAMFER_DEPTH
MACH_ADV_LIBRARY_
STEPPED_HOLE_BLIND_
HOLE_STEP
(Drill {1} Dia BlindHoleStep to depth {2} Chamfer depth {3} Cone angle {4})
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :CHAMFER_DEPTH
4. :CONE_ANGLE
MACH_ADV_LIBRARY_
STEPPED_HOLE_THROUGH_
HOLE_STEP
(Drill {1} Dia ThroughHoleStep to depth {2} Chamfer depth {3} Back chamfer depth {4})
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :CHAMFER_DEPTH
4. :BACK_CHAMFER_DEPTH
MACH_ADV_LIBRARY_
STEPPED_HOLE_PARTIALLY_TOLERANCED_FLAT_BLIND_
HOLE_STEP
(Drill {1} Dia FlatBlindHoleStep to depth {2} toleranced to depth {3} Chamfer depth {4})
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :TOLERANCE_DEPTH
4. :CHAMFER_DEPTH
MACH_ADV_LIBRARY_
STEPPED_HOLE_PARTIALLY_TOLERANCED_BLIND_
HOLE_STEP
(Drill {1} Dia BlindHoleStep to depth {2} toleranced to depth {3} Chamfer depth {4} Cone angle {5})
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :TOLERANCE_DEPTH
4. :CHAMFER_DEPTH
5. :CONE_ANGLE
MACH_ADV_LIBRARY_
STEPPED_HOLE_PARTIALLY_TOLERANCED_THROUGH_
HOLE_STEP
(Drill {1} Dia ThroughHoleStep to depth {2} toleranced to depth {3} Chamfer depth {4} Back chamfer depth {5})
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :TOLERANCE_DEPTH
4. :CHAMFER_DEPTH
5. :BACK_CHAMFER_DEPTH
MACH_ADV_LIBRARY_
STEPPED_HOLE_THREADED_THROUGH_
HOLE_STEP
(Drill {1} Dia Hole to depth {2} Thread Diameter {3} x Thread Size {4})
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :THREAD_DIA
4. :THREAD_SIZE
MACH_ADV_LIBRARY_
STEPPED_HOLE_PARTIALLY_THREADED_THROUGH_
HOLE_STEP
(Drill {1} Dia Hole to depth {2} Thread Diameter {3} x Thread Size {4} to depth {5})
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :THREAD_DIA
4. :THREAD_SIZE
5. :THREAD_DEPTH
MACH_ADV_LIBRARY_
STEPPED_HOLE_PARTIALLY_THREADED_BLIND_
HOLE_STEP
(Drill {1} Dia Hole to depth {2} Thread Diameter {3} x Thread Size {4} to depth {5})
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :THREAD_DIA
4. :THREAD_SIZE
5. :THREAD_DEPTH
MACH_ADV_LIBRARY_
STEPPED_HOLE_PARTIALLY_THREADED_FLAT_BLIND_
HOLE_STEP
(Drill {1} Dia Hole to depth {2} Thread Diameter {3} x Thread Size {4} to depth {5})
1. :DRILL_DIA
2. :DRILL_DEPTH
3. :THREAD_DIA
4. :THREAD_SIZE
5. :THREAD_DEPTH
|#
;;
;;---- Inquiry to get the actual Flag String for a feature class
;;
(display (cad-cam-link:CADCAMLINK-GET-FEATURE-FLAG-STRING
:FEAT-NAME "MACH_ADV_LIBRARY_COUNTERSUNK_THROUGHHOLE"))
;;
;;---- Change the actual Flag String for a CounterSunk ThroughHole to the
;;---- supplied string, the LISP primitive returns the old value
;;
(display

(cad-cam-link:CADCAMLINK-SET-FEATURE-FLAG-STRING
:FLAG-STRING "BDX~%BD={1} BT={2}~%Fase {3}"
:FEAT-NAME "MACH_ADV_LIBRARY_COUNTERSUNK_THROUGHHOLE"
)
)
;;
;;---- again inquiring the actual name string
;;
(display
(cad-cam-link:CADCAMLINK-GET-FEATURE-FLAG-STRING
:FEAT-NAME "MACH_ADV_LIBRARY_COUNTERSUNK_THROUGHHOLE"
)
);;
;;---- Change the actual Flag String for a CounterSunk ThroughHole to "....."
;;---- using the standard Command provided by Machining Advisor
;;
(MACHADV_SET_FEATURE_FLAG_TEXT
:feature_type "MACH_ADV_LIBRARY_COUNTERSUNK_THROUGHHOLE"
:feature_flagstring "BDX~%BD={1} BT={2}~%Fase {3}"
);;