Message 1 of 16
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I am attempting to locate the center of a flat pattern (the side A is defined) to place a text box. My initial thought was to locate the center of the flat pattern range box by subtracting the Min point from the max point. This method appeared to work, however in some parts the text box falls. Is there a better method to locatedthe center of the flat pattern? Thanks in advance.
Dim oFlatPattern As FlatPattern = oCompDef.FlatPattern
oFlatPattPRR = oFlatPattern.RangeBox
oFlatPattPRR_X = oFlatPattPRR.MaxPoint.X - oFlatPattPRR.MinPoint.X
oFlatPattPRR_Y = oFlatPattPRR.MaxPoint.Y - oFlatPattPRR.MinPoint.Y
Dim oPoint2d As Point2d = ThisApplication.TransientGeometry.CreatePoint2d((oFlatPattPRR_X / 2) + oFlatPattPRR.MinPoint.X, (oFlatPattPRR_Y / 2) -oFlatPattPRR.MaxPoint.Y)
Solved! Go to Solution.