How to identify the Attribute Insertion point

How to identify the Attribute Insertion point

manohar2375
Advocate Advocate
984 Views
3 Replies
Message 1 of 4

How to identify the Attribute Insertion point

manohar2375
Advocate
Advocate

Hi All,

 

I have list of the blocks and each block contain multiple attributes and i made function to modified attribute insertion point using C#.net. But i want to identify the attribute insertion point on AutoCAD screen, could you please help me some one because i am poor in AutoCAD.

 

Thanks in Advance.

 

Regards,

Manohar.

0 Likes
985 Views
3 Replies
Replies (3)
Message 2 of 4

jabowabo
Mentor
Mentor

// Use of 'AlignmentPoint' or 'Position' depends on type of attachmentPoint. // BaseLeft uses 'Position', all others use 'AlignmentPoint' if (attRef.Justify == AttachmentPoint.BaseLeft) attRef.Position = newAttPos; else attRef.AlignmentPoint = newAttPos;

 

0 Likes
Message 3 of 4

manohar2375
Advocate
Advocate

Hi,

 

Thanks for your reply.

 

I have done already program for modify attribute insertion point, and its working.

 

My issue is in AutoCAD screen, how can i identify the attribute insertion point.

 

For example: once we select block on AutoCAD screen then block will be highlighted with insertion point like that is there any way to identify attribute inserting point.

 

Thanks in Advance.

 

Regards,

Manohar.

0 Likes
Message 4 of 4

jabowabo
Mentor
Mentor

You will need to first determine the attribute reference's .Justify property value. If this value == AttachmentPoint.BaseLeft then the attribute 'insertion point' is found like so:

Point3D insertionPt = attRef.Position;

If the value <>AttachmentPoint.BaseLeft then:

Point3D insertionPt = attRef.AlignmentPoint
0 Likes