Takeshi_Kimura Posted March 5, 2020 Share Posted March 5, 2020 Hi, GetFldType() returns '8' for pop-up field of a record format. Is this expected? How can you distinguish between, field type Number-fractional? http://developer.vectorworks.net/index.php?title=VS:GetFldType&oldid=2701 Regards, Takeshi Quote Link to comment
PatW Posted March 5, 2020 Share Posted March 5, 2020 Hi Takeshi, I asume you checked a parametric record, in this case the number would be "3". Did you see the different tables in the doc. Data Record: -"4" Text (Didn't check it, but the pop up must be text in that case, ) -"8" Number-fractional Param Record: - "3" Number (Equivalant to 8 off Data Record) - "8" Pop-Up regards, Patrick Quote Link to comment
JBenghiat Posted March 5, 2020 Share Posted March 5, 2020 I believe you want to follow the parametric constants now, and that there is an object variable that will get you the numeric type. Quote Link to comment
mwuebker Posted April 22, 2020 Share Posted April 22, 2020 I am trying to create a pop-up field in a document record format (Not a parametric format). When I use GetFldType() on a pop-up field in a document record format that I've created through the interface, it returns '8' however when I use NewField('Record Name','FieldName','None',8,0) the script creates a fractional number field. Is it not possible to create a pop-up field via script? And if so, how do you set the list of possible options? Thanks! Marcus Wuebker Quote Link to comment
The Hamma Posted December 16, 2020 Share Posted December 16, 2020 Having the same problem. Did you find an answer? Quote Link to comment
JBenghiat Posted December 16, 2020 Share Posted December 16, 2020 Creating pop-up fields via script is currently not possible. 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.