Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto regenerate.....Pro/Program

Status
Not open for further replies.

ella0509

Mechanical
May 19, 2004
66
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
 
Replies continue below

Recommended for you

Hello,

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!
 
Thanks, onlyadrafter - can you explain a little further please??

Cheers,
Lee
 
Hello,

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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor