Jump to content

Bulk adjusting symbols with device definitions


CharlesD

Recommended Posts

Hi All-

I am really enjoying the new paradigm of storing device info in the attached record.

One unintended consequence is it seems like it might be harder to change your mind about setting signal types.

For instance, my library of devices has a signal "12G-SDI", but let's say I wanted to change it back to the pre-defined "12GV".

Right now I think I need to manually open each record in VWX and make the change. Not a problem for a small library, but tedious for a larger library.

Does anyone have a more elegant workflow for this?

Worksheets cannot update record instances in symbol definitions, right?

Edited by CharlesD
Rephrase
Link to comment
  • 2 weeks later...

Thanks @Pat Stanford.

I have reviewed some of your previous posts and I was able to create a worksheet with DatabaseByScript.

Two things I wanted to make sure I understood:

1) This is not bi-directional, right? It doesn't seem like I can edit the data of the rows of the database.

2) I am struggling to understand how to work with the "ConnectCAD Device Definition".
2.1) Where is this record stored? It doesn't appear in my Records folder
2.2) Is this record specal or diferent than any other regular record?
2.3) When I inspect the record in the Record Format Connection I see twelve fields, including "Socket groups". But when I look at adding fields from this record format to a worksheet, I only see eleveen fields, no "Socket groups". Is hints on why it's different?

 

As a note, it looks like if I create a data sheet of a symbol object it looks like I can get those fields into a worksheet-- but I'm currently not sure what a Data Sheet is, or a way to do that programatically, I'll try to RTFM.

Record fields.png

Report fields.png

Link to comment

The contents of the socket groups field is more complex than a single string - it contains a JSON object stored as a string that defines the data for all of the sockets in that device.

 

Python is great at working with JSON - you could read from that field with Python, manipulate the JSON and then store it back.

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...