Pulsonix User Forum

Technical advice from Pulsonix engineers and the wider community.

Username:
Password:
Save Password
Forgot your Password?

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

kst

2 Posts

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

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):
	Application.ActiveDocument.SelectVariant(va.Name)
	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?

Thanks.
  Previous Topic Topic Next Topic  
Jump To: