AcPublish.arx needs to be loaded before acplPublishExecute

Anonymous

AcPublish.arx needs to be loaded before acplPublishExecute

Anonymous
Not applicable

Greetings,

 

I ran into a small issue and didn't find any mention of it in the documentation or the forum, so I hope this helps someone.

 

If you call the acplPublishExecute() function without having used the PUBLISH command, publishing will fail with an empty error in the log.

 

It appears that the PUBLISH command will load the AcPublish.arx module as needed, but acplPublishExecute() will not, so make sure to load it yourself.

Reply
721 Views
1 Reply
Reply (1)

philippe.leefsma
Alumni
Alumni

Thanks for the tip. You can also use acedArxLoad to load AcPublish.arx programmatically prior to run your publish code.

 

Regards,

Philippe.

 

______________________________________________________________

If my post answers your question, please click the "Accept as Solution"

button. This helps everyone find answers more quickly!

 



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes