Hi All..Keep in mind my level of VBA is beginner.
Im in a project to create a moch-up of an engine's rotating assemblies.
So I have a piston created of a group of shapes.. ( call it Five shapes )
SHAPE#1 A BASIC RECTANGLE ( 2d view of a piston )
SHAPE#2 A BASIC LINE PARALLEL to the TOP
SHAPE#3 A BASIC LINE PARALLEL to the Above
SHAPE#4 A FINAL LINE PARALLEL to the Above
SHAPE#5 A CIRCLE BELOW the LINES in the MIDDLE of the RECTANGLE
** GROUP THESE as ("GROUP1") **
and I have a CrankShaft which has another five shapes..
The piston must move diagnally
The Crank is rotated in degrees.
Executed from a Cell using FormulaFunction cranktiming(Name As String, Angle) ActiveSheet.Shapes(Name).Select Selection.ShapeRange.Rotation = Angle End FunctionEven though I group shapes together, can I take a reference of one shape inside the group, and tie this to another shape inside another group, and have a resulting factor, Change the positions ? the connecting rod would be a static size. It would be tracking between the moving groups.. and the piston would track its position from a formula of the crank degree..\=cranktiming("group2",A1)
Does that sound interesting ? Who would like to help out here with ideas..![]()
Welcome to the forum.
I think you're going to need write formulas that articulate each piece as a function of crank angle.
There's an impressive engine animation at www.angellabsllc.com/video/animation.xls
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks