Home > Community > Forums > PCB SKILL > delete property from symbol

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 delete property from symbol 

Last post Tue, Feb 12 2013 12:08 AM by Ejlersen. 2 replies.
Started by Ejlersen 11 Feb 2013 01:05 AM. Topic has 2 replies and 911 views
Page 1 of 1 (3 items)
Sort Posts:
  • Mon, Feb 11 2013 1:05 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 10,080
    delete property from symbol Reply

    Hi

    I've made a skill program that uses properties on symbols but have experienced an issue that I cannot solve for the attached symbol.

    If I look at Setup->Property definitions it shows NS_REV_100_COMMENT and NS_REVISION_CODE and I can't delete them in that menu or with axlDBDeletePropDictEntry since it is in use.

    If I do a Edit->Properties on Drawing it does not show this property as being part of the symbol drawing.

    If I inside the Skill window do props = axlDBGetProperties(axlDBGetDesign()) then it will show these 2 properties as being part of the symbol

    This should mean that the following code first deletes the usage of the property and then the property definition, but this does not happen.

     propname = "NS_REV_100_COMMENT"
     axlDBDeleteProp(axlDBGetDesign() propname)
     axlDBDeletePropDictEntry(propname)

    This works for lots of other symbols but not for this one, anyone with an idea to the issue? 

     

    Best regards

    Ole

    Best regards Ole
    • Post Points: 20
  • Mon, Feb 11 2013 11:59 AM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 738
    • Points 16,055
    Re: delete property from symbol Reply

    Hi Ole,

    Try using  axlDBDeletePropAll

     propname = "NS_REV_100_COMMENT"

    axlDBDeletePropAll(propname)

     axlDBDeletePropDictEntry(propname)

     

    Regards,

    Dave 

     

    Dave Elder, Tait Communications
    • Post Points: 20
  • Tue, Feb 12 2013 12:08 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 10,080
    Re: delete property from symbol Reply

    Hi Dave

    That works nicely, don't know if there's a difference if the property is made as being invisible, but I'll just use the axlDBDeletePropAll insted.

    Thanks for your help.

    Best regards

    Ole

    Best regards Ole
    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by Ejlersen at 11 Feb 2013 01:05 AM. Topic has 2 replies.