• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. artwork domain modification via skill?

Stats

  • Replies 3
  • Subscribers 161
  • Views 13316
  • Members are here 0
More Content

artwork domain modification via skill?

DavidJHutchins
DavidJHutchins over 8 years ago

Does anyone know if it is possible to modify the artwork domain settings using skill?

Below is the log of my interactive test:

Command > skill
Skill > film_name = "NCDRILL_L01_L08"
"NCDRILL_L01_L08"
Skill > (DataList = axlGetParam(strcat("artwork:" film_name)))
param:113E0018
Skill > DataList->domains
("ipc2581" "pdf" "artwork" "visibility")
Skill > (old = length(DataList->domains))
4
Skill > remd("pdf" DataList->domains)
("ipc2581" "artwork" "visibility")
Skill > (new = length(DataList->domains))
3
Skill > (status = axlSetParam(DataList))
nil
Skill >

the last 'nil' shows that the axlSetParam() call failed, any suggestions?

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 8 years ago

    I don't think you can do it that way.

    Maybe try axlExportXmlDBRecords/axlImportXmlDBRecords

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Ejlersen
    Ejlersen over 8 years ago
    Hi David

    One way to do this was to use axlGetParam just like you do. Then pass all the variables with the purpose of creating a new film (axlFilmCreate) which has the same setup but the domains. Then delete the existing film with axlDeleteObject and finally create the new film with the name of the old one.

    Best regards
    Ole
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mir0mik
    mir0mik over 2 years ago in reply to Ejlersen

    This is how I did it for my code... 

    defun( mo_modifyFilm ( mo_filmName @key ( negative 'keep) ( undefineLineWidth 'keep) ( sequence 'keep) ( rotation 'keep) ( xOffset 'keep) ( yOffset 'keep) ( shapeBoundingBox 'keep) ( mirrored 'keep) ( fullContact 'keep) ( suppressUnconnectPads 'keep) ( drawMissingPadApertures 'keep) ( useApertureRotation 'keep) ( suppressShapeFill 'keep) ( vectorBasedPad 'keep) ( drawHolesOnly 'keep) ( layers 'keep) ( domains 'keep) ( ipc2581 'keep))
    let( ( ( mo_tmp list( nil 'filmID nil)))
    mo_tmp -> filmID = axlGetParam( sprintf( nil "artwork:%s" mo_filmName))
    mo_tmp -> negative = mo_tmp -> filmID -> negative
    when( negative != 'keep
    mo_tmp -> negative = negative
    )
    mo_tmp -> undefineLineWidth = mo_tmp -> filmID -> undefineLineWidth
    when( undefineLineWidth != 'keep
    mo_tmp -> undefineLineWidth = undefineLineWidth
    )
    mo_tmp -> sequence = mo_tmp -> filmID -> sequence
    when( sequence != 'keep
    mo_tmp -> sequence = sequence
    )
    mo_tmp -> rotation = mo_tmp -> filmID -> rotation
    when( rotation != 'keep
    mo_tmp -> rotation = rotation
    )
    mo_tmp -> xOffset = nthelem( 1 mo_tmp -> filmID -> offset)
    when( xOffset != 'keep
    mo_tmp -> xOffset = xOffset
    )
    mo_tmp -> yOffset = nthelem( 2 mo_tmp -> filmID -> offset)
    when( yOffset != 'keep
    mo_tmp -> yOffset = yOffset
    )
    mo_tmp -> shapeBoundingBox = mo_tmp -> filmID -> shapeBoundingBox
    when( shapeBoundingBox != 'keep
    mo_tmp -> shapeBoundingBox = shapeBoundingBox
    )
    mo_tmp -> mirrored = mo_tmp -> filmID -> mirrored
    when( mirrored != 'keep
    mo_tmp -> mirrored = mirrored
    )
    mo_tmp -> fullContact = mo_tmp -> filmID -> fullContact
    when( fullContact != 'keep
    mo_tmp -> fullContact = fullContact
    )
    mo_tmp -> suppressUnconnectPads = mo_tmp -> filmID -> suppressUnconnectPads
    when( suppressUnconnectPads != 'keep
    mo_tmp -> suppressUnconnectPads = suppressUnconnectPads
    )
    mo_tmp -> drawMissingPadApertures = mo_tmp -> filmID -> drawMissingPadApertures
    when( drawMissingPadApertures != 'keep
    mo_tmp -> drawMissingPadApertures = drawMissingPadApertures
    )
    mo_tmp -> useApertureRotation = mo_tmp -> filmID -> useApertureRotation
    when( useApertureRotation != 'keep
    mo_tmp -> useApertureRotation = useApertureRotation
    )
    mo_tmp -> suppressShapeFill = mo_tmp -> filmID -> suppressShapeFill
    when( suppressShapeFill != 'keep
    mo_tmp -> suppressShapeFill = suppressShapeFill
    )
    mo_tmp -> vectorBasedPad = mo_tmp -> filmID -> vectorBasedPad
    when( vectorBasedPad != 'keep
    mo_tmp -> vectorBasedPad = vectorBasedPad
    )
    mo_tmp -> drawHolesOnly = mo_tmp -> filmID -> drawHolesOnly
    when( drawHolesOnly != 'keep
    mo_tmp -> drawHolesOnly = drawHolesOnly
    )
    mo_tmp -> layers = mo_tmp -> filmID -> groupMembers
    when( layers != 'keep
    mo_tmp -> layers = layers
    )
    mo_tmp -> domains = mo_tmp -> filmID -> domains
    when( domains != 'keep
    mo_tmp -> domains = domains
    )
    mo_tmp -> ipc2581 = mo_tmp -> filmID -> ipc2581
    when( ipc2581 != 'keep
    mo_tmp -> ipc2581 = ipc2581
    )
    axlDeleteObject( mo_tmp -> filmID)
    axlFilmCreate( mo_filmName ?negative mo_tmp -> negative ?undefineLineWidth mo_tmp -> undefineLineWidth ?sequence mo_tmp -> sequence ?rotation mo_tmp -> rotation ?xOffset mo_tmp -> xOffset ?yOffset mo_tmp -> yOffset ?shapeBoundingBox mo_tmp -> shapeBoundingBox ?mirrored mo_tmp -> mirrored ?fullContact mo_tmp -> fullContact ?suppressUnconnectPads mo_tmp -> suppressUnconnectPads ?drawMissingPadApertures mo_tmp -> drawMissingPadApertures ?useApertureRotation mo_tmp -> useApertureRotation ?suppressShapeFill mo_tmp -> suppressShapeFill ?vectorBasedPad mo_tmp -> vectorBasedPad ?drawHolesOnly mo_tmp -> drawHolesOnly ?layers mo_tmp -> layers ?domains mo_tmp -> domains ?ipc2581 mo_tmp -> ipc2581)
    )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information