Cannot set an expression to the CAMParamter with selection input type via Python API

Cannot set an expression to the CAMParamter with selection input type via Python API

registerN6GJQ
Observer Observer
1,377 Views
6 Replies
Message 1 of 7

Cannot set an expression to the CAMParamter with selection input type via Python API

registerN6GJQ
Observer
Observer

I'm trying to automate a process to append several CAM operations with Python API,

but got the error "This parameter cannot be changed" when setting an expression to parameters with selection input type (e.g. Model Surface on Geometry section).

 

Is there any way to set a mesh selection value for this kind of CAM parameter?

FYI here's the code that the error was thrown.

 

param = operation.parameter.itemByName('model')
param.expression = 'true' # Trying to set a mesh selection but don't know how to specify it with string.

 

 

 

 

Screen Shot 2021-07-22 at 00.13.48.png

Screen Shot 2021-07-22 at 00.13.36.png

  

0 Likes
Accepted solutions (1)
1,378 Views
6 Replies
Replies (6)
Message 2 of 7

BrianEkins
Mentor
Mentor
Accepted solution

The ability to define the geometry associated with an operation is not yet supported by the CAM API.  I don't know when it will be available but it will open up a lot more possibilities.

 

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 3 of 7

DerekZCXVY
Contributor
Contributor

@BrianEkinsdo you know if there has been any progress with this feature?

 

Thanks for all you do,

 

All the best

0 Likes
Message 4 of 7

BrianEkins
Mentor
Mentor

Nothing to support this has happened yet.  I don't know what the plans are as far as when it might happen.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 5 of 7

DerekZCXVY
Contributor
Contributor

@BrianEkins Thanks for the prompt reply. Can this be accomplished via C++ ? Or is it just entirely not supported at the moment?

0 Likes
Message 6 of 7

BrianEkins
Mentor
Mentor

It's not supported at all, regardless of the language.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 7 of 7

DerekZCXVY
Contributor
Contributor

@BrianEkins   Understood, thanks for the prompt reply. I would love to see this feature come to life. Is there any way I can become involved with the development of the API ?? Even outside of this feature I would be more than happy to assist in any way I can.

 

 

All the best,


DMC

0 Likes