Jump to content
connered

read Database informations

Recommended Posts

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 

Share this post


Link to post

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)

 

Share this post


Link to post

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.

 

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×