Jump to content

read Database informations


Recommended Posts

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)

 

Link to comment

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.

 

 

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...