hello, can you give me more details on what you are trying to do please?
you said disable, are you trying to create harness design with a specific partnumber + revision by using an external tool?
Did your code is executed by the user? if the plugin is run by the user, the user shall have access to the field to execute a code that will modify it. But if you want only some user to be able to do it, general user can have a change policy assigned to him (Capital User, permission, change policy), then restrict his access to the field.
There is no way to disable the part number and revision fields, however, you can use a Web Service to automatically fill those fields in and/or validate that the correct data was entered. To achieve this you would implement a Design Attributes Update Hook, which is documented in the Web Service user guide shipped with Capital: <CAPITAL_HOME>/doc/webservice/WebServiceDevelopment.pdf.
Hi, is it possible to tell us why you would want do disable these fields? Is it because you want them to be automatically populated or because you don't see the value of them?