PointOnSheet of GeometryIntent to DocumentUnitsPoint2d

PointOnSheet of GeometryIntent to DocumentUnitsPoint2d

A.WagnerKWWFA
Enthusiast Enthusiast
110 Views
1 Reply
Message 1 of 2

PointOnSheet of GeometryIntent to DocumentUnitsPoint2d

A.WagnerKWWFA
Enthusiast
Enthusiast

Hello,

i need help again to set a point for a balloon.

The point pt1.y should be on Y of the PointOnSheet of GeometryIntent. And x should have a little offset.

In other words: The balloon should be placed with a horizontal offset to the point where the arrow is attached to.

But the corrdinate system of GeometryIntent.PointOnSheet() are different to ANSICHT1.SheetPoint()

But maybe I'm going about this wrong?

 

In this code i have ignored the required x offset, but the balloons are placed somewhere out of the sheet

 

Dim MidR As GeometryIntent
MidR = ANSICHT1.GetIntent({"AA0005:1", oOccurrence.Name }, "KanteR",intent := PointIntentEnum.kMidPointIntent)
Dim pt1 = ANSICHT1.SheetPoint(MidR.PointOnSheet.X, MidR.PointOnSheet.Y)
Dim balloon1 = Blatt_1.Balloons.Add("balloon", {pt1}, MidR)

 

 

regards Andreas

0 Likes
111 Views
1 Reply
Reply (1)
Message 2 of 2

A.WagnerKWWFA
Enthusiast
Enthusiast

I figured it out. My mistake was using SheetPoint.

 

Dim pt1 As DocumentUnitsPoint2d= ThisDoc.Geometry.Point2d((MidR.PointOnSheet.X*10)-Offset,MidR.PointOnSheet.y*10)

 

0 Likes