Hallo
Momenteel gebruik ik een ilogic-regel (hieronder) om automatisch dxf-bestanden te maken bij het opslaan van de IDW.
Als Vault-gebruiker wil ik (indien mogelijk) het DXF-bestand automatisch aan het IDW-bestand koppelen tijdens het archiveren of valideren.
Het uiteindelijke doel is om de dxf- en pdf-bestanden in één stap uit de bovenste set uit de kluis te extraheren.
Dank u voor uw hulp.
' Haal de DXF-vertaler Add-In op. DimDXFAddInAlsVertalerAddIn DXFAddInThisApplication.ToepassingAdd-ins. ItemById("{C24E3AC4-122E-11D5-8E91-0010B541CD80}") 'Stel een verwijzing in naar het actieve document (het document dat moet worden gepubliceerd). DimoDocumentAlsDocument oDocumentThisApplication.ActiveDocument dimoContext alsTranslationContext oContext ThisApplication.TransientObjects. CreateTranslationContext oContext. TypIOMechanismEnum. kFileBrowseIOMechanisme ' Maak een NameValueMap-object DimoOptionsAsNameValueMap oOptionsThisApplication.TransientObjects. CreateNameValueMap ' Maak een DataMedium-object aanDimoDataMediumalsDataMedium oDataMediumThisApplication.TransientObjects. CreateDataMedium ' Controleer of de vertaler 'Opslaanals'-opties heeftAlsDXFAddIn. HasSaveCopyAsOptions(oDocumentoContext oOptionsDim vervolgens strIniFileAsString strIniFile"C:\temp\dxfout.ini "' Maak de naam-waarde die het ini-bestand specificeert dat moet worden gebruikt. oOpties. Value("Export_Acad_IniFile"strIniFile EndIf 'Stel de naam van het doelbestand in oDataMedium.BestandsnaamThisDoc. PathAndFileName(False".dxf" 'Document publiceren. DXFAddIn. SaveCopyAs(oDocumentoContext oOptionsoDataMedium) 'Start het dxf-bestand in elke applicatie die Windows is ingesteld om dit documenttype te openen met iMessageBox.Show("Bekijk een voorbeeld van het DXF-bestand?""Titel",MessageBoxButtons.JaNee, MessageBoxIcon. vraag) AlsikvbJadanditDoc. Lancering (oDataMedium.Bestandsnaam)