| | | Gut zu wissen: Hilfreiche Tipps und Tricks aus der Praxis prägnant, und auf den Punkt gebracht für Autodesk Produkte |
Autor
|
Thema: iLogic DXF mehrere Blätter (1250 mal gelesen)
|
guentam Mitglied Konstrukteurin
Beiträge: 89 Registriert: 26.03.2007 Inventor 2016.2.5 AutoCad 2016 3ds Max Design 2016 Pro.File 8.6 Windows 7 64 bit SP1
|
erstellt am: 25. Sep. 2017 09:42 <-- editieren / zitieren --> Unities abgeben:
Hallo zusammen ich verwende diverse iLogic Regeln die beim speichern ausgeführt werden, das funktioniert auch soweit alle. In der Vergangenheit hatten wir immer nur ein Blatt in der IDW und die iLogic Regel hat funktioniert. Jetzt kommt es immer häufiger vor das 2 oder mehr Blätter in einer IDW verwendet werden und ich muss manuell sagen das er die vorhandene IDW (gleicher Name) überschreiben darf. Kann man die Regel nicht umschreiben das er das automatisch macht? Hier meine iLogic Regel: ' Get the DXF translator Add-In. Dim DXFAddIn As TranslatorAddIn DXFAddIn = ThisApplication.ApplicationAddIns.ItemById("{C24E3AC4-122E-11D5-8E91-0010B541CD80}") 'Set a reference to the active document (the document to be published). Dim oDocument As Document oDocument = ThisApplication.ActiveDocument Dim oContext As TranslationContext oContext = ThisApplication.TransientObjects.CreateTranslationContext oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism ' Create a NameValueMap object Dim oOptions As NameValueMap oOptions = ThisApplication.TransientObjects.CreateNameValueMap ' Create a DataMedium object Dim oDataMedium As DataMedium oDataMedium = ThisApplication.TransientObjects.CreateDataMedium ' Check whether the translator has 'SaveCopyAs' options If DXFAddIn.HasSaveCopyAsOptions(oDocument, oContext, oOptions) Then Dim strIniFile As String strIniFile = "G:\Inventor 2016\iLogic\dxf.ini" ' Create the name-value that specifies the ini file to use. oOptions.Value("Export_Acad_IniFile") = strIniFile End If 'Set the destination file name oDataMedium.FileName = ThisDoc.PathAndFileName(False) & ".dxf" 'Publish document. DXFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium) 'Launch the dxf file in whatever application Windows is set to open this document type with 'i = MessageBox.Show("Preview the DXF file?", "Title",MessageBoxButtons.YesNo,MessageBoxIcon.Question) 'If i = vbYes Then ThisDoc.Launch(oDataMedium.FileName) Liebe Grüße aus Hof
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |
RolandD Mitglied
Beiträge: 545 Registriert: 07.01.2005 i7-9700k 32GB DDR4-RAM Nvidia RTX 2060 SSD 970 m.2 Win10-64 (21H2) AIP 2020.3 Dell U3417W
|
erstellt am: 25. Sep. 2017 11:21 <-- editieren / zitieren --> Unities abgeben: Nur für guentam
|
guentam Mitglied Konstrukteurin
Beiträge: 89 Registriert: 26.03.2007 Inventor 2016.2.5 AutoCad 2016 3ds Max Design 2016 Pro.File 8.6 Windows 7 64 bit SP1
|
erstellt am: 25. Sep. 2017 11:41 <-- editieren / zitieren --> Unities abgeben:
Hallo Roland, in meiner dxf.ini Datei steht hinter "ALL SHEETS" schon YES Inhalt der dxf.ini Datei: [EXPORT SELECT OPTIONS] AUTOCAD VERSION=AutoCAD 2013 CREATE AUTOCAD MECHANICAL=No USE TRANSMITTAL=No USE CUSTOMIZE=No CUSTOMIZE FILE=G:\Inventor 2016\Konfiguration\Design Data\DWG-DXF\FlatPattern.xml CREATE LAYER GROUP=No PARTS ONLY=No REPLACE SPLINE=No CHORD TOLERANCE=0,001000 [EXPORT PROPERTIES] SELECTED PROPERTIES= [EXPORT DESTINATION] SPACE=Model SCALING=Geometry ALL SHEETS=Yes MAPPING=MapsBest MODEL GEOMETRY ONLY=No EXPLODE DIMENSIONS=No SYMBOLS ARE BLOCKED=Yes AUTOCAD TEMPLATE= DESTINATION DXF=Yes USE ACI FOR ENTITIES AND LAYERS=No [EXPORT LINE TYPE & LINE SCALE] LINE TYPE FILE=G:\Inventor 2016\Konfiguration\COMPATIBILITY\Support\invDIN.lin Continuous=Continuous;0, Dashed=Continuous;0, Dashed Space=Continuous;0, Long Dash Dotted=Continuous;0, Long Dash Double Dot=Continuous;0, Long Dash Triple Dot=Continuous;0, Dotted=Continuous;0, Chain=Continuous;0, Double Dash Chain=Continuous;0, Dash Double Dot=Continuous;0, Dash Dot=Continuous;0, Double Dash Dot=Continuous;0, Double Dash Double Dot=Continuous;0, Dash Triple Dot=Continuous;0, Double Dash Triple Dot=Continuous;0, Liebe Grüße Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |
| Anzeige.:
Anzeige: (Infos zum Werbeplatz >>)
|