Auto regenerate.....Pro/Program
Auto regenerate.....Pro/Program
(OP)
Hi again people.....
I've got my little assembly working using Pro/Program, but I need to Regenerate twice to get all items to re-size / move successfully, and also for mass properties to update......
Can a line be put into Pro/Program to automate this second regeneration command?? I guess not as it will no doubt go into a "loop" situation.....is their any other way around it.....the untrained user of this program may forget to do the second regen!!
Thanks,
Lee
I've got my little assembly working using Pro/Program, but I need to Regenerate twice to get all items to re-size / move successfully, and also for mass properties to update......
Can a line be put into Pro/Program to automate this second regeneration command?? I guess not as it will no doubt go into a "loop" situation.....is their any other way around it.....the untrained user of this program may forget to do the second regen!!
Thanks,
Lee





RE: Auto regenerate.....Pro/Program
What we did was to have a EXECUTE ASSEMBLY as the end of the Program where you would have
EXECUTE ASSEMBLY (assembly file name)
A=A
B=B
etc
END EXECUTE
where the A, B etc is the inputs from
INPUT
A number
b number
END INPUT
Does this solve the problem, or do you need greater detail?
----------------------------------
Hope this helps.
----------------------------------
maybe only a drafter
but the best user at this company!
RE: Auto regenerate.....Pro/Program
Cheers,
Lee
RE: Auto regenerate.....Pro/Program
Will try, in Pro-Program you will have something like this:
INPUT
ASSY_LEN NUMBER
ASSY_HOLE_DIA NUMBER
ASSY_SHAFT_LEN NUMBER
END INPUT
You will then have all your relations.
Then you write the execute part.
EXECUTE PART SHAFT.PRT
SHAFT_LEN=ASSY_SHAFT_LEN
SHAFT_DIA=ASSY_HOLE_DIA
END EXECUTE
EXECUTE PART LOCATER.PRT
LENGTH=ASSY_LEN
HOLE_DIA=ASSY_HOLE_DIA
END EXECUTE
You will then have all the features and ADD COMPONENTS.
Then at the end you should add
EXECUTE ASSEMBLY SHAFT_AND_LOCATER.ASY
ASSY_LEN =ASSY_LEN
ASSY_HOLE_DIA =ASSY_HOLE_DIA
ASSY_SHAFT_LEN =ASSY_SHAFT_LEN
END EXECUTE
This is how we do it, and ot works. Is this any clearer?
----------------------------------
Hope this helps.
----------------------------------
maybe only a drafter
but the best user at this company!