- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to pop up the form when I create a new toolpath to prompt me to select the boundary.
Like this
Solved! Go to Solution.
I want to pop up the form when I create a new toolpath to prompt me to select the boundary.
Like this
Solved! Go to Solution.
You can not do that.
but if you want, you can make a macro for each strategy.
IMPORT TEMPLATE ENTITY TOOLPATH TMPLTSELECTOR "Finishing/Constant-Z-Finishing.002.ptf" $TOOLPATH_BOUNDARY = INPUT ENTITY BOUNDARY "CHOOSE A BUNDARY" ACTIVATE BOUNDARY $TOOLPATH_BOUNDARY
thank you . This is what I am looking for.
ENTITY $TOOLPATH_BOUNDARY = INPUT ENTITY BOUNDARY "CHOOSE A BUNDARY"
If it's StockModel, how do you put it in the table?
$STOCKMODEL = INPUT ENTITY STOCKMODEL "CHOOSE STOCKMODEL"
I know the command to select the window, but I will not put parameters in it.
[EDIT PAR 'StockModelState.StockModel' $STOCKMODEL ] Unable to work
You cant have a variable like that.
Try:
$STOCKMODEL = INPUT ENTITY STOCKMODEL "CHOOSE STOCKMODEL" STRING $STOCKM = EDIT PAR 'StockModelState.StockModel' + $STOCKMODEL DOCOMMAND $STOCKM
Try this:
STRING $STOCKMODEL_NAME = "" $STOCKMODEL_NAME = INPUT ENTITY STOCKMODEL "Select STOCKMODEL" STRING $STOCK1 = "EDIT PAR 'StockModelState.StockModel' " STRING $STOCK2 = $STOCKMODEL_NAME STRING $STOCK4 = $STOCK1 + "'"+$STOCK2+"'" DOCOMMAND $STOCK4
$StockModelState.StockModel = $StockModel_Name
I recently wrote a plugin for PowerMill that will allow you to fire macros in response to events happening in PowerMill, for example when a toolpath is created. You will need to use the EntityCreated event and filter it to Entity Type: Toolpath.
It has been tested although not thoroughly and it does have the potential to slow down PowerMill if you use complex macros in it, however for simple applications such as the one you are looking for it should work well.
I've tried to make it intuitive to use so there is no documentation for it but reply to this message if you need some help, or encounter an issue.
I have uploaded the source code as well so if you are familiar with C# you can make changes yourself.
Link is only valid until 23/9/2018.
Hope that helps
Richard