Jump to content

Does Extended entity definition data carry over into the drawing explorer?


Akeane

Recommended Posts

So basically what i've done is i've made a single dwg with all the blocks we use for drafting,  which can then be taken to a tool pallete for ease.

It was my intention to add some extended definition data that would have the scale of the original block from that dwg, then, when the block is inserted into a new drawing, i can run another lisp that looks for the extended data in the form of (-3 ("ES" ("1040 . 200)))  shown here for a 200 scale block. Then a simple entmod of all the scale factors for these blocks based on a desired scale would correctly resize them.

So far it works really well for blocks in the model space (the the defn data is appended with ) and then a simple click, and entering of a desired scale, allows all drawings with this appdata to be resized; this also works is the block is copied over, or copied to multiple drawings.

But using the tablenext method to go through the blocks in drawing explorer, they wont get inserted with this extra data, which means inserting the block wont have the extended data included, and im guessing it wont work by inserting from a tool palette either.

Any hot tips of how to overcome this?

Link to comment
Share on other sites

Why don't you use annotative blocks? And why don't your 'symbol' blocks have the same scale?

 

Regarding the issue: try adding the Xdata to the block definition instead of the block reference.

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Hey mate i haven't used this but ill look into using annotative blocks as an alternative; see if i can find some good learning resorces. The main this i want to achieve is to only be resizing the "ES" blocks, and leaving all other blocks in the drawing alone

The blocks may not be the same scale as a new block may be introduced to the tool palette at another time, but from a different scale.

Also never knew the difference between block definition or reference before today, huge help and ill look into that too.
For anyone else who is interested:
 

Quote

Block definition is about what the block contains, its geometry, attributes. Block references are about where the block is inserted (imprinted), its scale, layer and what is filled in its attributes.

 

Link to comment
Share on other sites

Youre a champ Roy. Annotative blocks are exactly what i was going for, just cant believe i never knew this was a standard feature in cad

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