- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
Im working on a code, where i would like the Company property displayed in a Form for editing. I can do it with the Project property, and several others, but the Company property seem to be named something else.
I have tried with numbers as well, but no numbers seem to be the correct property.
This is the code i have.
Public Sub SorterDXF()
Dim invDoc As Document
Set invDoc = ThisApplication.ActiveDocument
Dim invDesignInfo As PropertySet
Set invDesignInfo = invDoc.PropertySets.Item("Design Tracking Properties")
Dim invPartNumberProperty As Property
Set invPartNumberProperty = invDesignInfo.Item("Project")
Project = invPartNumberProperty.Value
SortForm.FormOrdre.Value = Project
Dim invSummaryInfo As PropertySet
Set invSummaryInfo = invDoc.PropertySets.Item("Inventor Summary Information")
Dim invSummaryInfoProperty As Property
Set invSummaryInfoProperty = invSummaryInfo.Item(???????)
Kunde = invSummaryInfoProperty.Value
SortForm.FormKunde.Value = Kunde
SortForm.Show
End Sub
Solved! Go to Solution.