Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have created a simple example demonstrating a drawing rule that opens the referenced part, activates it then changes a parameter.
Dim oDrawing As Document = ThisApplication.ActiveDocument Dim oPartPath As String = oDrawing.ReferencedDocuments.Item(1).FullFileName Dim oPart As PartDocument = ThisApplication.Documents.Open(oPartPath, True) oPart.Activate() Parameter("Length") = 20 oPart.Save oPart.Close(True)
The problem is, the activate line doesn't appear to do anything because it gets error, when attempting to change the parameter:
This parameter definitely exists in the part. Where have I gone wrong? I've attached the example.
Thanks,
Harvey
Solved! Go to Solution.