Converting scripts to commands while converiting opt to pmoptz

Converting scripts to commands while converiting opt to pmoptz

vishnuvbatl
Contributor Contributor
453 Views
3 Replies
Message 1 of 4

Converting scripts to commands while converiting opt to pmoptz

vishnuvbatl
Contributor
Contributor

Hello there!

 

I tried learning PM-Post to improve my existing opt file. It worked well, thanks to the advises from this forum.

 

Now I have a better understanding of JScript and the post-processor engine, so I am trying to convert an old opt file to pmoptz file. My strategy is to

1) Import the opt file and save it as a pmoptz and

2) Minimize the scripts involved and improve the option file wherever possible.

 

I observed that the pmoptz file has plenty scripts in it which is called to do a specific function instead of commands in PM-Post. Most of these scripts assign values to parameters using SetParam and GetParam, and pass over the execution to the command by StandardResponse. The command would be empty mostly and does not output any code. So mostly the purpose of the command is to execute the scripts.

 

I wonder if there is any method to achieve what the script does in the command itself ? That is to perform' assigning values to certain parameters as the script does' inside a command and not output any code.

 

Any help would be greatly appreciated. Thanks a lot for your time!

0 Likes
454 Views
3 Replies
Replies (3)
Message 2 of 4

Jonathan.Artiss-DSI
Advisor
Advisor

@vishnuvbatl 

 

I typically do not use the import OPT function since it creates all these scripts. 

 

I would much prefer outputting some sample code through the OPT and rebuild the post using a stock PMOPTZ of the same controller and rotary options. This is a bit more work but you end up with a much cleaner end result. 

Jonathan Artiss
Senior Applications Engineer | DSI

Autodesk Expert Elite member
DSI, Design and Software International Autodesk Gold Partner

0 Likes
Message 3 of 4

vishnuvbatl
Contributor
Contributor

Thanks for the reply. I would like to know, whether post compare provides a better comparison between a opt and pmoptz post ?

0 Likes
Message 4 of 4

Jonathan.Artiss-DSI
Advisor
Advisor

Post compare will only open PMOPT and PMOPTZ files. 

Jonathan Artiss
Senior Applications Engineer | DSI

Autodesk Expert Elite member
DSI, Design and Software International Autodesk Gold Partner

0 Likes