{"action":"created","issue":{"url":"https://api.github.com/repos/I2SE/eagle-bom.py/issues/6","labels_url":"https://api.github.com/repos/I2SE/eagle-bom.py/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/I2SE/eagle-bom.py/issues/6/comments","events_url":"https://api.github.com/repos/I2SE/eagle-bom.py/issues/6/events","html_url":"https://github.com/I2SE/eagle-bom.py/issues/6","id":122679746,"number":6,"title":"Attributes from devicesset in schematic is not picked up in the BOM","user":{"login":"JacobChrist","id":198251,"avatar_url":"https://avatars.githubusercontent.com/u/198251?v=3","gravatar_id":"","url":"https://api.github.com/users/JacobChrist","html_url":"https://github.com/JacobChrist","followers_url":"https://api.github.com/users/JacobChrist/followers","following_url":"https://api.github.com/users/JacobChrist/following{/other_user}","gists_url":"https://api.github.com/users/JacobChrist/gists{/gist_id}","starred_url":"https://api.github.com/users/JacobChrist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacobChrist/subscriptions","organizations_url":"https://api.github.com/users/JacobChrist/orgs","repos_url":"https://api.github.com/users/JacobChrist/repos","events_url":"https://api.github.com/users/JacobChrist/events{/privacy}","received_events_url":"https://api.github.com/users/JacobChrist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-17T07:36:18Z","updated_at":"2015-12-19T06:29:17Z","closed_at":null,"body":"For example the following attribute \"PLP#\" will be picked up from this part:\r\n```xml\r\n<part name=\"R13\" library=\"PLP\" deviceset=\"PLP-27\" device=\"\" value=\"10K\">\r\n<attribute name=\"PLP#\" value=\"PLP-27\"/>\r\n</part>\r\n```\r\n\r\nHowever this part:\r\n\r\n```xml\r\n<part name=\"C2\" library=\"PLP\" deviceset=\"PLP-101\" device=\"\" value=\"10uF\"/>\r\n```\r\n\r\nWill not pick up the attributes \"PLP#\" and \"VALUE\" in its deviceset:\r\n\r\n```xml\r\n<deviceset name=\"PLP-101\" prefix=\"C\" uservalue=\"yes\">\r\n<description>Capacitor 0805</description>\r\n<gates>\r\n<gate name=\"G$1\" symbol=\"DISCRETE_CAP\" x=\"0\" y=\"0\"/>\r\n</gates>\r\n<devices>\r\n<device name=\"\" package=\"DISCRETE_C0805\">\r\n<connects>\r\n<connect gate=\"G$1\" pin=\"+\" pad=\"1\"/>\r\n<connect gate=\"G$1\" pin=\"-\" pad=\"2\"/>\r\n</connects>\r\n<technologies>\r\n<technology name=\"\">\r\n<attribute name=\"PLP#\" value=\"PLP-101\"/>\r\n<attribute name=\"VALUE\" value=\"10uF\"/>\r\n</technology>\r\n</technologies>\r\n</device>\r\n</devices>\r\n</deviceset>\r\n```\r\n\r\nI'm not sure what causes an attribute to be copied from the deviceset to the part, smashing a part will cause attributes to be copied from the deviceset to the instance (so positions on the schematic can be stored).  If you right click and edit an attribute for a part this will cause them to be copied (but only if modified).\r\n\r\nIt seems as the deviceset attributes should be added to the elements array first then overwritten by part attributes.\r\n\r\nJacob\r\n"},"comment":{"url":"https://api.github.com/repos/I2SE/eagle-bom.py/issues/comments/165954326","html_url":"https://github.com/I2SE/eagle-bom.py/issues/6#issuecomment-165954326","issue_url":"https://api.github.com/repos/I2SE/eagle-bom.py/issues/6","id":165954326,"user":{"login":"JacobChrist","id":198251,"avatar_url":"https://avatars.githubusercontent.com/u/198251?v=3","gravatar_id":"","url":"https://api.github.com/users/JacobChrist","html_url":"https://github.com/JacobChrist","followers_url":"https://api.github.com/users/JacobChrist/followers","following_url":"https://api.github.com/users/JacobChrist/following{/other_user}","gists_url":"https://api.github.com/users/JacobChrist/gists{/gist_id}","starred_url":"https://api.github.com/users/JacobChrist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacobChrist/subscriptions","organizations_url":"https://api.github.com/users/JacobChrist/orgs","repos_url":"https://api.github.com/users/JacobChrist/repos","events_url":"https://api.github.com/users/JacobChrist/events{/privacy}","received_events_url":"https://api.github.com/users/JacobChrist/received_events","type":"User","site_admin":false},"created_at":"2015-12-19T06:29:17Z","updated_at":"2015-12-19T06:29:17Z","body":"I have a possible solution.  I will submit a pull request for review."}}