rmjcorp Posted October 1, 2011 Author Share Posted October 1, 2011 Have you ever used the A2A.lsp? it puts an area into an attribute within a block. I am not sure if I am allowed to post it on the board but that is what I am looking for with the insertion method. Quote Link to comment Share on other sites More sharing options...
Tharwat Posted October 1, 2011 Share Posted October 1, 2011 Have you ever used the last routine that I have posted and modified for you first ? Quote Link to comment Share on other sites More sharing options...
rmjcorp Posted October 1, 2011 Author Share Posted October 1, 2011 yes I tried it but it would not insert correctly. it also does not allow me to pick the text like it did with the first one. Quote Link to comment Share on other sites More sharing options...
Tharwat Posted October 1, 2011 Share Posted October 1, 2011 What's that thing which is not being inserted correctly ?? You should read about functions first to know the differences between both of them .. ssget (would allow you to use window selection to select many entities ) http://docs.autodesk.com/ACDMAC/2012/ENU/filesALRMac/GUID-9DA52C39-0A0D-48B4-82DA-D011D9EDC0E-212.htm entsel ( would allow you to select only one entity ) http://docs.autodesk.com/ACDMAC/2012/ENU/filesALRMac/GUID-66C43B0D-85D3-49FF-8653-48ADA33817E-83.htm Quote Link to comment Share on other sites More sharing options...
rmjcorp Posted October 1, 2011 Author Share Posted October 1, 2011 ok i will check it out. I actually was able to modify the A2A.lsp to be able to grab texts as well as polylines and it inserts it in to the block without having to re-insert the block. I still have to use 2 routines(1 for text attributes and 1 for the area attribute), but this way it allows me to pick a text and select the exact attribute I want it to replace(this way it goes where I want it to). If you would like to see it I will post it but like I said before I am not familiar with what can be posted on public boards or not. It was a LISP originally made by Lee Mac. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted October 1, 2011 Share Posted October 1, 2011 1- should have attributed block which should have 3 attributes in it .2- when invoking the routine , you should select texts to be inserted in the attributed block and which is going to be replaced with the attributes (texts). Tharwat, You are modifying the Attribute Definition objects (ATTDEFs) in the Block Definition (BLOCK), not the Attribute Reference objects (ATTRIBs) in the Block Reference (INSERT). This is setting the Attribute Default Text for the Block Definition, not the Attribute Values for the single selected Block Reference. We discussed this only the other day in this recent thread. Quote Link to comment Share on other sites More sharing options...
rmjcorp Posted October 1, 2011 Author Share Posted October 1, 2011 Lee Mac, Is there a way to add the to A2A.lsp, the ability to insert room number, employee name, and area? I dont mind if I had to run the routine multiple time by pressing space bar, however if I need to type alternate routines it can get annoying. Quote Link to comment Share on other sites More sharing options...
Tharwat Posted October 1, 2011 Share Posted October 1, 2011 Tharwat, You are modifying the Attribute Definition objects (ATTDEFs) in the Block Definition (BLOCK), not the Attribute Reference objects (ATTRIBs) in the Block Reference (INSERT). This is setting the Attribute Default Text for the Block Definition, not the Attribute Values for the single selected Block Reference. We discussed this only the other day in this recent thread. Hi Lee . That discussion was not completed to end and my post No# 17 in that thread shows clearly my direct ask to it, and when it is supported with your marvelous examples I did lost in them since they are much and and my question was to know the differences . Regards, Tharwat Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted October 1, 2011 Share Posted October 1, 2011 Is there a way to add the to A2A.lsp, the ability to insert room number, employee name, and area? I dont mind if I had to run the routine multiple time by pressing space bar, however if I need to type alternate routines it can get annoying. Yes, I could probably make those modifications - but not on voluntary time. Lee Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted October 1, 2011 Share Posted October 1, 2011 That discussion was not completed to end and my post No# 17 in that thread shows clearly my direct ask to it You wish to know the differences between an ATTDEF entity and an ATTRIB entity? Quote Link to comment Share on other sites More sharing options...
Tharwat Posted October 1, 2011 Share Posted October 1, 2011 You wish to know the differences between an ATTDEF entity and an ATTRIB entity? Correct , According to your notifications to me about the attributes in general , I'd like to get it right and to know my repeated mistake with it . Thanks Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted October 1, 2011 Share Posted October 1, 2011 The ATTDEF entity is the Attribute Definition and resides in the Block Definition (BLOCK in the Block Table). The Attribute Definition contains the Tag String, Prompt String and Default value of the Attribute. It is the entity that is created when you use the ATTDEF command. The ATTRIB entity is the Attribute Reference and resides in the Block Reference (INSERT). This entity has only a Tag String and Attribute Value (or Text String). There may be many Block References (INSERTs) inserted in the drawing, but only one Block Definition for each block name. Similarly, there are ATTRIB entities in each Attributed block inserted in the drawing, but each of these reference a single ATTDEF entity in the Block Definition. Think about it as the Block Definition (BLOCK) being the 'blue-prints' and the Block Reference (INSERT) being the 'construction', hence there is only one set of blue-prints but maybe many constructions created from the blue-prints. To help illustrate the structure of an Attribute Block Definition and Attributed Block Reference, I have created an example program (attached). The program will create a simple block definition with a single attribute definition, then insert a reference of this definition at the Origin. The program will then list the DXF data of the inserted Block Reference, so that you may see the ATTRIB entity structure. After studying the attached program, have a careful read of this post. If you still have questions, ask. Lee BlockExample.lsp Quote Link to comment Share on other sites More sharing options...
Tharwat Posted October 2, 2011 Share Posted October 2, 2011 Thanks for the great efforts Lee , highly appreciated . Now I realized the differences between the Attribute entity and attribute Definition when you have just mentioned in your esteemed last reply which is The ATTDEF entity is the Attribute Definition and resides in the Block Definition (BLOCK in the Block Table). The Attribute Definition contains the Tag String, Prompt String and Default value of the Attribute. It is the entity that is created when you use the ATTDEF command. The ATTRIB entity is the Attribute Reference and resides in the Block Reference (INSERT). This entity has only a Tag String and Attribute Value (or Text String). Honestly I have been thinking that the attribute definition is the same as the one resides in a Block , which is of course completely different as you have explained . Thanks a lot . Tharwat Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted October 2, 2011 Share Posted October 2, 2011 Glad to have removed the confusion and that my explanation was comprehensible. Quote Link to comment Share on other sites More sharing options...
rmjcorp Posted October 10, 2011 Author Share Posted October 10, 2011 Is there a possibility to create a routine that will allow me auto populate a specific room tag block with every element within a specified polyline. here is what I would ideally want to have happen.. 1. create a polyline around a room(as a boundary) 2. create text or mtext for items such as employee, employee ID #, Department, and Building 3. insert a block with fields for area, employee, employee ID #, department, and building 4. run LISP to auto populate fields in block 5. run extraction to pull data into tables or excel spreadsheets. I have hundreds of rooms to perform this type of data management on and I would like to streamline the system a lot. I would be willing to pay someone to create this lisp if need be. Quote Link to comment Share on other sites More sharing options...
tonez Posted May 2, 2018 Share Posted May 2, 2018 Hi There, I loaded the lisp you created and opened my drawing which contains multiple mtext which are height levels (e.g. 3.580). I created an attributed text with the 'tag' roomtag and then created a block of the attributed text called 'roomtag' when i use the lisp command it inserts the block but the value on the attributed text within the block remains empty. Am i doing something incorrectly? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.