Jump to content

get nested blocks out of block


pmxcad

Recommended Posts

Hello,

 

i`ve got a (example) drawing with a block named deurmodel. In this block there are 6 nested blocks. The main block has a attribute EPZ_CODE and the nested blocks also but empty. What i like to do is insert the block deurmodel, place it on the floorplan, select a visialstate. Move the nested blocks to a place nearby the door. So iàm looking for a lisp that pulls out the nested blocks out of the main block (sort of explode). And get the data from the attribute EPZ_CODE in the main block and copied to the blocks (ex nested).

 

Thanks

EXAMPLE.dwg

Link to comment
Share on other sites

Welcome to the forums! :)

 

Hello,

 

i`ve got a (example) drawing with a block named deurmodel. In this block there are 6 nested blocks. The main block has a attribute EPZ_CODE and the nested blocks also but empty. What i like to do is insert the block deurmodel, place it on the floorplan, select a visialstate. Move the nested blocks to a place nearby the door. So iàm looking for a lisp that pulls out the nested blocks out of the main block (sort of explode). And get the data from the attribute EPZ_CODE in the main block and copied to the blocks (ex nested).

 

Why do (waste?) all that extra work... over, and over, and over again? (

 

Have you considered simply creating the block(s) you want, and write the code to programmatically insert each of the desired block(s) at user specified, or calculated points, and populate the attributes (for each) accordingly?

Link to comment
Share on other sites

It`s about 200 doors to do. Iàm using Autocad electrical. So i can get all attribute date in a Exel sheet. Every block has to get a Hyperlink. !àm using a lisp from Lee Mac to get the data from the attribute HYPERLINK en put it as a hyperlink to tha same block. So this way i can search in the Excel sheet (by EPZ_CODE) a fill in the data for a hyperlink. Save the Excel sheet en import the data back into the drawing. Every block has a attribute HYPERLINK data. Run the lisp from Lee and everything has a hyperlink. From this drawing iàm gonna make DWF files. Switch off some layers to keep only the squares. This used for screens for a building control security system. The system is connected to a fire security system. If there is a fire, the system shows a part of the layout with a blinking icon on the place where the fire is. This one is gonne be used for door control, intercom, doorcontacts etc etc

Link to comment
Share on other sites

It`s about 200 doors to do. Iàm using Autocad electrical. So i can get all attribute date in a Exel sheet. Every block has to get a Hyperlink. !àm using a lisp from Lee Mac to get the data from the attribute HYPERLINK en put it as a hyperlink to tha same block. So this way i can search in the Excel sheet (by EPZ_CODE) a fill in the data for a hyperlink. Save the Excel sheet en import the data back into the drawing. Every block has a attribute HYPERLINK data. Run the lisp from Lee and everything has a hyperlink. From this drawing iàm gonna make DWF files. Switch off some layers to keep only the squares. This used for screens for a building control security system. The system is connected to a fire security system. If there is a fire, the system shows a part of the layout with a blinking icon on the place where the fire is. This one is gonne be used for door control, intercom, doorcontacts etc etc

 

Wow, good luck with that! :unsure:

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...