JOE DE VILLIERS Posted October 5, 2017 Share Posted October 5, 2017 Some advice please. In Vwx architect (2014 or 2017) - can one copy numerical text in a way that the number increases in value each time you copy it? Say, for example you are numbering grid lines or stair risers or windows.... surely one does not have to copy the text and then go back to edit each one.... so I mean, how does one copy "1", so that each time you copy it, it becomes 2,3,4..... etc. Microstation had this function and it saves a load of time! Thanks All! ! Quote Link to comment
Gadzooks Posted October 5, 2017 Share Posted October 5, 2017 Sounds a good idea. This looks like a simple job for one of our marionette wizards. (Don't look at me!) Quote Link to comment
Bertf Posted October 6, 2017 Share Posted October 6, 2017 (edited) I needed this function in the past and made a little script for it. It works as follows: Double clicking the symbol opens this window: You can change the prefix to your liking. The number ("Nr") field is the start value of the counter. The "materiaal" field adds a material or some other subtext. So when you select the tool with these preferences and just start clicking, you'll get the following result: The script places normal text boxes which can be edited later on. You can also press delete at this stage to delete the placed labels and when you continue clicking, the counter continues. (for when you quickly need to start at a higher number) Or you can just change the startnumber in the settingsmenu: And get this result: This is the code: VAR x1,y1: REAL; Prefix: STRING; Nr: STRING; Material: STRING; Text: STRING; h: HANDLE; cmdHd: HANDLE; Length: INTEGER; PosEnter: INTEGER; BEGIN Prefix:= PPrefix; Nr:= PNr; Material:= PMateriaal; WHILE (true) DO BEGIN GetPt(x1,y1); TextOrigin(x1+10, y1-10); Text:= Concat(Prefix, Nr, Chr(13), Material); Length := Len(Text); PosEnter := Pos(Chr(13), Text); CreateText(Text); h:= LNewObj; SetTextFont(h, 0, Length, GetFontID('Arial')); SetTextSize(h, 0, PosEnter, 10); SetTextStyle(h, 0, PosEnter, 1); SetTextSize(h, PosEnter, Length-PosEnter, 7); SetZoom(GetZoom); Nr:= Num2Str(0, Str2Num(Nr)+1); END; END; Run(LabelVS); I've added the tool to the attachment. You can just drop it in your plug-ins folder and add it with the Workspace editor. (I think it will be in the Fplus folder) Maybe Vectorworks will create a Pro tool, but I hope this helps in the meantime. Label VS.vst Edited October 6, 2017 by Bertf Quote Link to comment
markdd Posted October 6, 2017 Share Posted October 6, 2017 There is the stamp tool. It will do what you need. You will need to add it to your workspace though as it is no longer part of the standard shipped workspaces (for some reason). 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.