Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.
In my drawing, there is a block called a.stamps that I am trying to redefine with a wblock that exists in my block library. I am trying to update this block in several hundred acad files. The block definition in my test drawing will not update. Please help!
this is my code...
filedia 0
cmddia 0
.OSMODE 16384
TILEMODE
1
-VIEW
RESTORE
HOME
GRID
OFF
-Layer
A
I
"C:\Users\bmn932\OneDrive - AFRY\_JERVOIS\133001042JER\CAD\P&ID's\CAD RESOURCES:\AFRY.LAS"
I
"C:\Users\bmn932\OneDrive - AFRY\_JERVOIS\133001042JER\CAD\P&ID's\CAD RESOURCES:\AFRY-GRID ON.las"
I
"C:\Users\bmn932\OneDrive - AFRY\_JERVOIS\133001042JER\CAD\P&ID's\CAD RESOURCES:\AFRY - SUBMITTAL.las"
R
AFRY-GRID ON.las
TILEMODE
0
.ZOOM
EXTENTS
_CLAYER
G-BRDR-STKR
setvar BLOCKREDEFINEMODE 2
-insert "C:\Users\bmn932\OneDrive - AFRY\_JERVOIS\133001042JER\CAD\P&ID's\CAD RESOURCES\ACAD BLOCKS\A.STAMPS.DWG"
@36.446900,3.952154
1
1
0
_ATTSYNC
Name
A.STAMPS
_CLAYER
0
filedia 1
cmddia 1
.OSMODE 4471
.QSAVE
Solved! Go to Solution.
Solved by Kent1Cooper. Go to Solution.
Notice this lisp routine that uses insert blockname=wblock which redefines the block @TomBeauford
@thomas.stansell wrote:
....
-insert "C:\Users\bmn932\OneDrive - AFRY\_JERVOIS\133001042JER\CAD\P&ID's\CAD RESOURCES\ACAD BLOCKS\A.STAMPS.DWG"
....
If you can put that filepath in your Support File Search Path list in OPTIONS, and if the Block name is the same as the external drawing file name, then that line can be replaced by just:
-insert A.STAMPS= Yes
The Yes is to answer the question of whether to redefine the Block.
[By the way, you don't need to include the .DWG filetype ending -- it won't consider any other kind of file.]
@Kent1Cooper I did what you said...at least I think I did...please take a look and tell me where I messed it up?
-------------------------------------------------------------------
TILEMODE
0
.ZOOM
EXTENTS
_CLAYER
G-BRDR-STKR
setvar BLOCKREDEFINEMODE 2
-insert A.STAMPS= Yes
@36.446900,3.952154
1
1
0
---------------------------------------------------------------------
Remove the Yes answer -- it's not asking whether you want to Redefine it. I don't know whether that's because of the BLOCKREDEFINEMODE setting [the description in Help doesn't look like it should be the reason], or just a difference in the operation when in a Script, or maybe your EXPERT System Variable setting prevents it.
Can't find what you're looking for? Ask the community or share your knowledge.