• 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 Scripting - Skill
  3. Does anyone know if there is a way to add "OK_UNASSIGNED_SHAPE...

Stats

  • Replies 2
  • Subscribers 18
  • Views 4750
  • Members are here 0
More Content

Does anyone know if there is a way to add "OK_UNASSIGNED_SHAPE" using skill?

JS532
JS532 over 5 years ago

I'm using SKILL to generate some shapes using axlDBCreateRectangle(), converting it to dynamic using axlShapeChangeDynamicType(). I then want to add the "OK_UNASSIGNED_SHAPE" property to the shape. Does anyone know if there is a way to do this?

An example of the code:

shape = list(-1000.0:-1000.0 1000.0:1000.0)

sh1 = axlDBCreatRectangle(shape t "CONDUCTOR/TOP")

sh1 = axlShapeChangeDynamicType(car(sh1) t t)

when I look at properties now for using sh1->?? i can see there is a prop parameter but I'm not able to change it at all. It always reports nil. When I try to read the property of an existing shape that I know has the "OK_UNASSIGNED_SHAPE" property already defined on it I also only see nil for this property. 

I understand there may be a way using axlDBAddProp() function but this doesn't seem to do anything either. I'm at a loss.

Any help is appreciated.

  • Cancel
  • Sign in to reply
  • Ejlersen
    Ejlersen over 4 years ago

    Hi

    shape = list(-1.0:-1.0 1.0:1.0)
    sh1 = axlDBCreateRectangle(shape t "ETCH/TOP")
    res = axlDBAddProp(car(sh1) list("OK_UNASSIGNED_SHAPE" t))

    /Ole

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • JS532
    JS532 over 4 years ago

    Hi Ejlersen,

    Thanks very much for sending me this.

    When I execute these steps in a skill window they appear to work. When I attempt to execute within a skill script however I get the following *Error* car:Can't take car of atom - "OK_UNASSIGNED_SHAPE"

    Here's the exact code I'm trying to accomplish:

    dShape = list( -1000.0:-1000.0 1000.0:1000.0 )
    sh1 = axlDBCreateRectangle(dShape t lyr)
    res = axlDBAddProp(car(sh1) list("OK_UNASSIGNED_SHAPE" t))
    sh1 = axlShapeChangeDynamicType(car(sh1) t t )
    sh1 = car(axlShapeChangeDynamicType(sh1 nil t ))

    When running each line from the skill editor everything works correctly. It's only when I attempt to run inside a skill script that it has this error

    • 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