Jump to content

Play with fields and atts


ziele_o2k

Recommended Posts

Hi everyone.

 

I have idea for lisp that will work as follow:

  1. Select block with atts
  2. Select destination block and if this block will have atts with same names, insert fields from firstly selected block

Example:

Select source block:

Name:

BLK_1

Atts:

Att_1

Att_2

Att_5

 

Select destination block:

Name:

BLK_2

Atts:

Att_1 (replace textstring by field with textstring from BLK_1's att named Att_1)

Att_3 (do nothing)

Att_4 (do nothing)

Att_5 (replace textstring by field with textstring from BLK_1's att named Att_5)

Att_6 (do nothing)

 

Any ideas, where to start - this is my first attempt to play with fields.

I found some functions with fields at LeeMac's website, I will study them but in meantime, maybe some tips / links to similar problems?

Link to comment
Share on other sites

Actually its a simple task - all you have to know is how to assign a field with a TextString property.

I had this idea before (after the pain of renaming constantly blocks that represent the same room in floor plans/section views).

But I don't think its worth posting free work just like that (ideas would be enough).

With the skills you have, you should be able to execute it (just learn from LM's codes how to work with fields).

 

BlockAttributesLink.gif

Link to comment
Share on other sites

Actually its a simple task - all you have to know is how to assign a field with a TextString property.

(...)

 

You were right. It was quite easy :)

att2fld.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...