- Print
- DarkLight
- PDF
Sovelia Inventor General Tools
Sovelia Inventor Ribbon menu
With Sovelia Inventor we can create ribbon buttons and add functionality to them. The ribbon menu will then be distributed with the Sovelia Inventor Configuration.
There are separate configuration files for each file type. We will create a simple example for a drawing. We can create 8 buttons.
If you have not already done it, copy the "Cadit Panel for Drawing.ini" file from local folder/Settings to Common folder/Settings
Let's create a small code to replace a title block and frame.
Open the file "Common folder/Settings/Cadit Panel for Drawing.ini" and add the following information :
[Panel]
Title=Sovelia Custom (The name on the ribbon menu)
[Button1]
Title=Product Drawing
ToolTip=Set Title and frame for Symetri Product
Rule="Location of ilogic code\01-SYMTITLE.txt" (Use your location and your code)
ShowIcon=1
;StandardIcon=command1_16.png
; LargeIcon=command1_32.png
After a restart of Inventor the menu will load onto the ribbon
If your interested, this is the code in this example. It requires a template file to get the frame and title block from.
ThisDrawing.ResourceFileName = "Your file location\TITLEANDFRAME.idw"
iProperties.Value("Custom", "Layout")=False
Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveEditDocument
Dim oCurrentNumber As Sheet
oCurrentNumber = oDoc.ActiveSheet
' Iterate through the sheets
Dim oSheet As Sheet
For Each oSheet In oDoc.Sheets
oSheet.Activate
ActiveSheet.TitleBlock = "Your title block name"
ActiveSheet.Border = "Your Border name"
Next
'return to starting sheet
oCurrentNumber.Activate
' [optional to collapse nodes
Dim oNode As BrowserNode
For Each oNode In oDoc.BrowserPanes.ActivePane.TopNode.BrowserNodes
' If the node is expanded, collapse it.
If oNode.Expanded = True Then
oNode.Expanded = False
End If
Next
']
Links to Configuration Help:
Cadit Panel for Drawing.ini - Configuration (sovelia.com)
Cadit Panel for Part.ini - Configuration (sovelia.com)
Cadit Panel for Sheet Metal Part.ini - Configuration (sovelia.com)
Quick Open
Available from Version 2023.2 (23.0.420.0.84)
Opens a file from the project local workspace and can include a drawing if it exists.
Start From ribbon menu
Selecting the Quick Open setting will give you the possibilities to customize the way Quick open searches.
When using Quick open; just start typing and the search will sort the search as you type, and you can select "open related drawings". Selecting your file and select "Open" will open the files in inventor.