Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello together,
how could I copy all iProperties from one part to another part in an assembly?
Thank you Georg
Solved! Go to Solution.
Hello together,
how could I copy all iProperties from one part to another part in an assembly?
Thank you Georg
Solved! Go to Solution.
Hello Justin,
the tool is very good for some cases. But I need it a bit more flexible. Do you have an idee how to copy the iproperties to clipboard?
Thanks
Georg
Hi George,
try this one i'm using for long time. Working good for me. You just add as many iproperties you need. There is one for e.g.
Hope it will help you. Run rule from assembly
Dim oDoc As Document = ThisDoc.Document Dim oRefDoc As Document For Each oRefDoc In oDoc.AllReferencedDocuments If oRefDoc.DocumentType = kPartDocumentObject Then modelName = IO.Path.GetFileName(oRefDoc.FullFileName) Try ' Set the value iProperties.Value("Project", "Description") = iProperties.Value(modelName, "Project", "Description") Catch End Try End If Next iLogicVb.UpdateWhenDone = True
Simple code to copy description to clipboard:
Imports System.Windows.Forms Sub Main Dim Description As String = iProperties.Value("Project", "Description") Clipboard.SetText(Description) End Sub
Yes, it is. Unless it is in your library in that part, then it might be a little more difficult. If you just need the name, it's still very simple.
http://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html