Pulsonix User Forum

Technical advice from Pulsonix engineers and the wider community.

 All Forums
 Help with using Pulsonix
 Scripting
 Automatic gerneration of CAM/Plot data

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON

   Upload a file

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
kst Posted - 10 Jun 2014 : 09:31:10
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.