file How to run module command from script

1 year 11 months ago #4565 by slavb18
Hi!
Does it possible to run some module command from script on selected element?

eg.
for e in selectedElements:
e.doSomeCommand())

?

Please Log in or Create an account to join the conversation.

1 year 11 months ago #4570 by chm
Hi slavb18,

for security reasons you can't run any module command from a script, but you should be able to call the module's peer services.

You can find an example of peer API usage in the module developer's guidemodule developer's guide .

The only difference from a script is you have to find the peer module by name, for example "getPeerModule("JavaDesigner").

Hope this helps,


chm

Please Log in or Create an account to join the conversation.

Moderators: tmaebr
Time to create page: 0.035 seconds
^ Back to Top