Jesse Cogswell Posted July 3, 2020 Share Posted July 3, 2020 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? Quote Link to comment
Pat Stanford Posted July 3, 2020 Share Posted July 3, 2020 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. 1 Quote Link to comment
MullinRJ Posted July 3, 2020 Share Posted July 3, 2020 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. Quote Link to comment
Jesse Cogswell Posted July 3, 2020 Author Share Posted July 3, 2020 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 Quote Link to comment
JBenghiat Posted July 3, 2020 Share Posted July 3, 2020 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. Quote Link to comment
Thomas K. Posted May 19, 2021 Share Posted May 19, 2021 Hi jumping on that topic: is it still impossible to create a pop up filed through VS? Quote Link to comment
JBenghiat Posted May 19, 2021 Share Posted May 19, 2021 No updates to 2021 here Quote Link to comment
Antonio Landsberger Posted August 3, 2021 Share Posted August 3, 2021 On 7/3/2020 at 9:45 PM, JBenghiat said: 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. I just filed a bug report. Let's see. Maybe we'll get a new and shiny command for VW2022. Quote Link to comment
brvn Posted December 19, 2021 Share Posted December 19, 2021 So I have a pretty similar problem at the moment. I want to edit an existing record with Pup Up menus. Its still not possible to do so ? Quote Link to comment
JBenghiat Posted December 20, 2021 Share Posted December 20, 2021 No new commands for this in vs yet. 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.