How can I create a toolpath and change it's name in time?

ctlong2002
Participant
Participant

How can I create a toolpath and change it's name in time?

ctlong2002
Participant
Participant

How can I create a toolpath and change it's name in time ? Not generate a serial number !  It's necessary when I run a macro. Otherwise ! I must create a toolpath and rename it .未命名.png

0 Likes
Reply
Accepted solutions (1)
654 Views
4 Replies
Replies (4)

kukelyk
Advisor
Advisor

Try this

CREATE TOOLPATH "Yourtoolpathname"  AREACLEAR_OFFSET 

Or try with these:

3DOFFSET
ALONG
AREACLEAR_ADAPTIVE
AREACLEAR_OFFSET
AREACLEAR_PROFILE
AREACLEAR_RASTER
BLADE
BLISK
BLISK_BLADE
BLISK_HUB
CHAMFER
CONSTZ
CORNER_CLEARANCE
CURVE_AREA_CLEAR
CURVE_PROFILE
CURVE_PROJECTION
DISC_PROFILE
DRILLING
EDGEBREAK
Embedded
FACE
FLOWLINE
FORM
GUI
INTERCONSTZ
LINE_PROJECTION
MULTIPENCIL
NL
OFFSET_FLAT
OPTICONSTZ
PARAMETRIC_OFFSET
PARAMETRIC_SPIRAL
PATTERN
PENCIL
PLANE_PROJECTION
POINT_PROJECTION
PROFILE
QUIT
RADIAL
RASTER
RASTER_FLAT
RIB
ROTARY
SPIRAL
SPLITTER
STITCH
STITCHALONG
SURFACE_MACHINE
SURFACEPROJ
Swarf
TUBE_AREACLEAR
TUBE_PLUNGE
TUBE_SPIRAL
WIREFRAME_PROFILE

ctlong2002
Participant
Participant

command error:

CREATE TOOLPATH "AA1"  AREACLEAR_OFFSET 

Unsupported feature or command

0 Likes

kukelyk
Advisor
Advisor
Accepted solution

unfortunately this command is no more available, it works in PM2016.. You can try this:

//fill this with Your templates:
STRING LIST templates = {"2.5D-Area-Clearance\2D-Curve-Area-Clearance.002.ptf";"2.5D-Area-Clearance\2D-Curve-Profile.002.ptf";"2.5D-Area-Clearance\Face-Milling.ptf";"2.5D-Area-Clearance\Chamfer-Milling.ptf";"3D-Area-Clearance\Model-Area-Clearance.003.ptf"}
//fill this with Your custom names:
STRING LIST customnames = {"2d_roughing"; "2d_profile"; "Face" ; "Chamfer"; "3d_roughing" }
INT c = 0
$c = INPUT CHOICE $templates "Select the template:"
STRING selected = $templates[$c]  
IMPORT TEMPLATE ENTITY TOOLPATH $selected
STRING tpname = $customnames[$c]
IF NOT ENTITY_EXISTS('toolpath', $tpname) {
	INT $i = 1
	STRING tempname = $tpname + $i
	WHILE ENTITY_EXISTS('toolpath', $tempname) {
		$tempname = $tpname + $i
		$i = $i + 1
	}		
	RENAME TOOLPATH ; $tempname
}

ctlong2002
Participant
Participant

Thank you very much !

0 Likes