Jump to content

Scripts to insert specific block from another drawing?


vernonlee

Recommended Posts

I see what you mean now SEANT. I will give this a try & see how it works for me. Thanks bro.

 

BTW, the insertation of the nested block will be base on user input?

Meaning when i run the script, immediately the nested block will appear (but not inserted) at my cursor & I can zoom/pan to any area & click a point to where the nested block should be.

Link to comment
Share on other sites

  • Replies 36
  • Created
  • Last Reply

Top Posters In This Topic

  • vernonlee

    17

  • SEANT

    9

  • ReMark

    4

  • tombu

    3

Top Posters In This Topic

I see what you mean now SEANT. I will give this a try & see how it works for me. Thanks bro.

 

BTW, the insertation of the nested block will be base on user input?

Meaning when i run the script, immediately the nested block will appear (but not inserted) at my cursor & I can zoom/pan to any area & click a point to where the nested block should be.

Yes, that's correct.

Link to comment
Share on other sites

After reading more why not just export your title blocks out as individual dwgs with nothing else in them seems the simplest way then just insert the correct one and redo the attributes.

Link to comment
Share on other sites

After reading more why not just export your title blocks out as individual dwgs with nothing else in them seems the simplest way then just insert the correct one and redo the attributes.

 

That is an alternative way as well. I just wanted to have all blocks in 1 drawing file, sort of consolidate them. Just just deal with 1 template drawing only. But thanks for the suggestion

Link to comment
Share on other sites

  • 2 weeks later...

Hi SEANT,

 

What can I include in the script to explode the block that i just inserted?

 

Currently this is the script i am using:-

 

^C^C_insert;"template";0,0,0;;;;_erase;last;;-insert;"Title A4";\;;;

Link to comment
Share on other sites

Keep in mind you're adding that template drawing with all it's blocks as block defined in your drawing. You only erased the insertion. That's adding a lot of bloat to your drawing just to avoid inserting with Design Center. As long as you're ok with that carry on.

Link to comment
Share on other sites

Keep in mind you're adding that template drawing with all it's blocks as block defined in your drawing. You only erased the insertion. That's adding a lot of bloat to your drawing just to avoid inserting with Design Center. As long as you're ok with that carry on.

 

I understand. Anyway I always purge the drawing before I issue the drawing out so it is no issue on that.

 

Speed is my THE main concern so the the macro shortcut button is the quickest for me.

 

My supervior most likely berate me for being slow rather than not minimising the file size by a few KB

Link to comment
Share on other sites

Instead of this

^C^C_insert;"template";0,0,0;;;;_erase;last;;-insert;"Title A4";\;;;explode;last;

you can use this

^C^C_insert;"template";^C-insert;"*Title A4";\;;

 

The ^C will cancel the insert but the definitions are already in the drawing. The * in front of the block will explode it on insertion.

Link to comment
Share on other sites

Nicely done.

 

Instead of this

^C^C_insert;"template";0,0,0;;;;_erase;last;;-insert;"Title A4";\;;;explode;last;

you can use this

^C^C_insert;"template";^C-insert;"*Title A4";\;;

 

The ^C will cancel the insert but the definitions are already in the drawing. The * in front of the block will explode it on insertion.

 

Cool!!! Thanks for the tip. :D

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