I've looked around at some other posts but can't find the answer to my problem.
I am trying to get the distance from the insertion point of a block and the maxX, maxY of an attribute of the block. My routine works fine when there is no UCS, however, the MaxPoints I get back when there is a UCS present is different. This is the line of code I'm using.
AttEndPt = NewPoint2d(attref.GeometricExtents.MaxPoint.X, attref.GeometricExtents.MaxPoint.Y)
The point returned is different if there is no UCS and when there is a UCS.
Any suggestions would be greatly appreciated.
Solved! Go to Solution.
Perhaps like this
AttEndPt = New Point3d(attref.GeometricExtents.MaxPoint.Transform
By(blkRef,BlockTransform).X, _ attref.GeometricExtents.MaxPointTransformBy(blkRef ,BlockTransform).Y)
The saga continues..... Although I have altered my logic, still have an issue.
What I really need to do is find the coordinate that represents the end of an Attribute value when there is a UCS present.
Have tried using the GeometricExtents, with and without the transformby and can't seem to get where I need to be.
Not sure of what logic to use, try and get the length of the text of the Attribute value, then apply that to the insertion point, but I can't seem to do this with UCS coordinates.
Can anyone provide some insight or any suggestions on the easiet way to do this?
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register