LISP to enter field in one block from anothers block attribute

LISP to enter field in one block from anothers block attribute

Anonymous
Not applicable
923 Views
3 Replies
Message 1 of 4

LISP to enter field in one block from anothers block attribute

Anonymous
Not applicable

Hi,

I want to achieve next:
   - "open" block that is in Layout1

   - in few attributes add field that is referencing to another block located in model

All LISP apps can do that if blocks are either in model or in layout but not if one object is in model and another in Layout.

Manually I do it like this:
  - double click on block that is in Layout1
  - right click on attribute i want to edit and press "Insert field"
  - in Field category  select Objects -> Object
  - Then use button to select object that is in MODEL 
  - then find property that matches the attribute i selected and press Ok

 

Hope this could be automated somehow.

 

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

marko_ribar
Advisor
Advisor

Just a thought...

You have CHSPACE command... You can use it temporarily to bring entity from other space to current... Finally you return back entity in correct space... The problem is that you have to choose correct entity not in current space - meaning not visible on screen... All I can think is viewport in Layout and also using MSPACE/PSPACE commands...

Now see if you can do something from those inforamtions...

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 3 of 4

vladimir_michl
Advisor
Advisor

Quite interestingly, AutoCAD allows to create a paperspace field referring a modelspace object (try FIELD > Object) in a layout/paperspace (just pick inside a viewport to select the object), but does not allow to create a modelspace field referring a paperspace object (you cannot switch space to select it).

 

Vladimir Michl, www.cadstudio.cz - www.cadforum.cz

 

0 Likes
Message 4 of 4

vladimir_michl
Advisor
Advisor

The fArea utility (not working with attributes but rather a proof of concept; freeware) now allows to refer a "cross-space" object and its properties. See:

https://www.cadforum.cz/cadforum_en/qaID.asp?tip=5387

 

Vladimir Michl, www.cadstudio.cz

0 Likes