Smart Assembly - Self Learning with simple problems - Error!!
Hi PTC Community,
I recently put a topic in here asking for any Smart Asssembly tutorial, the responses said that there was no tutorial and it was in my best bet to contact the software provider (Sigmaxim) to learn it. I am unable though to shed such a huge amount for training. So I have taken the task of learning it on my own by reading their admin guide.
I deviced my own problem and tried to solve it.
Here is my problem.
Problem Summary
Automate the process of generating tower assemblies(made of individual shells) of different heights
Problem Description
I have a tower assy which is just a simple collection (4 in nos) of hollow shells arranged one over the other. I want the user to input the total height of the tower he wants. Then I will check with the existing tower height and if it is same just regenerate and present the model. If it is not, I want to modify the individual shell heights to achieve the total height of the tower.
I tried running the following program. I don't know if I am doing this right, there are lots of errors. Please guide me in solving this which would help me in my learning.
Program
BEGIN-ASM_DESC
USER_INPUT_PARAM INTEGER HEIGHT_INPUT
COPY REF THIS TOWER
SEARCH_MDL_REF TOWER FEATURE "TOTAL_HEIGHT"
IF "TOTAL_HEIGHT" = "HEIGHT_INPUT"
REGEN_MDL TOWER
ELSE
SEARCH_MDL_REF SHELL FEATURE "SHELL_HEIGHT"
"SHELL_HEIGHT" = "HEIGHT/4"
REGEN_MDL SHELL
REGEN_MDL TOWER
END_ASM_DESCR
Regards
Charles

