Jump to content
Jesse Cogswell

Adding Record Format Pop-up Fields

Recommended Posts

Good morning.

 

I'm trying to create a record format containing pop-up fields using Vectorscript and have yet to be successful.  The appendix contains a section "Record - Worksheet Field Types" which does not contain popup menus as well as a "Plug-in Object Parameter Record Field Types" section which lists Text - Popup Menu Item with a selector of 8 (the same as Number - Fractional in the other list).

 

If I try building a record format through the Resource Manager and reverse engineering it with GetFldType, a popup field returns a value of 8, but so does a Number - Fractional value.

 

Is this something that just isn't possible with Vectorscript?

Share this post


Link to post

I think we talked about this a while ago. @MullinRJ were you involved in that discussion?  My recollection is that we decided that standard records could not have pop-up fields.

 

 

  • Like 1

Share this post


Link to post

Good morning, @Pat Stanford .

   Yes. You, me, and _c_, (and Tui). I just reread the thread and at the end I wrote that it works in VW 2020, but not in earlier VW versions. Also, you cannot export a VW 2020 file back to earlier versions with a popup field defined. Well, you can, but the popup field type will not work anymore.

 

   So, @Jesse Cogswell , the question to you is, "What version of VW are you using?"

 

Raymond

 

PS - Thanks for the memory jog, Pat. I'd almost forgotten about that issue.

Share this post


Link to post

Good morning and thank you for the reply @MullinRJ ,

 

I currently use VW 2019 for script development (since it's the version I'm happiest with) and 2020 for testing.  In 2019, I can add a popup field to a record format with no problem using the Resource Manager, same for 2020 and as far back as 2018 (earliest version I have installed).  The issue I am having is that there seems no way to build a record with a popup field strictly through scripting, in 2019 or 2020.

 

I have a plug-in that wants to reference a symbol, so the easiest way is to attach a record to that symbol.  But, that record will need to exist within the drawing, so I was hoping to be able to create it from scratch as part of the plug-in's code when it is needed.  The plug-in has a couple of different types, so it would be great if the type could be assigned to the symbol using a popup field to decrease the chance of user-error.

 

At the end of the day, it's really not a problem for me to use a text field for this, which is ultimately what I am going to end up doing.  Especially because it will allow for backwards compatibility for earlier versions of Vectorworks.

 

Jesse

Share this post


Link to post

You can’t create a pop up field. VS wasn’t updated to accommodate the newest round of field types, which includes the pop up. This is technically a bug.

Share this post


Link to post

Hi

 

jumping on that topic: is it still impossible to create a pop up filed through VS?

 

 

Share this post


Link to post

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.


 

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.

×
×
  • Create New...