JoelS Posted October 9, 2007 Share Posted October 9, 2007 How can I test that a record definition (format) exists in my document before a script attempts to use it in the same way as I can for symbol definitions? I could attach all the RFs to a special object and test that but it seems a bit clumsy. TIA. Joel. Quote Link to comment
Vectorworks, Inc Employee klinzey Posted October 9, 2007 Vectorworks, Inc Employee Share Posted October 9, 2007 Just use GetObject('Record Name') if it returns NIL then the record does not exist. You should also check the type to make sure it is a record. Quote Link to comment
JoelS Posted October 9, 2007 Author Share Posted October 9, 2007 Kevin, Many thanks, this works nicely. I didn't think of using GetObject() in this way and it opens up some other possibilities too. Joel. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.