Tuesday, February 07, 2012
Inquire Element - Measure Diameter by VBA
Last Post 20 Oct 2010 12:29 AM by JM. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
JMUser is Offline
New Member
New Member
Posts:10

--
02 Sep 2010 06:40 AM  

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!

EDIT:

NO IDEA? We only need choose cylindre in Assembly, no whole part.

JMUser is Offline
New Member
New Member
Posts:10

--
20 Oct 2010 12:29 AM  
No help, we must find it ourselve
.
.
    Set objMouse = objCommand.Mouse
    objCommand.Start
    objMouse.LocateMode = 2
    objMouse.AddToLocateFilter 32
.
.
.
  ....pGraphicDispatch.Object....
.
.
.

You are not authorized to post a reply.

Active Forums 4.2
Copyright © 2011 JasonNewell.NET