Edit Field Lisp

Edit Field Lisp

trumankiko
Advocate Advocate
358 Views
1 Reply
Message 1 of 2

Edit Field Lisp

trumankiko
Advocate
Advocate

hi. can someone help me. i want to use a lisp that does the ff:

1. type a command to edit lisp

2. auto select "Objects" as field category

3. press enter then i manually select the block reference

4. then value is automatically selected

5. then format is set to none then i press enter

 

this would be very useful to my work especially when I move details from one sheet to another. thanks already! 🙂

 

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

cadffm
Consultant
Consultant

Hi,

 

experiencw with lisp? Next door is a decided forum for programmers.

 

>>"that does the ff:"

You can't control dialog input by lisp.

There are other (non CAD) programs to do that,

but this is always a silly poor way (but often the last hope for special things),

DONT GO thus way.

 

In Lisp, you can easily create your filedcode string to put them to 'wherever you want'.

 

-100% no lisp experience?

Sorry, I am not the server you are seeking.

 

-Lisp programmer?

Create such a fieldcode by using field-dialog . Check out the code string at the bottom of dialog.

With STRCAT it's easyto build, the only variable part is the objectdID.

(vla-get-utility acaddoc 'getobjectidstring)

 

 

-Lisp Rookie 

Check out Lisp which use field, for example lisps which displaying polyline or hatch area by a field.

Edit the hardcoded part if fieldcode string to your needs (see your manually created fieldcode,  in field dialog, your ready string have to look the same)

 

Sebastian