home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 January
/
Chip_1997-01_cd.bin
/
ms95
/
disk22
/
dir10
/
f010450.re_
/
f010450.re
Wrap
Text File
|
1996-04-02
|
4KB
|
74 lines
'DWG Import/Export Settings
Sub Main
'-----------------------------------------------------------------------------
' The following examples are presented as patterns to use in your own
' table mappings. Copy and modify with your own settings.
'-----------------------------------------------------------------------------
'-----------------------------------------------------------------------------
' Block Name Table Maps Block names to Cell names.
'-----------------------------------------------------------------------------
'-----------------------------------------------------------------------------
' The following example will map block BLOCK1 to Cell5 for import only
'-----------------------------------------------------------------------------
'MbeBlockNameTable.addImportEntry "BLOCK1", "CELL5"
'-----------------------------------------------------------------------------
' This next example with map cell LBLKNM to LONGBLOCKNAME for export only
'-----------------------------------------------------------------------------
'MbeBlockNameTable.addExportEntry "LONGBLOCKNAME", "LBLKNM"
'-----------------------------------------------------------------------------
' The following example with map block BLOCKNAME to BLKNAM on import and then
' the reverse on export.
'-----------------------------------------------------------------------------
'MbeBlockNameTable.addImportExportEntry "BLOCKNAME", "BLKNAM"
'-----------------------------------------------------------------------------
' ASCII Files containg mappings can also be read for import, export or both.
'-----------------------------------------------------------------------------
'MbeBlockNameTable.addImportEntryFromFile "someblk1.txt"
'MbeBlockNameTable.addExportEntryFromFile "someblk2.txt"
'MbeBlockNameTable.addImportExportEntryFromFile "someblk3.txt"
'-----------------------------------------------------------------------------
' MBEFontNameTable maps font file names to font numbers with optional width
' factor and oblique angle. This object replaces functionality previously
' provided in dialog based font map editing. The last two parameters are
' optional but if you want to set the oblique angle, (last parameter), you
' must also set the width factor as well. The same methods that are
' available for the block name mapping table are available for the font
' mapping table.
'-----------------------------------------------------------------------------
'MbeFontNameTable.addExportEntry "romanc", 3, 2.0, 30.0
'MbeFontNameTable.addImportEntry "romand", 10, 4.0
'MbeFontNameTable.addImportExportEntry "romans" 7, 1.0, 15.0
'-----------------------------------------------------------------------------
' This next line is not commented off as it retains compatibility with
' previous versions of the font mapping table.
'-----------------------------------------------------------------------------
MbeFontNameTable.addImportExportEntryFromFile "dwgfont.tbl"
'
' Current DWG Import setting properties
' Possible values listed to right
'
MbeDWGImportSettings.polylineWidthAs = MBE_Linestyle ' MBE_Shape, MBE_Linestyle, MBE_None
MbeDWGImportSettings.ignoreEmptyLayers = MBE_ON ' MBE_On, MBE_Off
'
' Current DWG Export setting properties
' Possible values listed to right
'
MbeDWGExportSettings.ltScale = 1.0 ' any value > 0
MbeDWGExportSettings.DXFPrecision = 6 ' any positive int
MbeDWGExportSettings.refNameInLayer = MBE_ON ' MBE_On, MBE_Off
MbeDWGExportSettings.reverseTagOrder = MBE_Off ' MBE_On, MBE_Off
end sub