Hallo zusammen!
Ich scheitere gerade am 3D-PDF Export eines Bauraums.
Markiert man im Bauraumnavigator einen Bauraum und geht anschließend auf Seite=>Exportieren=>PDF... (bzw. 2023: Datei=>Exportieren=>PDF), wird der Bauraum als 3D-PDF ausgegeben (eh schon wissen).
Wie geht das allerdings mit einem Skript?
Das 3D an einen PDF-Plan anzuhängen funktioniert ja mit dem Bool 3D-Modell.
Wie bekommt man jedoch nur ein 3D aus dem Bauraum? Ich habs auch schon mit "LAYOUTSPACES" versucht, kein Erfolg.
Code:
//Markierte Bauräume nach PDF exportieren
string strProjectLayouts = string.Empty;
ActionCallingContext ProjektContext = new ActionCallingContext();
CommandLineInterpreter CommandLineInterpreter = new CommandLineInterpreter(); //Markierte Bauräume ermitteln
ProjektContext.AddParameter("type", "LAYOUTSPACES");
CommandLineInterpreter.Execute("selectionset", ProjektContext);
ProjektContext.GetParameter("LAYOUTSPACES", ref strProjectLayouts);
MessageBox.Show(strProjectLayouts);
string[] arrayProjectLayout = strProjectLayouts.Split(';'); //Seitennamen durch Semikolon getrennt
//Markierte Bauräume als PDF ausgeben
context1.AddParameter("type", "LAYOUTSPACES");
//pdfContext.AddParameter("PROJECTNAME", strProjectName) //Projektname mit komplettem Pfad (optional)
for (int i = 0; i < arrayProjectLayout.Length; i++)
{
MessageBox.Show("INSTALLATIONSPACENAME" + (i + 1).ToString() + ":" + arrayProjectLayout[i]);
context1.AddParameter("INSTALLATIONSPACENAME" + (i + 1).ToString(), arrayProjectLayout[i]);
}
Weiß da jemand bescheid ob bzw. wie das funktionieren könnte? Oder ist das nur für API verfügbar?
Danke erstmal!!
------------------
lG Falki
Bei ePLAN ist vieles "Einstellungssache"
!!
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP