Pulsonix User Forum

Technical advice from Pulsonix engineers and the wider community.

Save Password
Forgot your Password?

 All Forums
 Help with using Pulsonix
 Automatic gerneration of CAM/Plot data
Author Previous Topic Topic Next Topic  


2 Posts

Posted - 10 Jun 2014 :  09:31:10  Show Profile  Reply with Quote

I want to generate CAM data for all variants in my design via a script.

In CAM/Plot list all generic plot items are set to Variant <Master Design>. Variant dependent plot items are set to <Current Variant>.

The following script shall activate one variant after the other and execute a plot run for each variant:

# Language: Python

for idx, va in enumerate(Application.ActiveDocument.Variants):
	for idy, pl in enumerate(Application.ActiveDocument.CamPlots):
		a = pl.Run()
		Message("Created Plot " + str(pl.Name) + " : " + str(a))

The problem is, that pl.Run() always returns False and no output data is generated.

What did I miss?

  Previous Topic Topic Next Topic  
Jump To: