brrt Posted September 3, 2003 Share Posted September 3, 2003 Hello, If you have drawn an object, is it possible to give this object a name? Because I would like to make a handle to this object in vectorscript (using GetObject function). I know it is possible to give a name using NameObject, but this only assigns a name to the object next created. The deeper problem: I try to link a record format to a symbol. The information in the record formats is different for each symbol-instance. When I try to get a value from a recordfield, I only get the "default" value instead of the value assigned to a specific instance. So I need to adress a symbol-instance, but I can't get this working. Any ideas? Is there some kind of internal naming of symbolinstances? Quote Link to comment
MullinRJ Posted September 4, 2003 Share Posted September 4, 2003 brrt, To answer your first question, if you have just drawn the object and it is still selected, Open the Object Info Palette (OIP) and click on the Data Tab at the bottom. Above the record panes is a text field. Type your name in there. It may say *DEFAULTS* when you change tabs, or if the object already has a name its name will appear there, or it may be blank if the data pane is already selected when you open the OIP. It's not a well labeled field of the OIP, but that's where you find it. Someone better suited than I will have to address your second question. Raymond Quote Link to comment
brrt Posted September 4, 2003 Author Share Posted September 4, 2003 Thanks for your fast reply Raymond, you helped me a lot with this info! If somebody has tips/hints for my second question, please don't hesitate to post it or to contact me privately. Quote Link to comment
Guest Posted September 5, 2003 Share Posted September 5, 2003 The way to set an object's name in vectorscript is to use setname. procedure setname(ObjHandle,Name); As far as your second question I'm confused as to exactly what you are asking. if you want to get record information you can use either GetRField which will give you the record value or GetRecord which will return the specified handle. If you want to set a record's info you can use either setRecord or SetRField. I hope this helps. -Dave Quote Link to comment
brrt Posted September 5, 2003 Author Share Posted September 5, 2003 quote: Originally posted by dfortin: As far as your second question I'm confused as to exactly what you are asking. Thanks for your post. I couldn't find how to name an object without using Vectorscript. Because of that I couldn't get correct handles to my objects. The previous post already helped me out! Quote Link to comment
Alexandre Villares Posted September 5, 2003 Share Posted September 5, 2003 brrt, To read/attach a record from/to a symbol instance be sure you are getting the Handle to the instance and not the handle to the symbol definition (otherwise you?ll get the record defaults) 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.