01-05-2021
07:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-05-2021
07:44 AM
Hi,
I'd like a part type (sheet metal vs standard part) to be driven from a parameter in the part. However, I want to be able to fire the rule from an assembly and not in the part. The below works fine if the rule is run within the part but when fired from an above assembly it errors.
I kind of know why but can't seem to find the answer. Can anyone help please?
If SEAL_CUSTOM_EXTENTS = "REQUIRED" Then iProperties.Value("Project", "Part Number") = "N/A" iProperties.Value("Summary", "Keywords") = "RTSM" ThisApplication.ActiveDocument.SubType = "{4D29B490-49B2-11D0-93C3-7E0706000000}" Else iProperties.Value("Summary", "Keywords") = "N/A" ThisApplication.ActiveDocument.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" End If
Solved! Go to Solution.