We recommend to people without deep knowledge on cron, to use online platforms like
to generate special cron expressions.
Here you can find some often used expressions:
every 5 seconds
*/5 * * 1/1 * ? *
always full minute and at 30 seconds
0,30 * * 1/1 * ? *
working days except on Saturday at 8:00 am
0 0 8 ? * MON,TUE,WED,THU,FRI *
0 0 0/1 1/1 * ? *
PowerJobs internally has couple of engines that are used to handle your files. The AutoCAD engine is one of three engines used by powerJobs.
The other two are the Inventor and the TrueView engine.
The AutoCAD engine can be used the same way as the TrueView engine but in addition it grants access to the AutoCAD API like the Inventor
engine does for the Inventor API.
How to use the AutoCAD API in a job
AutoCAD API is exposed through the event called OnBeginPublish of the
object which gets called after the document is opened and
before it gets published. Look at the
event for more details. When a user subscribes to this event through the powershell scripts,
he can use the AutoCAD API to do all sort of things to the document before it gets published.
Example to Export DWG file to JPG file.
$publisher = $powerJobs.getPublisher("PDF")
$originalValue = $eventArgs.Document.GetVariable("FILEDIA")
Creating PDFs, DWFs and DWFXs without AutoCAD
AutoCAD engine is still in technical preview mode! One of the known issue is described
" function(coolorange.powerJobs.publish.psm1) provided with powerJobs uses the AutoCAD API.
In .NET, you can subscribe or unsubscribe to an event by calling add_ and remove_ before the event name. e.g. add_OnBeginPublish
to subscribe and remove_OnBeginPublish to unsubscribe the OnBeginPublish event.