同样的需求也被Inventor的童鞋要求了。
就目前Inventor里界面里还没有提供这样的功能,但我们可以使用iLogic定义工程图的自定义特性参数来添加打印日期
具体操作如下:
1, 在Inventor里创建一个工程图
2, 在工程图里创建如下的规则
Dim odrawdoc As DrawingDocument
odrawdoc = ThisApplication.ActiveDocument
customPropertySet = odrawdoc.PropertySets.Item("Inventor User Defined Properties")
Try
prop = customPropertySet.Item("Plotdatestamp")
Catch
customPropertySet.Add("", "Plotdatestamp")
End Try
Try
Dim PlotDate As Date
PlotDate = Now
iProperties.Value("Custom", "Plotdatestamp") = PlotDate
Catch
End Try
InventorVb.DocumentUpdate()
Dim oCtrlDef As ControlDefinition
oCtrlDef = ThisApplication.CommandManager.ControlDefinitions.Item("AppFilePrintCmd")
oCtrlDef.Execute