Message 1 of 19
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
With the great help of this forum I created the following rule. It creates a border with a Plotstamp.
So fare it works great. But now I have a drawing with several sheets, some of them in different formats.
If I now run the rule and save all sheets, it places a border with the same format as the active sheet on all sheets. That is not always correct, as you may suspect 🙂 .
Any ideas how to change the rule to get it working correct?
'This sets the Custom iProperties to the appropriate values Name= ThisApplication.GeneralOptions.UserName PSDate = Now.ToShortDateString PSTime = Now.ToShortTimeString Pfad = ThisDoc.WorkspacePath Datei = ThisDoc.FileName(True) 'with extension 'Exteranal Rule to Run on Legacy Border ActiveBorder = ActiveSheet.Border If ActiveBorder <> "Normrahmen PP mit Plotstamp" Then iLogicVb.RunExternalRule("Rahmen_mit_Druckdatum") End If iProperties.Value("Custom", "PlotStamp") = "|" & Name & ", " & PSDate & ", " & PSTime iProperties.Value("Custom", "Projektpfad") = Pfad & "\" & Datei InventorVb.DocumentUpdate() 'Printing Commands Dim oCtrlDef As ControlDefinition oCtrlDef = ThisApplication.CommandManager.ControlDefinitions.Item("AppFileExportPDFCmd")'AppGetStartCmd oCtrlDef.Execute oCtrlDef = ThisApplication.CommandManager.ControlDefinitions.Item("AppRepeatCmd") oCtrlDef.Execute 'Clears Plot Stamp Values 'iProperties.Value("Custom", "plotstamp") = "" 'iProperties.Value("Custom", "Projektpfad") = ""
Solved! Go to Solution.