Home > Community > Forums > Custom IC SKILL > Testing valid shape

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: *

 Testing valid shape 

Last post Fri, May 11 2012 12:51 PM by psill. 2 replies.
Started by psill 11 May 2012 12:44 PM. Topic has 2 replies.
Page 1 of 1 (3 items)
Sort Posts:
  • Fri, May 11 2012 12:44 PM

    • psill
    • Top 500 Contributor
    • Joined on Sat, Mar 24 2012
    • Posts 24
    • Points 405
    Testing valid shape Reply

    I have a script that is doing layer booleans, modifiy, deleting shapes. I need a way to test if the variable has a valid shape. I am getting the message in the ciw  dbGetq: object is a purged/freed object - db:0x2ab1132fa2.

    I know the shape it is specifying has been deleted. 

    Is there clean way of testing if a shape/variable is valid in a boolean statement or a script that returns a boolean?

     Thanks

     I have tried some various uses of getWarn, errset, ~>isShape, symeval, and maybe some others.

    • Post Points: 20
  • Fri, May 11 2012 12:48 PM

    • tweeks
    • Top 500 Contributor
    • Joined on Fri, Jun 3 2011
    • Irvine, CA
    • Posts 18
    • Points 300
    Re: Testing valid shape Reply

    Have you tried this?

    dbIsId( 
    d_id 
    ) 
    => t / nil
     
    Returns t if the argument is a valid database object ID, otherwise,
    it returns nil.
    
    --tweeks
    • Post Points: 20
  • Fri, May 11 2012 12:51 PM

    • psill
    • Top 500 Contributor
    • Joined on Sat, Mar 24 2012
    • Posts 24
    • Points 405
    Re: Testing valid shape Reply

    Nope, I did not and it returns the value I want

     

    Big thanks 

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by psill at 11 May 2012 12:44 PM. Topic has 2 replies.