PDA

View Full Version : Marker Definition error -147


KChyld
04-01-2008, 07:19 AM
Hi,

I am having trouble using the marker definitions with a template that I have created. The shape file will convert fine if I don’t use the template however when I do use the template I get the following:
ERROR Saving file: X:\000-Jobs Pending\GIS\arc2cad\W_Fh.dwg
Error code is -147. Is the file open in another application (e.g. AutoCAD)?
We are on v5.0 A.17

Please let me know if you need any additional information

GuthCAD Software Support
04-01-2008, 01:40 PM
Hi,

Please update to the latest version (5.0 A.33 as of this post.) It should hopefully fix the problem. Download here. (http://www.guthcad.com/download.htm)

If you still get errors, try remaking your template DWG as a 'clean' drawing. I.e. start with a new empty DWG, and copy and paste the Blocks that you need into the new drawing.

best regards,
Software Support

KChyld
08-01-2008, 05:26 AM
Thanks for the quick reply, that worked. I seem to be having another issue now. I have multiple shapes that I want to convert. Each shape has it’s own custom block that I have created for it that I wish to use as a marker definition. I have created a single DWG file that contains an instance of each of the blocks I will need. I have also created a single A2C file that contains all the switch information I will need. What appears to happen, is that only 1 of the block definitions is used across all the shape files. In the code example below the block X-INLET-10 is used on all shapes despite the fact that I have specified other block for them.

A2C Example:
; Storm Drain Inlet
/C0=8 \
/L=SD_Inlet \
/P=13 /PH=1.0 /PNB=X-INLET-10 \
/SV=14 \
"H:\GIS\arc2cad\SD_Inlet.shp" "H:\GIS\arc2cad\SD_Inlet.dwg"
; FIRE HYDRANTS
/C0=8 \
/L=0-GIS-W-FH \
/P=13 /PH=20.0 /PNB=X-Fh \
/SV=14 \
/TN=WWW_ID /TS=ROMANS /TF=ROMANS_.TTF /TH=1.600000 /TC=-1 /TO=1 /TOF=5.0000 /TL=1 /TLL=0-GIS-W-FH-TXT \
"H:\GIS\arc2cad\w_fh.shp" "H:\GIS\arc2cad\w_fh.dwg"
; WATER METER
/C0=150 \
/L=0-GIS-W-METER \
/P=13 /PH=20.0 /PNB=X-METER \
/SV=14 \
/TN=WWW_ID /TS=ROMANS /TF=ROMANS_.TTF /TH=1.60000 /TC=-1 /TO=1 /TOF=5.0000 /TL=1 /TLL=0-GIS-W-METER-TXT /TPB=5 \
"H:\GIS\arc2cad\W_Meter.shp" "H:\GIS\arc2cad\W_Meter.dwg"
; WATER VALVE - CONTROL
/C0=8 \
/L=0-GIS-W-VAL \
/P=13 /PH=20.0 /PNB=X-VALVE \
/SV=14 \
/TN=WWW_ID /TS=ROMANS /TF=ROMANS_.TTF /TH=1.600000 /TC=-1 /TO=1 /TOF=5.0000 /TL=1 /TLL=0-GIS-W-VAL-TXT /TPB=5 /TD=1 /TDP=0 \
"H:\GIS\arc2cad\W_Val_Ctrl.shp" "H:\arc2cad\W_Val_Ctrl.dwg"
; WASTE WATER MANHOLE
/C0=2 \
/L=WW_Mh \
/P=13 /PH=1.0 /PNB=X-WW-MH \
/SV=14 \
"H:\GIS\arc2cad\ww_mh.shp" "H:\GIS\arc2cad\ww_mh.dwg"

Again, let me know if you need more detail or if I’m taking the wrong approach to multiple shape processing.

GuthCAD Software Support
08-01-2008, 10:24 PM
Hi,

There is a switch for specifying the dwg file that contains the custom BLOCKS. It is

/PB=pathname

where 'pathname' is the full pathname of the location of the dwg file.

Example:

/PB=c:\myblocks\customblocks.dwg

So in your script, whereever you have the switch /P=13, add after it the /PB switch. E.g.

/P=13 /PB=c:\myblocks\customblocks.dwg

Hopefully it will fix it!

Best regards,
Software Support