Hello
Then you should give this workpoint a name to identify. Let's say the name in model browser is "WP_xyz". Then you create a rule like this:
Dim oDoc As PartDocument = ThisDoc.Document
Dim oDef As PartComponentDefinition=oDoc.ComponentDefinition
Dim oWP As WorkPoint
For Each oWP In oDef.WorkPoints
If oWP.Name = "WP_xyz" Then Exit For
Next
If Not oWP Is Nothing Then
X = oWP.Point.X
Y = oWP.Point.Y
Z = oWP.Point.Z
End If
After this, add this rule to the event trigger "geometry change" in this document. This assumes the workpoint position is defined by a geometry point, so the trigger fires the rule. If it is defined as fixed point, you need to use an extra event handler for this.
Open your form with modal=false option and change the geometry. As your workpoint moves to a new position, your XYZ-values update.
R. Krieg
RKW Solutions
www.rkw-solutions.com