Tips & Tricks

Tips & Tricks

GlennM.MCAM
Collaborator Collaborator
31,770 Views
98 Replies
Message 1 of 99

Tips & Tricks

GlennM.MCAM
Collaborator
Collaborator

Hi all!

I thought it would be a good idea to post some tips and tricks for certain actions. Some of you will know them, other don't.
Please post as much tips & tricks as you want. Here are mine:

 

 

Since it is not possible to export the stockmodel as a dmt file, I save the viewmill state as dmt and use that as a block.

 

 

If you need a selection of your model and want to save this selection, use this macro:

CREATE LEVEL ; MODELCOMPSET EDIT LEVEL # ACQUIRE SELECTED

Greetings,

Glenn


Intel i7 4790 @ 3.60GHz -16GB RAM - Nvidia Quadro K620 - 250GB SSD - Win 7 Pro x64 SP1
PowerMILL Premium 2019.1 - PowerINSPECT Ultimate OMV 2017 SP6
31,771 Views
98 Replies
Replies (98)
Message 21 of 99

Anonymous
Not applicable

seleziona superfici.JPG

 

Hello everyone.

It came up with a very simple but comfortable control.

Press Ctrl + Alt + cilck mouse on a surface.

Doing so will select all the surfaces of that color

Thank you all

Message 22 of 99

rui_rita
Advocate
Advocate

@iamcdn79

 

maybe with "macro pause 'CREATE YOU SKETCH"

 

you can have both macros running...



Os melhores cumprimentos | Best regards
Rui Rita
________________________________
NEWCAM, Lda.
Message 23 of 99

iamcdn79
Mentor
Mentor

Thanks @rui_rita 

 

STRING Msg = "" 
MACRO PAUSE $Msg

 worked for me


Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro

0 Likes
Message 24 of 99

iamcdn79
Mentor
Mentor

In Powermill 2018 you can use your mouse wheel to scroll between the tabs on the ribbon interface instead of clicking


Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro

Message 25 of 99

cory_barrette
Autodesk
Autodesk

Hey @iamcdn79,

 

Nice tip!

Cheers,
Cory B
Applications Engineer
Autodesk Manufacturing
0 Likes
Message 26 of 99

iamcdn79
Mentor
Mentor

In Powermill 2018, Replay Limits!!!!!

 

After editing your toolpath you do not have to redo your trim limits if you want to change your stepover, thickness, tolerance, tool etc. See Attached video

 

You have to have the box checked on in File->Options->Application Options->Toolpaths->Calculation

 

Capture.PNG


Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro

Message 27 of 99

Anonymous
Not applicable

I got it, great. Thanks. 

0 Likes
Message 28 of 99

urizenYHS3W
Advocate
Advocate

You can turn it on/off on individual toolpaths with

 

  EDIT PAR "AutoReplay" "1"

  EDIT PAR "AutoReplay" "0"

 

followed by EDIT TOOLPATH ; REAPPLY.

 

There should be some GUI for it soonish.

 

 

 

Message 29 of 99

5axes
Advisor
Advisor

urizenYHS3W wrote :

 

There should be some GUI for it soonish.

 

 


I would say it's already implemented via the option "Automatically replay edits"

AutomaticReplayEdits.jpeg

Message 30 of 99

5axes
Advisor
Advisor

Hello,

 

One Tips & Tricks concerning the creation of a Tool Holder  from a 3D Model with just 2 functions of PMILL. Thanks to the new function used to define the turning profile and introduce in PMILL 2017 you can now easily define your Tool holder from a 3D Model.

STEP 1: Load in PMILL your 3D Model. The Z direction must be well oriented but if the model comes from a Tool supplier it should be the case.

Holder 0 clic.jpg

 

STEP 2 : create a pattern and use the "Spun Profile" function to detect the Profile. You don't need to care about the position of the origine, It must be just on the Central axis of the Holder.

Holder 1 clic.jpg

 

STEP 3: In the tool holder definition use the the function "Create Holder from the selected pattern"  .. That's it  Smiley Wink

Holder 2 clic.jpg

 

Message 31 of 99

GlennM.MCAM
Collaborator
Collaborator

I always store my projects in the network location of our customer and mould number. This macro gets the modelpath and uses the name of the model in the menu tree.

I thought this might come in handy for some people also.

Planes are ignored. With multiple models you get a popup to select the name to be used. If the project already exists, it will just save it.

 

STRING LIST models = {}
FOREACH md IN FOLDER('model') {
     IF position($md.name, "Planes") == -1 {
          INT k = add_last($models, $md.name)
     }
}
STRING ModelName = ''
IF size($models) == 1 {
     $ModelName = $models[0]
} ELSE {
     $ModelName = INPUT ENTITY MODEL "Choose model"
}
STRING ModelPath = entity('Model','$ModelName').path
$ModelPath = dirname(ModelPath) 
STRING saveas = $ModelPath + '\' +  $ModelName

//if project already exist, just save it.
IF dir_exists($saveas) { 
PROJECT SAVE

//if project doesn't exist, save it as modelname in model location
} ELSE { 
		BOOL NameCheck = FALSE
		STRING $Question = "Is this path and modelname correct?" +CRLF+ $saveas
		$NameCheck = QUERY $Question
		IF $NameCheck {
		PROJECT SAVE AS $saveas 
		STRING $Message = "Project has been saved in" +CRLF+ $saveas
		MESSAGE INFO $Message
		}
}

 

 


Intel i7 4790 @ 3.60GHz -16GB RAM - Nvidia Quadro K620 - 250GB SSD - Win 7 Pro x64 SP1
PowerMILL Premium 2019.1 - PowerINSPECT Ultimate OMV 2017 SP6
0 Likes
Message 32 of 99

5axes
Advisor
Advisor

Two weeks ago someone have requested a solution to easily measure a draft angle on the part. @N:\PPI\Nominatif\LALLIARD\Test-5x\2017_Essais-5-axes\Vidéo

 

MesureA.jpg

 

I'm using the same solution but as usual with the help of a macro (PMILL 2017 / 2018) . This macro is call from a Key Shortcut (F2) in my case.

 

//
// Measure and display Draft angle Value
// F2 to call the macro
// 	
FUNCTION MAIN() {
If NOT member($session._keys, "DraftAngle") {
	SESSIONPAR BOOL DraftAngle = 0
} 

	MEASURE CLEAR_ALL MODE VECTOR START MEASURE DIRECTION
	MODE DIRECTION ALIGN GEOM
	
IF $session.DraftAngle==0 { 

	VIEW MODEL ; SHADE UNDERCUT
	$session.DraftAngle=1
} ELSE {

// Get the Direction vector
REAL V_I= REAL($widget('DirectionInput.DirectionFrame.I').value)
REAL V_J= REAL($widget('DirectionInput.DirectionFrame.J').value)
REAL V_K= REAL($widget('DirectionInput.DirectionFrame.K').value)

REAL Calc =0

IF $V_K == 0 {
	$Calc=90
} ELSE {
	$Calc=sqrt(($V_I*$V_I)+($V_J*$V_J))
	// PRINT $Calc
	$Calc = Atan($Calc/$V_K)
    if $Calc > 180 {
		$Calc=$Calc-180
	}
}
STRING $Qry = "Draft angle : " + $round($Calc,3)
BOOL Ret = 0
$Ret = QUERY $Qry

IF $Ret  {
	DIRECTION ACCEPT
	$session.DraftAngle=0
} ELSE {
    // Activate Direction measure mode for next value
	MODE DIRECTION ALIGN GEOM
}

}

 

To use this macro add the shortcut into your keyboard shortcut

MesureB.jpg

 

Then call the macro each time you need To mesure a point with F2 ( or your shortcut)

 

  • One call will open the measurement Windows. Pick a point on the part where  you want to get the draft angle
  • Press again F2 to get the Value

If you not validate the value, you can pick a new point. Press again F2 to get the new value : if you validate the result the macro will close the measurement Windows.

 

MesureC.jpg

Message 33 of 99

jonathan.artiss
Alumni
Alumni

Press and hold the Alt key for a few seconds and your quick access toolpath will display numbers over the icons. Press the number to open the function. 

 

2017-10-26_12-32-27.png


Jonathan Artiss
Application Engineer
Submitting & Viewing Support Requests | Web Support | Phone Support
Message 34 of 99

iamcdn79
Mentor
Mentor

@jonathan.artiss I was always wondering why those numbers popped up liked that, thought it was a bug, is there an option to disable that?


Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro

0 Likes
Message 35 of 99

jonathan.artiss
Alumni
Alumni

@iamcdn79


@iamcdn79 wrote:

@jonathan.artiss I was always wondering why those numbers popped up liked that, thought it was a bug, is there an option to disable that?


I believe this is the same with all Autodesk products, or similar at least. 

 

I do not know of a way to disable it. Maybe an option under keyboard shortcuts?


Jonathan Artiss
Application Engineer
Submitting & Viewing Support Requests | Web Support | Phone Support
0 Likes
Message 36 of 99

iamcdn79
Mentor
Mentor

I looked there and Customize the Ribbon and Quick Access Toolbar but couldn't see anything that would disable that.

 

Maybe some hidden macro command?


Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro

0 Likes
Message 37 of 99

jonathan.artiss
Alumni
Alumni

@iamcdn79

 

Looking at this a bit more, I think that it's a Windows setting. Similar options are appearing in my Outlook.... 

 

Either way, it works in PowerMill and I think it's a cool option. 


Jonathan Artiss
Application Engineer
Submitting & Viewing Support Requests | Web Support | Phone Support
0 Likes
Message 38 of 99

iamcdn79
Mentor
Mentor

@5axes wrote:

@Anonymous weeks ago someone have requested a solution to easily measure a draft angle on the part. @N:\PPI\Nominatif\LALLIARD\Test-5x\2017_Essais-5-axes\Vidéo

 

 

 

  • One call will open the measurement Windows. Pick a point on the part where  you want to get the draft angle
  • Press again F2 to get the Value

 

 

 


Nice work, is there a way to get the draft angle displayed without having to hit F2 again? I would just like to pick a point and display that draft angle value


Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro

0 Likes
Message 39 of 99

kukelyk
Advisor
Advisor

I think it is no so cool:

Message 40 of 99

paolo.bastianelli
Community Manager
Community Manager

The Alt button tip is definitely a Windows functionality, not just PowerMill specific.

 

It used to work in previous versions too, it would just appear differently (the first letter of each words would be underlined when pressing Alt, suggesting that pressing F the File dropdown menu would open up, pressing T the Tools dropdown menu would open up and so on - see attached image).

I agree, it gets annoying for users with many icons in their quick access toolbar, but it can be quite useful for those that only have a handful of them.

Thanks,
Paolo



Paolo Bastianelli

Technical Consultant
0 Likes