Hallo Reinhard,
wenn Du mit IV 10 arbeitest, dann geht's bestimmt nicht - das kam erst in der 11er rein. In der 11er und 2008er API-Hilfe gibt's folgendes Beispiel:
Public Sub OpenDocumentWithRepresentations()
' Create a new NameValueMap object
Dim oDocOpenOptions As NameValueMap
Set oDocOpenOptions = ThisApplication.TransientObjects.CreateNameValueMap
' Set the representations to use when opening the document.
Call oDocOpenOptions.Add("LevelOfDetailRepresentation", "MyLODRep")
Call oDocOpenOptions.Add("PositionalRepresentation", "MyPositionalRep")
Call oDocOpenOptions.Add("DesignViewRepresentation", "MyDesignViewRep")
' Open the document.
Dim oDoc As AssemblyDocument
Set oDoc = ThisApplication.Documents.OpenWithOptions("C:\Temp\Reps.iam", oDocOpenOptions, True)
End Sub
------------------
Grüsse, Paul
Inventor-Programmierung, Inventor-Tools und Inventor API-Schulung
thinkCAD Web-Kataloge
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP