Jump to content

update or insert blocks with attributes


serdas

Recommended Posts

for example how can i import a layer from a different dwg. with commands only
tbh, I'm not sure you can but you can use the -LAYER command o construct it from scratch.

 

To import a file there are several ways. If you put your blocks in a common folder and you add that folder to your search path then -INSERT BlockName will work. Alternatively you can specify where to find the file, -INSERT C:\MyBlocks\BlockName

Link to comment
Share on other sites

  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

  • serdas

    12

  • dbroada

    7

  • nocturne00

    5

  • ReMark

    1

Top Posters In This Topic

It only needs patience and the better your understanding of basic AutoCAD commands the better. There are a couple of "gotchas", particularly when the question is asked differently between "live" and a script but in general the script should look identical to how you wouldtype on the command line.

 

If you have a script, print it out and type it in the commond line, line by line.

 

If you need a script step through on the command line and write each line on paper (or notepad) noting everything AutoCAD expects as an answer.

 

I have attached a simple script we create to batch plot some drawings. This has an odity in that I draw a line and imediately erase it. Why? Because usually AutoCAD thinks a print is a change to the drawing and asks if you want to discard changes but sometimes it doesn't. Putting in a line forces the question to be asked. Since I'm discarding all changes I needn't erase the line but never mind.

 

The resume is just something I now put at the end of all my scripts. Notepad sometimes puts a blank line at the end which AutoCAD interprets as "repeat last command". Resume is a sort of "do nothing" command so it doesn't matter if it gets repeated.

 

WHICH COMMAND IS RESUME

 

THANK YOU

Link to comment
Share on other sites

resume actually restarts a script that has been stopped early. I just use it to prevent spare lines at the end of a script from repeating the last command.

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