Jump to content

Recommended Posts

Posted

Hi all,

 

I am using Wscript to run a script on bunch of files.

 

WScript.png

(Again, wonderful application Lee. I use it a lot ;))

 

I need to add a C/R character at the of my block name in ATTSYNC command. The SPACE does not work simply because it would be considered as part of block name (ATTSYNC needs a hard c/r keystroke at the end of the block name) and I can't use c/r on the other hand because wscript is a single line mode application.

 

2lt4h04.jpg

 

I also tried "" around the block name and (Command "") but they were both failure attempts.

 

I was wondering if there is any work around tip for my issue ...

Posted

Just for those who may have same issue later on, the solution I found was another freeware by cadig called AutoScript. Unlike ScripPro, it is a 64bit application :)

 

autoscript.gif

 

Using AutoScript, you do not have the 'single-line code' limitation.

 

Additionally, if you want to spend some money on more fancy tools, here is another one:

http://www.cadfx.com/batchscr/

Posted

Maybe put the block name in quotes? I've never used that program before so I'm assuming the script is written like a normal one.

Posted

I use a semi colon on Tool palettes, would they work here?

Posted
Just for those who may have same issue later on, the solution I found was ...

 

Can you post the (part of) script file produced so we can all see how the problem was solved. Or is the script run from within AutoScript?

Posted
Maybe put the block name in quotes? I've never used that program before so I'm assuming the script is written like a normal one.

 

I also tried "" around the block name and (Command "") but they were both failure attempts.

 

I think AttSync specifically looks for c/r character as an indication to recognize block name. Anything before c/r will be interpreted as part of the block name. I have not tried '' though.

 

---

 

I use a semi colon on Tool palettes, would they work here?

 

No chance.

---

 

Can you post the (part of) script file produced so we can all see how the problem was solved. Or is the script run from within AutoScript?

 

There is no rocket science behind the script per se. It is more changing the question rather than solving it. You install AutoScript and then, in AutoCAD command line, type AutoScript. The rest is purely like ScriptPro from Autodesk.

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