![]() |
|
Bitte drücken Sie nicht mehrfach auf "Antwort speichern".
*Ist HTML- und/oder UBB-Code aktiviert, dann können Sie HTML und/oder UBB Code in Ihrem Beitrag verwenden.
Beiträge: 55 / 0 I change my question to a simpler one. I want to assign sheet material to a part, in "sheet metal" module,not "basic sheet" module. I use recorder to record a system command. First, I define 2 variables "material" and "thickness" How can I modify this code? Thanks for your help! Andy [Diese Nachricht wurde von Andylau am 07. Jul. 2021 editiert.] Beiträge: 55 / 0 :MATERIAL_PLIST (list :MATERIAL material :THICK thickness)Andylau Hi everyone, Code:
preselect
set_pers_context "Toolbar-relative"
sha_attach_material
:sheet_part
(gpntwc 41.111052 17.628250 2.856922 "vport1")
:material
:MATERIAL_PLIST '(:MATERIAL "AA 5052" :THICK 1.6000000000000001)
:YES
complete
preselect
for example: material="AA 5052" thickness=1.6
Second, replace this code below:Code:
:MATERIAL_PLIST '(:MATERIAL material :THICK thickness)
The problem is the two variables can't transfer the values
"AA5052" and 1.6 to the list.
Best regards,Andylau I made it.
the code as belowCode: