start from old project

start from old project

psx2
Collaborator Collaborator
2,475 Views
20 Replies
Message 1 of 21

start from old project

psx2
Collaborator
Collaborator

hi,

 

which is  the correct way to start from an old project ...

ex:

i've 10 toolpath one ncprogram  1 workplane called ZP and one featurset named hole.

i delete all models,  i select all feature and delete them and save template.

then i load the new models and load the template but the new model have one workplane with same name "ZP" ( but with different position) and in powermil i've two workplanes called zp and zp_1 !!!!

 

how should i do ?

thanks

0 Likes
Accepted solutions (2)
2,476 Views
20 Replies
Replies (20)
Message 2 of 21

Anonymous
Not applicable

Remove unused workplane?

 

 

Mateusz

0 Likes
Message 3 of 21

psx2
Collaborator
Collaborator

thanks but i can't delete the workplane because is used from many toolpaths

0 Likes
Message 4 of 21

Anonymous
Not applicable

1. Activate Workplane  'ZP'

2. Select all toolpath

3. Right click on toolpaths-> Edit ->Set Named Parameter-> 'Workplane' (without dot '.') ->OK

namedpar.JPG

 

namedpar2.JPG

 

 

Message 5 of 21

psx2
Collaborator
Collaborator

ok,

thanks.

0 Likes
Message 6 of 21

rui_rita
Advocate
Advocate

you could add this to your user toolpath menu "Toolpath.xml"

 

<button
command="EDIT PAR selected 'workplane'"
label="Define Active Workplane"
multiple_selection="allowed"
/>

 

 

another idea that you may need is some new boundaries

 

you can use this in the user toolpath menu

 

<button
command="EDIT PAR selected 'boundary'"
label="Define Active Boundary"
multiple_selection="allowed"
/>



Os melhores cumprimentos | Best regards
Rui Rita
________________________________
NEWCAM, Lda.
Message 7 of 21

psx2
Collaborator
Collaborator

 

sorry but i've created an home directori "h:\Pmill" and then i've created a system variable  called "Home" and valorized with "H:\".

In Pmill folder i've created the file "Toolpath.xml" and i've copied and pasted your code


<button
command="EDIT PAR selected 'workplane'"
label="Define Active Workplane"
multiple_selection="allowed"
/>


but not work !

thanks

0 Likes
Message 8 of 21

rui_rita
Advocate
Advocate

<?xml version="1.0" ?>
<menupage>

 

<button
command="EDIT PAR selected 'boundary'"
label="Define Fronteira Activa"
multiple_selection="allowed"
/>

 

<spacer multiple_selection="allowed"/>

 

<button
command="EDIT PAR selected 'workplane'"
label="Define Plano Trabalho Activo"
multiple_selection="allowed"
/>

 

</menupage>



Os melhores cumprimentos | Best regards
Rui Rita
________________________________
NEWCAM, Lda.
0 Likes
Message 9 of 21

psx2
Collaborator
Collaborator

sorry but not work

in h:\pmill i've tree file:

 

- - - - - - - - - - -- - - - - - Toolpath.xml

 

<?xml version="1.0" ?>
<menupage>

<button
command="EDIT PAR selected 'boundary'"
label="Define Fronteira Activa"
multiple_selection="allowed"
/>

<spacer multiple_selection="allowed"/>

<button
command="EDIT PAR selected 'workplane'"
label="Define Plano Trabalho Activo"
multiple_selection="allowed"
/>

</menupage>

 

 

- - - - - - - - - - -- - - - - - user_menu.xml

<?xml version="1.0" ?>

<menus xmlns="x-schema:user_menu.xsd">

<usermenu value="user_menu">

<menupage label="This is the Title">

<spacer/>

<button

label="Button Label"

command="SOME POWERMILL COMMAND"/>

</menupage>

</usermenu>

</menu>

 

 

- - - - -- - - - - - - user_menu.xsd

copied from c:\program\powermill\sys\hci\popups\TreeSchema.xlm

 

thanks

0 Likes
Message 10 of 21

rui_rita
Advocate
Advocate

try this file...



Os melhores cumprimentos | Best regards
Rui Rita
________________________________
NEWCAM, Lda.
Message 11 of 21

psx2
Collaborator
Collaborator

thanks but not wok !!

 

 

0 Likes
Message 12 of 21

rui_rita
Advocate
Advocate

what happens???

 

you get a error... 

the menu doesn't appear?

 

give me something so I can help you...

 

what version do you have?

 

 



Os melhores cumprimentos | Best regards
Rui Rita
________________________________
NEWCAM, Lda.
0 Likes
Message 13 of 21

psx2
Collaborator
Collaborator

simply the menu not appear !

i've pm standard 2017 sp4

0 Likes
Message 14 of 21

5axes
Advisor
Advisor

Cool !, thanks for the sample file @rui_rita. I was wondering why you are using "<spacer multiple_selection="allowed"/>" in the spacer tag . But it's very useful in case  of multi selection to keep the separation line in the user menu. I will update my xml files according to this syntax.

 

Regards,

 

Cuq

0 Likes
Message 15 of 21

rui_rita
Advocate
Advocate

@psx2

 

are you selecting the toolpaths?

I don't see any reason why it wouldn't work.

 

can you upload a video ?

 

@5axes

this way you get a much cleaner usermenu... and one of the thing I ask a long time ago was te ability to create "titles" in the usermenu, but it's not possible for now, as far as I know



Os melhores cumprimentos | Best regards
Rui Rita
________________________________
NEWCAM, Lda.
0 Likes
Message 16 of 21

5axes
Advisor
Advisor
Accepted solution

psx2 a écrit :

simply the menu not appear !

i've pm standard 2017 sp4


To be sure save your XML file in your Macro directory.  Like that  you are sure that the directory is reconized and used by PMILL. And you don't need to indicate the macro call with pth complet path. you just need to use : <button command='MACRO "Unsafe_Plunge" "%s"' label="Controle plongee non sure" multiple_selection="allowed"/> 

0 Likes
Message 17 of 21

psx2
Collaborator
Collaborator

thanks !!!!

 

powermill not recognize the folder !!!!!! 

now work but only toolpath menu ,

 

user menu not work . The file it's located in the same folder of toolpath.xml and contain

<?xml version="1.0" ?>

<menus xmlns="x-schema:user_menu.xsd">

<usermenu value="user_menu">

<menupage label="This is the Title">

<spacer/>

<button

label="Button Label"

command="SOME POWERMILL COMMAND"/>

</menupage>

</usermenu>

</menu>

 

thanks thanks thanks !!!!

 

PS:

i can't use screencast !!!   record but don't upload !!!

0 Likes
Message 18 of 21

rui_rita
Advocate
Advocate
Accepted solution

the last tag you have

 

</menu>

 

and must have

 

</menus>

 

mark as solved if it's the case



Os melhores cumprimentos | Best regards
Rui Rita
________________________________
NEWCAM, Lda.
0 Likes
Message 19 of 21

psx2
Collaborator
Collaborator

thanks !!!!

now work all !!!!

 

 

very happy

 

thanks

0 Likes
Message 20 of 21

rui_rita
Advocate
Advocate

mark the awser for the first doubt as well, so when others have the same doubt as you can see the 2 answers

 

🙂



Os melhores cumprimentos | Best regards
Rui Rita
________________________________
NEWCAM, Lda.
0 Likes