Hi, we have adaptive part with adaptive Inner diameter. Measure value for this during placing into assembly isn't easy. We tryed made macro working this way:
1) select adaptive part by mouse
2) run macro with selected part (adaptive part in selecset)
3) Choose some cylindre in assembly by mouse click (Eg. shaft) + measure it's diameter by VBA.
How we can choose part/diameter and grab the diameter? (we need sometning like "objApp.StartCommand 25072" and grab Diameter results)
4) use measured value for update adaptive part - no problem (Call ObjAdjustablePart.SetAdjustables.....)
Do somebody have idea how we can try it? We have problem only with point 3. Thank you!
NO IDEA? We only need choose cylindre in Assembly, no whole part.
Posted by: Jiri MarekPost date: 9/2/2010 1:40:56 AM
No help, we must find it ourselve
Set objMouse = objCommand.Mouse
objMouse.LocateMode = 2
Posted by: Jiri MarekPost date: 10/19/2010 7:29:20 PM