Run Method

Runs a macro with arguments.

Warning: It is up to the user to check that the macro which is run is not going to cause an infinite loop or result in a system crash.

Syntax

VB Script.Run(valueOrFeature:ObjectType,...): Void

where valueOrFeature is the macro argument name. There can be several arguments.

Example

You must have created the VB Script.1 macro prior to creating the rule below:

if PartBody\Pad.1.HasAttribute("String.1") == true
`VB Script.1` .Run(PartBody\Pad.1 .GetAttributeString("String.1"),PartBody\Pad.1.Name() )

Sample

KwrObject.CATPart

 

Back Up Next