panpan Posted August 9, 2023 Share Posted August 9, 2023 Hi I want to link some text in a symbol using LinkText but it won't link. Please help. vs.BeginSym('room_index') vs.Rect(0,0,1,3) vs.TextOrigin(0,0) vs.CreateText('*') vs.LinkText(vs.LNewObj(),'ri_Rec','ri_Fie') vs.EndSym() Quote Link to comment
Pat Stanford Posted August 9, 2023 Share Posted August 9, 2023 Try using the exact formula from the Function Reference and Use vs.BeginText and vs.EndText rather than vs.CreateText. Quote Link to comment
panpan Posted August 16, 2023 Author Share Posted August 16, 2023 It was stated that vs.BeginText is not available in python. https://developer.vectorworks.net/index.php/VS:BeginText Quote Link to comment
Marionette Maven Marissa Farrell Posted August 22, 2023 Marionette Maven Share Posted August 22, 2023 @panpan Your script above doesn't link the record to the symbol. Here's a fix: vs.BeginSym('room_index') vs.Rect(0,0,1,3) vs.TextOrigin(0,0) vs.CreateText('*') vs.LinkText(vs.LNewObj(),'Rec1','Field1') vs.EndSym() vs.Record(vs.LNewObj(), 'Rec1') Hope this helps! 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.