adobe pdf 是在cad的注册表中加入自动启动项,如:
[HKEY_LOCAL_MACHINE/SOFTWARE/Autodesk/AutoCAD/R17.1/ACAD-6001:804/Applications/PDFMAcad]
"LOADCTRLS"=dword:00000002
"LOADER"="D://Program Files//Adobe//Acrobat 9.0//PDFMaker//AutoCAD//2008//32//PDFMAcad.arx"
PDFMAcad.arx在被加载时,首先创建一下文件夹:
C:/Documents and Settings/xhy/Application Data/Adobe/Acrobat/9.0/ACAD-6001-804
然后创建 PDFMAcad.cui 以及其他几个bmp图标文件
列表如下:
PDFC.BMP,PDFCL.BMP,PDFIC.cui,PDFIC.mnr,PDFIC.mnu,PDFMAcad.cui,PDFMAcad.mnr,PDFMAcad.mnu,PDFR.BMP,PDFRL.BMP
然后将 PDFMAcad.cui 载入cad.
载入的方法不像是通过发送命令实现的,具体不知道.
在关闭CAD时,adobe会删除载入项,然后删除创建的文件和文件夹.
PDFMAcad.cui文件内容如下:
<?xml version="1.0"?>
<!--
警告!请勿编辑此文件的内容。
如果试图使用 XML 编辑器来编辑此文件,可能会失去自定义和移植功能。
如果需要修改自定义文件中的信息,请使用产品中的“自定义用户界面”对话框。
要访问“自定义用户界面”对话框,请单击“工具”菜单 >“自定义”>“界面”,或者在命令行中输入 CUI。
-->
<CustSection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<FileVersion MajorVersion="0" MinorVersion="4" IncrementalVersion="1" UserVersion="1" />
<Header>
<CommonConfiguration>
<CommonItems>
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
</CommonItems>
</CommonConfiguration>
<WorkspaceRoot>
<WorkspaceConfigRoot />
</WorkspaceRoot>
</Header>
<MenuGroup Name="ADOBE_PDF">
<MacroGroup Name="ADOBE PDFMacros">
<MenuMacro UID="ID_ADBE_PDF">
<Macro type="Any">
<Revision MajorVersion="16" MinorVersion="2" UserVersion="1" />
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
<Name xlate="true" UID="XLS_0002">转换为 Adobe PDF</Name>
<Command>^C^CPDF </Command>
<HelpString xlate="true" UID="XLS_0015">转换为 Adobe PDF:PDF</HelpString>
<SmallImage Name="PDFC.BMP" />
<LargeImage Name="PDFCL.BMP" />
</Macro>
</MenuMacro>
<MenuMacro UID="ID_ADBE_PDFMAIL">
<Macro type="Any">
<Revision MajorVersion="16" MinorVersion="2" UserVersion="1" />
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
<Name xlate="true" UID="XLS_0004">转换为 Adobe PDF 并通过电子邮件发送</Name>
<Command>^C^CPDFMAIL </Command>
<HelpString xlate="true" UID="XLS_0016">转换为 Adobe PDF 并通过电子邮件发送:PDFMAIL</HelpString>
</Macro>
</MenuMacro>
<MenuMacro UID="ID_ADBE_PDFREVIEW">
<Macro type="Any">
<Revision MajorVersion="16" MinorVersion="2" UserVersion="1" />
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
<Name xlate="true" UID="XLS_0006">转换为 Adobe PDF 并发送供审阅</Name>
<Command>^C^CPDFREVIEW </Command>
<HelpString xlate="true" UID="XLS_0017">转换为 Adobe PDF 并发送供审阅:PDFREVIEW</HelpString>
<SmallImage Name="PDFR.BMP" />
<LargeImage Name="PDFRL.BMP" />
</Macro>
</MenuMacro>
<MenuMacro UID="ID_ADBE_PDFBATCH">
<Macro type="Any">
<Revision MajorVersion="16" MinorVersion="2" UserVersion="1" />
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
<Name xlate="true" UID="XLS_0008">批处理转换...</Name>
<Command>^C^CPDFBATCH </Command>
<HelpString xlate="true" UID="XLS_0019">启动从多个文件的批处理创建: PDFBATCH</HelpString>
</Macro>
</MenuMacro>
<MenuMacro UID="ID_ADBE_PDFSETTINGS">
<Macro type="Any">
<Revision MajorVersion="16" MinorVersion="2" UserVersion="1" />
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
<Name xlate="true" UID="XLS_0010">更改转换设置...</Name>
<Command>^C^CPDFSETTINGS </Command>
<HelpString xlate="true" UID="XLS_0018">更改 PDF 转换设置:PDFSETTINGS</HelpString>
</Macro>
</MenuMacro>
</MacroGroup>
<MenuRoot>
<AcceleratorRoot />
<OverrideRoot />
<MouseButtonRoot />
<DigitizerButtonRoot />
<PopMenuRoot>
<PopMenu hasDiesel="false" UID="ID_ADBE_ADOBE_PDF">
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
<Alias>POP1</Alias>
<Name xlate="true" UID="XLS_0001">Adobe PDF(&B)</Name>
<PopMenuItem IsSeparator="false" hasDiesel="false" UID="PMIU_0001">
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
<NameRef UID="XLS_0003" xlate="true">转换为 Adobe PDF(&C)</NameRef>
<MenuItem>
<MacroRef MenuMacroID="ID_ADBE_PDF" />
</MenuItem>
</PopMenuItem>
<PopMenuItem IsSeparator="false" hasDiesel="false" UID="PMIU_0002">
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
<NameRef UID="XLS_0005" xlate="true">转换为 Adobe PDF 并通过电子邮件发送(&E)</NameRef>
<MenuItem>
<MacroRef MenuMacroID="ID_ADBE_PDFMAIL" />
</MenuItem>
</PopMenuItem>
<PopMenuItem IsSeparator="false" hasDiesel="false" UID="PMIU_0003">
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
<NameRef UID="XLS_0007" xlate="true">转换为 Adobe PDF 并发送供审阅(&R)</NameRef>
<MenuItem>
<MacroRef MenuMacroID="ID_ADBE_PDFREVIEW" />
</MenuItem>
</PopMenuItem>
<PopMenuItem IsSeparator="true" hasDiesel="false" UID="PMIU_0004">
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
</PopMenuItem>
<PopMenuItem IsSeparator="false" hasDiesel="false" UID="PMIU_0005">
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
<NameRef UID="XLS_0009" xlate="true">批处理转换(&T)...</NameRef>
<MenuItem>
<MacroRef MenuMacroID="ID_ADBE_PDFBATCH" />
</MenuItem>
</PopMenuItem>
<PopMenuItem IsSeparator="true" hasDiesel="false" UID="PMIU_0006">
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
</PopMenuItem>
<PopMenuItem IsSeparator="false" hasDiesel="false" UID="PMIU_0007">
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
<NameRef UID="XLS_0011" xlate="true">更改转换设置(&S)...</NameRef>
<MenuItem>
<MacroRef MenuMacroID="ID_ADBE_PDFSETTINGS" />
</MenuItem>
</PopMenuItem>
</PopMenu>
</PopMenuRoot>
<ToolbarRoot>
<Toolbar ToolbarOrient="top" ToolbarVisible="show" xval="0" yval="0" rows="1" UID="TBU_0002">
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
<Alias>TB_ADOBE_PDF</Alias>
<Alias>Acrobat_PDFMaker_9.0</Alias>
<Name xlate="true" UID="XLS_0012">Acrobat PDFMaker 9.0</Name>
<ToolbarButton IsSeparator="false" UID="TBBU_0001">
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
<Name xlate="true" UID="XLS_0013">转换为 Adobe PDF</Name>
<MenuItem>
<MacroRef MenuMacroID="ID_ADBE_PDF" />
</MenuItem>
</ToolbarButton>
<ToolbarButton IsSeparator="false" UID="TBBU_0002">
<ModifiedRev MajorVersion="17" MinorVersion="1" UserVersion="1" />
<Name xlate="true" UID="XLS_0014">转换为 Adobe PDF 并发送供审阅</Name>
<MenuItem>
<MacroRef MenuMacroID="ID_ADBE_PDFREVIEW" />
</MenuItem>
</ToolbarButton>
</Toolbar>
</ToolbarRoot>
<ScreenMenuRoot />
<ImageMenuRoot />
<TabletMenuRoot />
<DoubleClickRoot />
<ToolPanelRoot />
<PanelSetRoot>
<PanelSet UID="PSTU_0001" />
</PanelSetRoot>
</MenuRoot>
</MenuGroup>
</CustSection>