Using AutoLISP to one-way transfer a field value to a plain-text attribute

Using AutoLISP to one-way transfer a field value to a plain-text attribute

matthew_neesley
Collaborator Collaborator
196 Views
1 Reply
Message 1 of 2

Using AutoLISP to one-way transfer a field value to a plain-text attribute

matthew_neesley
Collaborator
Collaborator

Hello to all: 

 

I've created a nice conundrum for myself.  My company is building an add-on for AutoCAD that uses hundreds of simple blocks that I've made, all stored in Vault.  I've added an attribute in these blocks that use the VaultRevision field, so every time I check the block out and modify it, I can update that attribute automatically.

 

The problem is...all of these blocks eventurally get copied into a different master-file that the add-on draws from.  This copying removes the dynamic field capability from the attribute, and in the destination file, the attribute merely displays ###.

 

The only thing I can think of...is to have a way to one-way transfer the text value from the field to a different attribute that is has nothing dynamic about it.  Is this possible?  I've attached a pic that shows what I'm trying to accomplish, and the file with the block.  Thanks in advance for any help!

transfer field value into plain-text attribute.jpg

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

paullimapa
Mentor
Mentor

To start you off here is how I would get the value of that attribute:

(getpropertyvalue (car (entsel)) "ASCEND_REVISION")

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes