- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Thank you @marcin_otręba
I got it working.
- Step one is to declare the Userform as a Public new form to the StandardAddInServer:
Public Class StandardAddInServer
Implements Inventor.ApplicationAddInServer
' Inventor application object.
Private m_inventorApplication As Inventor.Application
Private m_ClientID As String
Public m_Form As StartFormulier
- Then on the document event I am the first time adding the userform to the DockableWindow:
Private Sub m_AppEvents_OnActivateDocument(ByVal DocumentObject As Inventor._Document, ByVal BeforeOrAfter As Inventor.EventTimingEnum, ByVal Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum) Handles m_AppEvents.OnActivateDocument If BeforeOrAfter = EventTimingEnum.kAfter Then m_Form.Show() Dim docw As DockableWindow Try docw = m_inventorApplication.UserInterfaceManager.DockableWindows.Add("1234xyz", "1234yyz", "My Dockabel Window") docw.AddChild(m_Form.Handle.ToInt64) Catch ex As Exception End TryNow I am able to access the m_form as I need.
m_Form.Text = DocumentObject.DisplayName
m_form.....Etc Etc
The form is used to display and edit the Company mandatory I-properties.
Any better suggestions from your side to accomplish this?
Regards
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !