Jump to content

W-block & macro


Jkos

Recommended Posts

Hello

First time posting to this forum, I am working on AutoCAD 2011 and creating a custom button for my company, I have one problem, does anyone know how to insert a w-block with a macro?:?

Thanks on forehand// Håkan (Jkos)

Link to comment
Share on other sites

Welcome to CADTutor!

 

-insert will use the command line. Then you will need the path to the DWG.

 

Are you trying to insert a Block or a WBLOCK?

Link to comment
Share on other sites

Thanks for the quick reply, it is a wblock, that is why I can´t use –insert, the button should work even if the drawing have been purge, and –insert asks for a block name and not a path to the block

Link to comment
Share on other sites

Thanks for the quick reply, it is a wblock, that is why I can´t use –insert, the button should work even if the drawing have been purge, and –insert asks for a block name and note a path to the block

 

It works for me, you will need to add an insertion point in the macro, you can use enters for the rest of the entries.

Link to comment
Share on other sites

The * (asterisk) part work the way that I wanted and needed, Thanks for the help

Lucky guess. A circuit clicked in my main memory bank. SLW210 provided you with most of the help however. On behalf of us both, you're welcomed.

Link to comment
Share on other sites

One problem solved, 2 arise, do any of you guys have good guide for writing macros?

I need the commands that the macro works by, example ; = enter, ^c^c is clering the command line

Link to comment
Share on other sites

One problem solved, 2 arise, do any of you guys have good guide for writing macros?

I need the commands that the macro works by, example ; = enter, ^c^c is clering the command line

 

check AutoCAD help files it has a pretty good section on Macros

Link to comment
Share on other sites

I pulled my Customization Guide for 2010 and in Chapter 4 (User Interface Customization) there is a section called Create Macros pages 161 to 177. It covers such items as an overview, basics, special characters, etc.

Link to comment
Share on other sites

WBLOCK is a command name, the file created is a .dwg file. Just clarifying.

 

Or .dxf , many call the drawings created by the WBLOCK command "WBLOCKS" that is why I mentioned "path to the drawing" and to be certain he was wanting to insert a drawing and not a block.

 

Nice catch though. :thumbsup:

 

-insert will use the command line. Then you will need the path to the DWG.
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...