connered Posted March 15, 2017 Share Posted March 15, 2017 Hey, I´m try to understand the the database information I like to read out the information a symbol have - like the manufacture can you give me a tip or a few lines of code Thanks Michael Quote Link to comment
Patrick Winkler Posted March 15, 2017 Share Posted March 15, 2017 Hi Micheal, here is an example that reads a value from an record that is attached to a symbol definition. Just wrote this down without testing,I hope it works. Is this what you need? symbolname = 'Sym' rec_name = 'Symbol record' fld_name = 'manufactor' sym_defini_handle = vs.GetObject (symbolname) val = vs.GetRField(sym_defini_handle, rec_name, fld_name) vs.AlrtDialog (val) Quote Link to comment
Pat Stanford Posted March 15, 2017 Share Posted March 15, 2017 If you are looking for data from a PIO instead of a symbol you need to use the PIO Record and Field information. This can be hidden or use different names than are displayed in the OIP. The script in the attached thread will give you a list of all of the fields in the PIO record. Place an instance of the PIO in a drawing (not inserted in a wall) and run the script. The resulting worksheet will have the information. Make sure you get the latest version at the bottom of the thread. 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.