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: 

Macro error "GET BLOCK"

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
g_borri
350 Views, 2 Replies

Macro error "GET BLOCK"

Hi everyone
I created a macro to import the block model choosing from 3d files.

 

EDIT BLOCK RESET
DELETE BLOCK

STRING File_B = ''
$File_B = FILESELECT "SELECT BLOCK FILE"

GET BLOCK $File_B

STRING Msg = "Select Toolpath to change block, and press"+crlf+"RESUME when ready to continue"

MACRO PAUSE $Msg

FOREACH tp IN explorer_selected_entities() {
INVALIDATE TOOLPATH NOQUERY $tp.name
$tp.Block = $Block
}


Unfortunately I have error as seen in picture below.
Where is the error?
Thank you all for your attention and help

 

Immagine 2023-02-07 103940.jpg

2 REPLIES 2
Message 2 of 3

Try this, worked for me

 

EDIT BLOCK RESET
DELETE BLOCK
EDIT BLOCKTYPE TRIANGLES

STRING File_B = ''
$File_B = FILESELECT "SELECT BLOCK FILE"

GET BLOCK $File_B


STRING Msg = "Select Toolpath to change block, and press"+crlf+"RESUME when ready to continue"

MACRO PAUSE $Msg

FOREACH tp IN explorer_selected_entities() {
INVALIDATE TOOLPATH NOQUERY $tp.name
$tp.Block = $Block
}

Message 3 of 3
g_borri
in reply to: g_borri

THANKS IT WORKS VERY WELL|! 😀

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

Post to forums  

Autodesk Design & Make Report