View Full Version : Modify the Name rule of Piperun
Alvin.Zheng
03-22-2010, 11:58 PM
Who has implemented to modify the name rule of piperun using VB, change the rule from "User defined" to "DefaultNameRule" or from "DefaultNameRule" to "User defined"?
Please give me these VB Code if you have and are willing share to me.
chintan
05-18-2010, 12:35 AM
<<BUZZ>>
<<BUZZ>><<BUZZ>><<BUZZ>><<BUZZ>><<BUZZ>>
ANSWER required
3DCAD-IT
05-25-2010, 07:43 AM
Alvin,
If you install the Programing Resources you will have examples of the delivered naming rules.
Recently I have a chance to do similar automation.
AddNamingRelations method works for this purpose.
Don't forget to do transaction manager to commit.
Dim oNamingRulesHlpr As GSCADNameRuleSemantics.IJDNamingRulesHelper
Dim oNRHolder As IJDNameRuleHolder
Dim oNameRuleAE As Object
[get target NameRuleHolder object]
[oobj is target object]
Call oNamingRulesHlpr.AddNamingRelations(oobj, oNRHolder, oNameRuleAE)
Set oNRHolder = Nothing
Set oNameRuleAE = Nothing
Set oNamingRulesHlpr = Nothing
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.