Attribute Edit programatically

Attribute Edit programatically

mayur_kapadnis
Participant Participant
416 Views
2 Replies
Message 1 of 3

Attribute Edit programatically

mayur_kapadnis
Participant
Participant

 

ed.Command("-Insert", "AUTOCRDS", coordMarkPosition, 1, 1, 0);

 

I wat to insert a block in my drawing with name "AUTOCRDS" at position coordMarkPosition which is Point2d, now i have used ed.Command method to insert a block at coordMarkingPosition with x and y scale values 1 and rotation angle 0, now the block has two attributes "NORTHING" and "EASTING" which takes values of x and y coordinates of coordMarkPosition as shown in image, after running this code, i want to manually click ok after that the block get inserted, how to automate it? AttrEdit2.png

AttributeEdit.png

0 Likes
Accepted solutions (1)
417 Views
2 Replies
Replies (2)
Message 2 of 3

ActivistInvestor
Mentor
Mentor
Accepted solution

Assuming that you want to supply the attribute values programmatically, Set the ATTDIA sysvar to 0 and supply the attribute values as arguments to Command(). 

0 Likes
Message 3 of 3

mayur_kapadnis
Participant
Participant

It works, thank you

0 Likes