<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Thema "Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor" in Inventor - Deutsches Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8547210#M16150</link>
    <description>&lt;P&gt;Hallo Martin,&lt;/P&gt;
&lt;P&gt;hab's ausprobiert, funktioniert. Vielen Dank. Wenn man auf das Blatt zugreifen will perfekt.&lt;/P&gt;
&lt;P&gt;viele Grüße Ralf&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2019 18:30:41 GMT</pubDate>
    <dc:creator>ralf.rosenburg</dc:creator>
    <dc:date>2019-01-24T18:30:41Z</dc:date>
    <item>
      <title>iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor 2019</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8546810#M16141</link>
      <description>&lt;P&gt;Hallo, vielleicht kann mir jemand helfen&lt;/P&gt;
&lt;P&gt;Ich benötige eine ilogic Regel, welche aus einer Vorlagenzeichnung ein bestimmtes Schriftfeld in meine aktuelle Zeichnung kopiert.&lt;/P&gt;
&lt;P&gt;Also ich habe mehrere Kunden und für jeden Kunden ein spezifisches Schriftfeld. Nun möchte ich in meinen Zeichnungen nur das Schriftfeld des jeweiligen Kunden haben.&lt;/P&gt;
&lt;P&gt;Meine&amp;nbsp;Idee ist es nun eine Vorlagendatei (IDW) zu haben in der alle Schriftfelder gespeichert sind. Z.B. Kunde A, B, C...&lt;/P&gt;
&lt;P&gt;in meiner aktuellen Zeichnung habe ich zuerst mal kein Schriftfeld. Über eine Abfrage möchte ich nun z.B. Kunde A bestimmen. Jetzt brauche ich eine Routine, welche das Schriftfeld von Kunde A in der Vorlagendatei sucht und in meine aktuelle Zeichnung einfügt.&lt;/P&gt;
&lt;P&gt;Den Zugriff auf die Vorlagendatei bekomme ich durch&lt;/P&gt;
&lt;P&gt;Dim oSourceDocument As DrawingDocument&lt;/P&gt;
&lt;P&gt;oSourceDocument = ThisApplication.Documents.open("mein Pfad und Dateinamen") hin&lt;/P&gt;
&lt;P&gt;Den Zugriff auf das Schriftfeld von Kunde A will mir aber einfach nicht gelingen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bin für jede Hilfe dankbar&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 16:30:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8546810#M16141</guid>
      <dc:creator>ralf.rosenburg</dc:creator>
      <dc:date>2019-01-24T16:30:16Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8546867#M16142</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4586428"&gt;@ralf.rosenburg&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ich denke das geht auch ohne iLogic...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Möglichkeit: Du erstellt eine Vorlage in der alle Schriftfelder deiner Kunden enthalten sind. Man kann beliebig viele Schriftfelder in einer Vorlage haben. Kombiniert zu Arbeitsblattformaten kannst du dann schnell das passende Blatt mit entsprechendem Kundenschriftfeld einfügen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Möglichkeit: Für jeden Kunden eine eigene Vorlage erstellen und die dann entsprechend verwenden. (So mache ich das).&lt;/P&gt;
&lt;P&gt;Hilft dir das weiter?&lt;/P&gt;
&lt;P&gt;Gruß Martin&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 16:47:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8546867#M16142</guid>
      <dc:creator>Martin-Winkler-Consulting</dc:creator>
      <dc:date>2019-01-24T16:47:15Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8546967#M16143</link>
      <description>&lt;P&gt;Hallo Martin, vielen Dank für deine Antwort.&lt;/P&gt;
&lt;P&gt;natürlich geht das so wie du das machst ohne iLogic. Momentan habe ich alle Schriftfelder (35 Stück) in der Vorlagedatei. Das will ich nun ja nicht haben. 35 einzelne Vorlagedateien will ich auch nicht haben. Ich habe schon sehr viel in iLogic programmiert und finde diese Schnittstelle toll. Komme bei&amp;nbsp;meinen Problemen aber immer nur durch die einschlägigen Foren weiter. Die Online Hilfe von Autodesk ist zu allgemein gehalten und vernünftige Beispiele fehlen.&amp;nbsp; Bei diesem Problem finde ich aber nur wenige Programmbeispiele.&lt;/P&gt;
&lt;P&gt;Im Beispiel unten wurde das Problem schon angegangen. Dort wird aber nur das Schriftfeld des aktuellen Blatts der Vorlagendatei kopiert. Diese Variante würde grundsätzlich funktionieren. Da brauche ich aber auch 35 Vorlagendateien. Das geht sicherlich eleganter.&lt;/P&gt;
&lt;P&gt;Viele Grüße Ralf&lt;/P&gt;
&lt;P&gt;Grundsätzlich gibt es ein Snippet&amp;nbsp;im iLogic. und zwar This Drawing.ResourceFileName = "Pfad\Dateiname"&lt;/P&gt;
&lt;P&gt;Diese Datei kann man als Quelle für Schriftfelder und Rahmen angeben.&lt;/P&gt;
&lt;P&gt;Ich krieg's halt nicht programmiert.&lt;/P&gt;
&lt;P&gt;Eigentlich müsste das ganz elegant mit einem kleinen Programm zu lösen sein.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 17:12:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8546967#M16143</guid>
      <dc:creator>ralf.rosenburg</dc:creator>
      <dc:date>2019-01-24T17:12:05Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8546980#M16144</link>
      <description>&lt;P&gt;Der Link zum Beispiel&lt;/P&gt;
&lt;P&gt;&lt;A href="https://ww3.cad.de/foren/ubb/Forum50/HTML/030472.shtml" target="_blank"&gt;https://ww3.cad.de/foren/ubb/Forum50/HTML/030472.shtml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 17:16:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8546980#M16144</guid>
      <dc:creator>ralf.rosenburg</dc:creator>
      <dc:date>2019-01-24T17:16:18Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8546994#M16145</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4586428"&gt;@ralf.rosenburg&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kannst du die iLogic Regel die du bisher erstellt hast bitte hier mal posten.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 17:19:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8546994#M16145</guid>
      <dc:creator>Martin-Winkler-Consulting</dc:creator>
      <dc:date>2019-01-24T17:19:22Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8547004#M16146</link>
      <description>&lt;P&gt;Es gibt dutzende Code Beispiele zum Thema&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.google.com/search?q=inventor+api+copy+title+block" target="_blank"&gt;https://www.google.com/search?q=inventor+api+copy+title+block&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Du musst dich beim Suchen von ilogic lösen und api einfügen (wobei ich wetten würde&amp;nbsp; daß es bei der Suche nach ilogic copy title Block auch Treffer gibt). Findest Du VBA Code machst Du so ilogic Code daraus.&amp;nbsp;&lt;A href="https://inventorfaq.blogspot.com/2017/04/vba-code-in-ilogic-code-umwandeln.html" target="_blank"&gt;https://inventorfaq.blogspot.com/2017/04/vba-code-in-ilogic-code-umwandeln.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 17:23:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8547004#M16146</guid>
      <dc:creator>Juergen_Wagner</dc:creator>
      <dc:date>2019-01-24T17:23:46Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8547038#M16147</link>
      <description>&lt;P&gt;Hallo Jürgen,&lt;/P&gt;
&lt;P&gt;vielen Dank für deine Antwort. Ich werde gleich deine Links anschauen.&lt;/P&gt;
&lt;P&gt;@Anonymous unten mein Programm bis jetzt.&lt;/P&gt;
&lt;PRE&gt;Sub Main()
If Not ThisApplication.ActiveDocument.DocumentType = kDrawingDocumentObject Then
        MessageBox.Show("Start ist nur in der Ableitungsumgebung (IDW) möglich!!", "falsches Dokument")

   Else
  
  ' Set a reference to the drawing document.
    ' This assumes a drawing document is active.
    Dim oDrawDoc As DrawingDocument
    oDrawDoc = ThisApplication.ActiveDocument

'Austausch des Schriftfeldes
Dim oNewDocument As DrawingDocument
    oNewDocument = ThisApplication.ActiveDocument

	ThisApplication.SilentOperation = True ' versteckt arbeiten

    Dim oSourceDocument As DrawingDocument
    oSourceDocument = ThisApplication.Documents.Open("Z:\Vorlagen\Inventor\Programmvorgaben\Schriftfelder\Schriftfelder ib-Rosenburg.idw")

    ' Get the new source title block definition.
    Dim oSourceTitleBlockDef As TitleBlockDefinition
	
	oSheet = oSourceDocument.Sheet("Sheet:2") '--&amp;gt; das funktioniert nicht, ich bekomme den Zugriff auf Blatt 2 der Quelldatei nicht hin
	
	oSourceTitleBlockDef = oSourceDocument.ActiveSheet.TitleBlock.Definition '--&amp;gt; das funktioniert, es wird das Schriftfeld des aktiven Blattes der Quelldate kopiert

    ' Get the new title block definition.
    Dim oNewTitleBlockDef As TitleBlockDefinition
    oNewTitleBlockDef = oSourceTitleBlockDef.CopyTo(oNewDocument)
    
    oSourceDocument.Close
    ThisApplication.SilentOperation = False ' versteckt arbeiten
    ' Iterate through the sheets.
    'Dim oSheet As Sheet
    For Each oSheet In oNewDocument.Sheets
        oSheet.Activate

        oSheet.TitleBlock.Delete
        Call oSheet.AddTitleBlock(oNewTitleBlockDef)
    Next
End If
End Sub&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Jan 2019 17:33:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8547038#M16147</guid>
      <dc:creator>ralf.rosenburg</dc:creator>
      <dc:date>2019-01-24T17:33:01Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8547160#M16148</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4586428"&gt;@ralf.rosenburg&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So funktioniert das bei mir jetzt.&lt;/P&gt;
&lt;P&gt;Bitte Anmerkungen beachten!&lt;/P&gt;
&lt;PRE&gt;Sub Main()
If Not ThisApplication.ActiveDocument.DocumentType = kDrawingDocumentObject Then
        MessageBox.Show("Start ist nur in der Ableitungsumgebung (IDW) möglich!!", "falsches Dokument")

   Else
  
  ' Set a reference to the drawing document.
    ' This assumes a drawing document is active.
    Dim oDrawDoc As DrawingDocument
    oDrawDoc = ThisApplication.ActiveDocument

'Austausch des Schriftfeldes
Dim oNewDocument As DrawingDocument
    oNewDocument = ThisApplication.ActiveDocument

	ThisApplication.SilentOperation = True ' versteckt arbeiten

    Dim oSourceDocument As DrawingDocument
    oSourceDocument = ThisApplication.Documents.Open("C:\3D-CAD-SERVICE_test.idw")

    ' Get the new source title block definition.
    Dim oSourceTitleBlockDef As TitleBlockDefinition
	
	'Hier darauf achten das der Name wirklich Blatt:2 oder Sheet:2 ist
	Dim oSheet As Sheet = oSourceDocument.Sheets("Blatt:1")
	oSourceTitleBlockDef = oSheet.TitleBlock.Definition 
    ' Get the new title block definition.
    Dim oNewTitleBlockDef As TitleBlockDefinition
    oNewTitleBlockDef = oSourceTitleBlockDef.CopyTo(oNewDocument)
    
    oSourceDocument.Close
    ThisApplication.SilentOperation = False ' versteckt arbeiten
    ' Iterate through the sheets.
    'Dim oSheet As Sheet&lt;BR /&gt;        
    For Each oSheet In oNewDocument.Sheets
        oSheet.Activate
        'Hier eventuell noch einen möglichen Fehler abfangen der entsteht wenn kein Schriftfeld im neuen Dokument ist, dann dann kann auch keins gelöscht werden
        oSheet.TitleBlock.Delete
        Call oSheet.AddTitleBlock(oNewTitleBlockDef)
    Next
End If
End Sub&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Jan 2019 18:10:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8547160#M16148</guid>
      <dc:creator>Martin-Winkler-Consulting</dc:creator>
      <dc:date>2019-01-24T18:10:51Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8547166#M16149</link>
      <description>&lt;P&gt;Hier eine Sub der du den Pfad zur Vorlagen IDW und dem gewünschten SK Name übergibst und die dann den Rest macht:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub main
	SK_tauschen ("C:\_DOCS\Samples + Tutorial Files Inventor\Konstruktion\tutorial files\Arbor Press\Arbor_Press.dwg", "DIN-6771-1_2")
End Sub
	
Sub SK_tauschen(Pfad As String, SK As String)
	
	Dim oNewDocument As DrawingDocument
	oNewDocument = ThisApplication.ActiveDocument

	Dim oSourceDocument As DrawingDocument
	oSourceDocument = ThisApplication.Documents.Open(Pfad)

	Dim oSourceTitleBlockDef As TitleBlockDefinition
	oSourceTitleBlockDef = oSourceDocument.TitleBlockDefinitions.Item(SK)

	Dim oNewTitleBlockDef As TitleBlockDefinition
	oNewTitleBlockDef = oSourceTitleBlockDef.CopyTo(oNewDocument)

	Dim oSheet As Sheet
	For Each oSheet In oNewDocument.Sheets
		oSheet.Activate
		oSheet.TitleBlock.Delete
		Call oSheet.AddTitleBlock(oNewTitleBlockDef)
	Next
	oSourceDocument.Close(False)
End Sub
&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Jan 2019 18:12:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8547166#M16149</guid>
      <dc:creator>Juergen_Wagner</dc:creator>
      <dc:date>2019-01-24T18:12:37Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8547210#M16150</link>
      <description>&lt;P&gt;Hallo Martin,&lt;/P&gt;
&lt;P&gt;hab's ausprobiert, funktioniert. Vielen Dank. Wenn man auf das Blatt zugreifen will perfekt.&lt;/P&gt;
&lt;P&gt;viele Grüße Ralf&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 18:30:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8547210#M16150</guid>
      <dc:creator>ralf.rosenburg</dc:creator>
      <dc:date>2019-01-24T18:30:41Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8547229#M16151</link>
      <description>&lt;P&gt;Hallo Jürgen,&lt;/P&gt;
&lt;P&gt;das ist ganz genau das was ich gesucht habe, funktioniert perfekt. Jetzt kann ich mein Programm vervollständigen.&lt;/P&gt;
&lt;P&gt;Probier's zumindest &lt;span class="lia-unicode-emoji" title=":leicht_lächelndes_Gesicht:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;vielen Dank und viele&amp;nbsp;Grüße Ralf&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 18:35:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/8547229#M16151</guid>
      <dc:creator>ralf.rosenburg</dc:creator>
      <dc:date>2019-01-24T18:35:28Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/9790012#M16152</link>
      <description>&lt;P&gt;Hallo Zusammen,&lt;/P&gt;&lt;P&gt;ich brauche auch dieses Regel,&lt;/P&gt;&lt;P&gt;bei mir kommt der Fehler Meldung&lt;/P&gt;&lt;P&gt;kann mir bitte die Regel besser klären oder nur saubere hochladen&lt;/P&gt;&lt;P&gt;mit freundlichen Gruß&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 20:15:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/9790012#M16152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-07T20:15:52Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/9790203#M16153</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welche Fehlermeldung wird beim Ausführen der iLogic Regel angezeigt? Du kannst gern auch einen Screenshot hier posten.&amp;nbsp; Welche Inventor Version verwendest du? Hier hat es versionsabhängig verschiedene iLogic Überarbeitungen gegeben.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 22:34:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/9790203#M16153</guid>
      <dc:creator>Udo_Huebner</dc:creator>
      <dc:date>2020-10-07T22:34:57Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/9790920#M16154</link>
      <description>&lt;P&gt;Hallo Pietro,&lt;/P&gt;&lt;P&gt;1. Frage ich den Kunden über ein Formular ab, hierfür habe ich eine extra Regel&lt;/P&gt;&lt;P&gt;Die Kunden stehen in einer Excel Liste - Kundenliste&lt;/P&gt;&lt;P&gt;Die Auswahl erfolgt über ein Formular - Kundenauswahl&lt;/P&gt;&lt;P&gt;2. Frage ich den Schriftfeldtyp über ein Formular ab -Auswahl Schriftfeldtyp, hierfür habe ich eine extra Regel - Abfrage Schriftfeldtyp. Die Schriftfeldtypen stehen in einer Excel Liste - Schriftfeldtypen&lt;/P&gt;&lt;P&gt;Ich verwende unterschiedliche Schriftfelder für Baugruppen, Bauteile und Bibliotheksbaugruppen bzw. Bibliotheksbauteile&lt;/P&gt;&lt;P&gt;3. Einfügen des entsprechenden Schriftfeldes aus der Vorlagedatei in die geöffnete Zeichnung.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Die Regeln funktionieren in Inventor 2021&lt;/P&gt;&lt;P&gt;Die Regel lasse stoße ich über einen Button in einem globalen Formular an.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regel zur Kundenabfrage&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #808080;"&gt;'Check for customer&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;Versuch&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Kunde:"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Catch&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oMyParameter&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Parameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserParameters&lt;/SPAN&gt;
	&lt;SPAN style="color: #808080;"&gt;'Setting an userParameter as text parameter&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oParameter&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oMyParameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByValue&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Kunde:"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;UnitsTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kTextUnits&lt;/SPAN&gt;)
	&lt;SPAN style="color: #808080;"&gt;'check for existing file &lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Dir&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"\\storagecube\Projekte\Kundenliste.xlsx"&lt;/SPAN&gt;) &amp;lt;&amp;gt; &lt;SPAN style="color: #008080;"&gt;""&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #808080;"&gt;'file exists&lt;/SPAN&gt;
		&lt;SPAN style="color: #800080;"&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;List&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Kunde:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #800080;"&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;CellValues&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"\\storagecube\Projekte\Kundenliste.xlsx"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Tabelle1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"A1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;""&lt;/SPAN&gt;)
		&lt;SPAN style="color: #800080;"&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Close&lt;/SPAN&gt;
		&lt;SPAN style="color: #800080;"&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;RunExternalRule&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\iLogic\Regeln\externe Regeln\Formulare öffnen\Kundenauswahl.iLogicVb"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
		&lt;SPAN style="color: #808080;"&gt;'workbook does NOT exist&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Show&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Datei '\\storagecube\Projekte\Kundenliste.xlsx' existiert nicht"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"schwerwiegender Fehler"&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regel um Formular zur Kundenauswahl zu öffnen&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800080;"&gt;iLogicForm&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;ShowGlobal&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\Programmvorgaben\Design Data\iLogic\UI\versteckte Formulare\Kundenauswahl"&lt;/SPAN&gt;, &lt;SPAN style="color: #800080;"&gt;FormMode&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Modal&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Regel zur Abfrage des Schriftfeldtyps&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #808080;"&gt;'Abfrage Schriftfeldtyp&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;Versuch&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Schriftfeldtyp:"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;Catch&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oMyParameter&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Parameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserParameters&lt;/SPAN&gt;
		&lt;SPAN style="color: #808080;"&gt;'Setting an userParameter as text parameter&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oParameter&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oMyParameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByValue&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Schriftfeldtyp:"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;""&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;UnitsTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kTextUnits&lt;/SPAN&gt;)
		&lt;SPAN style="color: #808080;"&gt;'check for existing file &lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Dir&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"\\storagecube\Projekte\Liste Schriftfeldtypen.xlsx"&lt;/SPAN&gt;) &amp;lt;&amp;gt; &lt;SPAN style="color: #008080;"&gt;""&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
			&lt;SPAN style="color: #808080;"&gt;'file exists&lt;/SPAN&gt;
			&lt;SPAN style="color: #800080;"&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;List&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Schriftfeldtyp:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #800080;"&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;CellValues&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"\\storagecube\Projekte\Liste Schriftfeldtypen.xlsx"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Tabelle1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"A1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;""&lt;/SPAN&gt;)
			&lt;SPAN style="color: #800080;"&gt;GoExcel&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Close&lt;/SPAN&gt;
			&lt;SPAN style="color: #800080;"&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;RunExternalRule&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\iLogic\Regeln\externe Regeln\Formulare öffnen\Auswahl Schriftfeldtyp.iLogicVb"&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
			&lt;SPAN style="color: #808080;"&gt;'workbook does NOT exist&lt;/SPAN&gt;
			&lt;SPAN style="color: #800000;"&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Show&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Datei '\\storagecube\Projekte\Liste Schriftfeldtypen.xlsx' existiert nicht"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"schwerwiegender Fehler"&lt;/SPAN&gt;)
			&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regel um Formular zur Auswahl des Schriftfeldtyps zu öffnen&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800080;"&gt;iLogicForm&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;ShowGlobal&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\Programmvorgaben\Design Data\iLogic\UI\versteckte Formulare\Schriftfeldtyp bestimmen"&lt;/SPAN&gt;, &lt;SPAN style="color: #800080;"&gt;FormMode&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Modal&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	&lt;SPAN style="color: #808080;"&gt;'Kundenabfrage&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;RunExternalRule&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\iLogic\Regeln\externe Regeln\Kundenabfrage\Kundenabfrage.iLogicVb"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #800000;"&gt;Kunde&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Kunde:"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Kunde:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;""&lt;/SPAN&gt;
		&lt;SPAN style="color: #800080;"&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;RunExternalRule&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\iLogic\Regeln\externe Regeln\Formulare öffnen\Kundenauswahl.iLogicVb"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	
	&lt;SPAN style="color: #808080;"&gt;'Abfrage Schriftfeldtyp&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;RunExternalRule&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\iLogic\Regeln\externe Regeln\Schriftfelder\Schriftfeldabfrage.iLogicVb"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #800000;"&gt;Schriftfeldtyp&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Schriftfeldtyp:"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Schriftfeldtyp:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;""&lt;/SPAN&gt;
		&lt;SPAN style="color: #800080;"&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;RunExternalRule&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\iLogic\Regeln\externe Regeln\Formulare öffnen\Auswahl Schriftfeldtyp.iLogicVb"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	
	&lt;SPAN style="color: #808080;"&gt;'Pfadangabe Schriftfelder&lt;/SPAN&gt;
	&lt;SPAN style="color: #808080;"&gt;'Kunde Kunde 1&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Kunde:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Kunde 1"&lt;/SPAN&gt;  &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Schriftfeldtyp:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Baugruppe (Projekt)"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;SK_Vorlage&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\Programmvorgaben\Schriftfelder\aktive Schriftfelder ib-Rosenburg.idw"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Kunde 1 Baugruppe (Projekt)"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Kunde:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Kunde 1"&lt;/SPAN&gt;  &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Schriftfeldtyp:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Bauteil (Projekt)"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;SK_Vorlage&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\Programmvorgaben\Schriftfelder\aktive Schriftfelder ib-Rosenburg.idw"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Kunde 1 Einzelteil (Projekt)"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Kunde:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Kunde 1"&lt;/SPAN&gt;  &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Schriftfeldtyp:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Baugruppe (Bibliothek)"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;SK_Vorlage&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\Programmvorgaben\Schriftfelder\aktive Schriftfelder ib-Rosenburg.idw"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Kunde 1 Baugruppe (Bibliothek)"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Kunde:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Kunde 1"&lt;/SPAN&gt;  &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Schriftfeldtyp:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Bauteil (Bibliothek)"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;SK_Vorlage&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\Programmvorgaben\Schriftfelder\aktive Schriftfelder ib-Rosenburg.idw"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Kunde 1 Einzelteil (Bibliothek)"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	
	&lt;SPAN style="color: #808080;"&gt;'Kunde 2&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Kunde:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Kunde 2"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Schriftfeldtyp:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Baugruppe (Projekt)"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;SK_Vorlage&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\Programmvorgaben\Schriftfelder\aktive Schriftfelder ib-Rosenburg.idw"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Kunde 2 Baugruppe (Projekt)"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Kunde:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Kunde 2"&lt;/SPAN&gt;  &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Schriftfeldtyp:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Bauteil (Projekt)"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;SK_Vorlage&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\Programmvorgaben\Schriftfelder\aktive Schriftfelder ib-Rosenburg.idw"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Kunde 2 Einzelteil (Projekt)"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Kunde:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Kunde 2"&lt;/SPAN&gt;  &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Schriftfeldtyp:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Baugruppe (Bibliothek)"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;SK_Vorlage&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\Programmvorgaben\Schriftfelder\aktive Schriftfelder ib-Rosenburg.idw"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Kunde 2 Baugruppe (Bibliothek)"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Kunde:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Kunde 2"&lt;/SPAN&gt;  &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Schriftfeldtyp:"&lt;/SPAN&gt;) = &lt;SPAN style="color: #008080;"&gt;"Bauteil (Bibliothek)"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;SK_Vorlage&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\Programmvorgaben\Schriftfelder\aktive Schriftfelder ib-Rosenburg.idw"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Kunde 2 (Bibliothek)"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
	
&lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SK_Vorlage&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Pfad&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;SK&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;)
	
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oNewDocument&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingDocument&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oNewDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;

	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSourceDocument&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingDocument&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oSourceDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Documents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Open&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Pfad&lt;/SPAN&gt;)

	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSourceTitleBlockDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TitleBlockDefinition&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oSourceTitleBlockDef&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oSourceDocument&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TitleBlockDefinitions&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SK&lt;/SPAN&gt;)

	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oNewTitleBlockDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TitleBlockDefinition&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oNewTitleBlockDef&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oSourceTitleBlockDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CopyTo&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oNewDocument&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;Catch&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;

	&lt;SPAN style="color: #808080;"&gt;'Schriftfeld in jedes Blatt einfügen&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sheet&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oNewDocument&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Sheets&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Activate&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TitleBlock&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Delete&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Catch&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddTitleBlock&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oNewTitleBlockDef&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oSourceDocument&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Close&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bitte vor Ausführen der Regel, alle Schriftfelder aus der Zeichnung löschen, wenn da welche drin sind.&lt;/P&gt;&lt;P&gt;Das Schriftfeld DIN kann man nicht löschen und verbleibt in der Zeichnung.&lt;/P&gt;&lt;P&gt;Zum löschen der bestehenden Schriftfelder habe ich auch eine Regel.&lt;/P&gt;&lt;P&gt;Das Schriftfeld welches auf dem Blatt platziert ist, muss aber zuvor aus dem Blatt gelöscht werden.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;main&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;TitleBlock_Delete&lt;/SPAN&gt; (&lt;SPAN style="color: #008080;"&gt;"DIN"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TitleBlock_Delete&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SK&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sheet&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Sheets&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Not&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TitleBlock&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Is&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Nothing&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; 
		&lt;SPAN style="color: #800000;"&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Show&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Bitte zuerst das Schriftfeld auf den Blättern löschen"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Routinenabbruch"&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;MessageBoxButtons&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;OK&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;MessageBoxIcon&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Error&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;

	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oTitleBlock&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TitleBlockDefinition&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oTitleBlock&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TitleBlockDefinitions&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oTitleBlock&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN style="color: #800000;"&gt;SK&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
            &lt;SPAN style="color: #808080;"&gt;'Schriftfeld löschen in den Schriftfeld Definitionen&lt;/SPAN&gt;
			&lt;SPAN style="color: #800000;"&gt;oTitleBlock&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Delete&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ich hoffe du kommst damit zurecht, sonst melde dich.&lt;/P&gt;&lt;P&gt;VG Ralf&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 09:16:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/9790920#M16154</guid>
      <dc:creator>ralf.rosenburg</dc:creator>
      <dc:date>2020-10-08T09:16:14Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/9790935#M16155</link>
      <description>&lt;P&gt;Hallo Pietro,&lt;/P&gt;&lt;P&gt;In meiner Regel zur Kundenabfrage musst du&lt;/P&gt;&lt;P&gt;Sub main&lt;/P&gt;&lt;P&gt;in die erste Zeile schreiben.&lt;/P&gt;&lt;P&gt;dann geht es weiter mit&lt;/P&gt;&lt;P&gt;'Kundenabfrage&lt;/P&gt;&lt;P&gt;VG Ralf&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 09:25:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/9790935#M16155</guid>
      <dc:creator>ralf.rosenburg</dc:creator>
      <dc:date>2020-10-08T09:25:15Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/9792115#M16156</link>
      <description>&lt;P&gt;Hallo Ralf,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;deine Regel ist interessant und zu kompliziert für mich.&lt;/P&gt;&lt;P&gt;ich verwende nur eine Schriftfelder meine problem habe paar tausende Zeichnungen zu aktualisieren.&lt;/P&gt;&lt;P&gt;meine aktuelle regeln habe von diese post kopiert und bringt das Fehler siehe Bilder.&lt;/P&gt;&lt;P&gt;erstellt auch eine neues Blatt di ich nicht brauche&amp;nbsp;&lt;/P&gt;&lt;P&gt;ich benutze Inventor 2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mit freundlichen grüß&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pietro4646_0-1602177782898.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/828955i6D7325F1B6E9B640/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pietro4646_0-1602177782898.png" alt="pietro4646_0-1602177782898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 17:30:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/9792115#M16156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-08T17:30:08Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic def. Schriftfeld aus Vorlage in akt. Zeichnung kopieren Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/9797518#M16157</link>
      <description>&lt;P&gt;Hallo Pietro,&lt;/P&gt;&lt;P&gt;ich habe die Routine von Jürgen nochmal getestet. Die Routine funktioniert in soweit. Auch in Inventor 2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;main&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;SK_tauschen&lt;/SPAN&gt; (&lt;SPAN style="color: #008080;"&gt;"Z:\Vorlagen\Inventor\Programmvorgaben\Schriftfelder\alle Vorlagesschriftfelder ib-Rosenburg.idw"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"IB-Rosenburg (Projekt)"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;'du musst hier deinen vollständigen Pfad und Dateiname der Vorlage angeben, dann den Namen des Schriftfeldes der Vorlage.&lt;BR /&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
	
&lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SK_tauschen&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Pfad&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;SK&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;)
	
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oNewDocument&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingDocument&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oNewDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;

	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSourceDocument&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingDocument&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oSourceDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Documents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Open&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Pfad&lt;/SPAN&gt;)

	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSourceTitleBlockDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TitleBlockDefinition&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oSourceTitleBlockDef&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oSourceDocument&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TitleBlockDefinitions&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;SK&lt;/SPAN&gt;)

	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oNewTitleBlockDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;TitleBlockDefinition&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oNewTitleBlockDef&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oSourceTitleBlockDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CopyTo&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oNewDocument&lt;/SPAN&gt;)

	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sheet&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oNewDocument&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Sheets&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Activate&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TitleBlock&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Delete&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddTitleBlock&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oNewTitleBlockDef&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
	&lt;SPAN style="color: #800000;"&gt;oSourceDocument&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Close&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;BR /&gt;'Diesen Programmtext (Sub) kannst du direkt übernehmen&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bitte beachte:&lt;/P&gt;&lt;P&gt;1. Wenn kein Schriftfeld auf der aktiven Zeichnung positioniert ist, dann kommt eine Fehlermeldung und die Quelldatei wird wir geöffnet und nicht mehr geschlossen.&lt;/P&gt;&lt;P&gt;Vielleicht weiß jemand aus der Community wie das zu lösen ist?&lt;/P&gt;&lt;P&gt;2. Wenn du dein neues Schriftfeld importiert hast, und die Routine erneut ausführst, dann wird eine Kopie des Schriftfeldes erzeugt und eingefügt.&lt;/P&gt;&lt;P&gt;Vielleicht weiß jemand aus der Community wie das zu lösen ist?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VG Ralf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 11:25:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-deutsches-forum/ilogic-def-schriftfeld-aus-vorlage-in-akt-zeichnung-kopieren/m-p/9797518#M16157</guid>
      <dc:creator>ralf.rosenburg</dc:creator>
      <dc:date>2020-10-12T11:25:56Z</dc:date>
    </item>
  </channel>
</rss>

