Community
PowerMill Forum
Welcome to Autodesk’s PowerMill Forums. Share your knowledge, ask questions, and explore popular PowerMill topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
ctlong2002
648 Views, 4 Replies

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

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

4 REPLIES 4
Message 2 of 5
kukelyk
in reply to: ctlong2002

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

Message 3 of 5
ctlong2002
in reply to: kukelyk

command error:

CREATE TOOLPATH "AA1"  AREACLEAR_OFFSET 

Unsupported feature or command

Message 4 of 5
kukelyk
in reply to: ctlong2002

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
}
Message 5 of 5
ctlong2002
in reply to: kukelyk

Thank you very much !

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report