Message 1 of 8

Not applicable
11-14-2014
03:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to use an ilogic rule in an assembly to open an ipart and check some iproperties.
Once the ipart is open I check that the ipart is the active document, but when I call for the Part Number from iProperties I get the part number of the assembly containign the rule, not the active document.
Thanks for any help,
Here is my code:
SyntaxEditor Code Snippet
TemPath= "K:\TEMPLATE.ipt" ThisApplication.Documents.Open(TemPath) Check=ThisApplication.ActiveDocument.FullFileName MessageBox.Show(Check) Dim Testprop As String Testprop=iProperties.Value("Project", "Part Number") MessageBox.Show(Testprop)
Solved! Go to Solution.