Author Topic: Change Multiple dwgs with a scripts or something  (Read 7709 times)

0 Members and 1 Guest are viewing this topic.

ELOQUINTET

  • Guest
Re: Change Multiple dwgs with a scripts or something
« Reply #30 on: July 24, 2006, 07:12:19 PM »
i just stumbled upon this post and am still perplexed as to how you guys got scriptpro to work. i was never able to get that thing to do anything. in my instance all i wanted to do is open a bunch of drawings and import our current page setups. it would also be splendid if it could trash the ones which apply to obselete plotters. i put this project aside for awhile because i could not get it to work but maybe this is a call to pick it up again.

M-dub

  • Guest
Re: Change Multiple dwgs with a scripts or something
« Reply #31 on: July 24, 2006, 07:18:45 PM »
I've never used ScriptPro...
I use Directory Printer to get my directory listings, then Excel to create my scripts...

Bob Wahr

  • Guest
Re: Change Multiple dwgs with a scripts or something
« Reply #32 on: July 24, 2006, 07:27:59 PM »
Holy multiscript thread BATTMAN!

trashing the unused pagesetups is a more differenter thing and cannot be done form the commandline but to import pagesetups via a script,

Code: [Select]
-PSETUPIN
<drawing with the page setups in it>
*
I also have never used scriptpro.  Also Excel.  Rarely do scripts these days, as there is a lot less reason to do them IMO.

M-dub

  • Guest
Re: Change Multiple dwgs with a scripts or something
« Reply #33 on: July 24, 2006, 07:33:05 PM »
CHTXT IS WORKING.

t (per cmd line thinks its mtext
g (group)


I was trying to bring in a external block at 0,0

here is where i am at

Code: [Select]
-STYLE
L175
ARIAL.TTF
.2




chtXT

t
g
CONCRETE
CONC.
t
g
PAVEMENT
PVMT.



SPELL
ALL

_INSERT
E:\CAD\WATERMARK.DWG
0,0

-plot
yes

IR2270.pc3

Inches
PORTRAIT
no
extents
FIT
Center
yes
OCE DEBOY.CTB
yes
no
no
no
yes


Ok, that's what you have, but what is the problem?  Is it with the CHT routine?  I'm at home and can't remember whether it's String or Text, but you're right, G is for Global.

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Re: Change Multiple dwgs with a scripts or something
« Reply #34 on: July 24, 2006, 07:37:48 PM »
um... trying to do a find and replace.

lol - i know why this is frusterating... I AM NEW! grhh...

now the block one is not working! lol

-INSERT
WATERMARK
0,0,0
1
Civil3D 2020

Bob Wahr

  • Guest
Re: Change Multiple dwgs with a scripts or something
« Reply #35 on: July 24, 2006, 07:39:33 PM »
Glad you posted, I missed that post in a page change.

T is text
G is global
<string to change>
<new string>

et viola, find and replace

make sure the drawing (WATERMARK) is in your support path or change the script so that it has the full path of the file.  You also aren't giving it everything with the block

-insert
watermark
0,0,0
1

0

0,0,0 is the isertion point
1 is the x scale factor
 is the yscale factor
0 is the rotation angle.
« Last Edit: July 24, 2006, 07:41:34 PM by Bob Wahr »

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Re: Change Multiple dwgs with a scripts or something
« Reply #36 on: July 24, 2006, 07:40:20 PM »
Go watch TV.... worry about this booger tomorrow.

but thanks for everyones help... I appreciate it!
Civil3D 2020

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Re: Change Multiple dwgs with a scripts or something
« Reply #37 on: July 24, 2006, 07:41:22 PM »
it pulls in the dwg... I just can not get the script to place it automatically... I have the speicify the place and scale....

thats all
Civil3D 2020

M-dub

  • Guest
Re: Change Multiple dwgs with a scripts or something
« Reply #38 on: July 24, 2006, 07:42:01 PM »
lol - i know why this is frusterating... I AM NEW! grhh...
Hey, don't worry about it!  We're not! :)

CHT is what I use(d to use for find and replace... Don't think the Find and Replace thing Acad has now works at the command line).  When you type CHT, what do you see?  What are your options?

It's a little tougher for me right now, 'cause I'm at home without AutoCAD...

Bob Wahr

  • Guest
Re: Change Multiple dwgs with a scripts or something
« Reply #39 on: July 24, 2006, 07:42:53 PM »
MSTG, check the edit to my last post.  I still have 15 minutes before I get to leave work.

M-dub

  • Guest
Re: Change Multiple dwgs with a scripts or something
« Reply #40 on: July 24, 2006, 07:43:24 PM »
You're too quick, Bob! :)

Bob Wahr

  • Guest
Re: Change Multiple dwgs with a scripts or something
« Reply #41 on: July 24, 2006, 07:43:39 PM »
It's a little tougher for me right now, 'cause I'm at home without AutoCAD...
I'm never without AutoCAD, it lives inside my head.

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Re: Change Multiple dwgs with a scripts or something
« Reply #42 on: July 24, 2006, 07:46:27 PM »
trying it right now....

its loading....

and 3 2 1


?????

DesktopProfile\detail.scr"

Command: -STYLE
Enter name of text style or [?] <L175>: L175

Existing style. Full font name = Arial
Specify full font name or font filename (TTF or SHX) <ARIAL.TTF>: ARIAL.TTF
Specify height of text <0.2000>: .2
Specify width factor <1.0000>:

Specify obliquing angle <0d0'0">:
Display text backwards? [Yes/No] <N>:
Display text upside-down? [Yes/No] <N>:

"L175" is now the current text style.

Command: chtXT

Searching BLOCKS for Text..........
Searching ENTITIES for Text
CHBTX Cancelled.
Thanks for Using CHTXT!

Command:
CHTXT
Searching BLOCKS for Text..........
Searching ENTITIES for Text
CHBTX Cancelled.
Thanks for Using CHTXT!

Command:
CHTXT
Searching BLOCKS for Text..........
Searching ENTITIES for Text
CHBTX Cancelled.
Thanks for Using CHTXT!

Command: SPELL

Select objects: ALL
33 found

Select objects:

Command: insert
Enter block name or [?]: watermark

Units: Feet   Conversion:   12.0000
Specify insertion point or
[Basepoint/Scale/X/Y/Z/Rotate/PScale/PX/PY/PZ/PRotate]: 0,0,0

Enter X scale factor, specify opposite corner, or [Corner/XYZ] <1>: 1
Enter Y scale factor <use X scale factor>:

Specify rotation angle <0d0'0">: 0

Command:
INSERT Enter block name or [?] <watermark>:

Units: Feet   Conversion:   12.0000
Specify insertion point or
[Basepoint/Scale/X/Y/Z/Rotate/PScale/PX/PY/PZ/PRotate]: -plot

Point or option keyword required.
Specify insertion point or
[Basepoint/Scale/X/Y/Z/Rotate/PScale/PX/PY/PZ/PRotate]: *Cancel*
Civil3D 2020

M-dub

  • Guest
Re: Change Multiple dwgs with a scripts or something
« Reply #43 on: July 24, 2006, 07:47:51 PM »
It's a little tougher for me right now, 'cause I'm at home without AutoCAD...
I'm never without AutoCAD, it lives inside my head.
Where does it store all of those error logs?  ;)

never mind...

keyword: dmp

M-dub

  • Guest
Re: Change Multiple dwgs with a scripts or something
« Reply #44 on: July 24, 2006, 07:49:49 PM »
I remember two different lisp routines that were very close.  There's a CHTXT and a CHTEXT.  Looks like you've got a different one than I'm used to.  We might have to revisit this tomorrow...