Cloud Hidden Posted August 16, 2003 Share Posted August 16, 2003 I've spent a coupla hours w/ the manual and searching this site and haven't found what I'm looking for thus far. I've written a script or two before, usually by finding an existing simple one and modifying it. Trying to make my first PIO, and have no idea how to create the script. All the existing PIO's have their scripts locked, so I can't look at how they do it. The PIO I want to create is a hexagonal window marker for a window schedule...just a small hexagon with a single letter of text that can be modified in the OIP. Can someone point me to where an existing PIO script is so I can see how they are organized? Thanks. Quote Link to comment
MullinRJ Posted August 17, 2003 Share Posted August 17, 2003 Do you have VW 8.5.2? Most of the PIO's there are unlocked. Quote Link to comment
Miguel Barrera Posted August 17, 2003 Share Posted August 17, 2003 You can find examples at: http://www.nemetschek.net/support/custom/vscript/example.html Quote Link to comment
ccroft Posted August 17, 2003 Share Posted August 17, 2003 You should also look in the plug-ins section of http://www.vectordepot.com/ And in the add-ons section of this site. "gMarkers" would be relevant I think. Quote Link to comment
Alexandre Villares Posted August 17, 2003 Share Posted August 17, 2003 gMarkers from VectorDepot are a very good start point! Just a couple of tips: There are many kinds od PIO's, point, linear, rectangular, path... If you are going to copy and tweak an existing one, don't worry about it, but if you are going to create one from scratch you'll have to choose (I guess your hexagonal thing would be best built as a point object). Parameter on the OI Palette can be added/edited at the plug-ins panel. The first column is the internal name, but inside the code you have to add a 'p' (i.e. 'LegSize' wil become 'pLegSize' as in 'L:=pLegSize;'). Quote Link to comment
CipesDesign Posted August 17, 2003 Share Posted August 17, 2003 Yo Cloud- You do know that what you're looking for already exists? Use the NUMBER STAMP TOOL (it looks like a baby's pacifier). You can chose hexagonal shapes, set size, text size, etc. Peter Quote Link to comment
Cloud Hidden Posted August 17, 2003 Author Share Posted August 17, 2003 Peter, where were you 3 hours ago?!?!?! Never saw that sucker in there. Ah well, it became a good learning experience. I got mine done, and it turned out kinda cool. Their's automatically increments the number, while mine doesn't. Their's also requires one click. Mine uses the point object type, so it requires two clicks. Don't really wanna rotate it, but that's what the choices were. Mine puts the parameters for size, etc in the OIP, which is good for some things. Each work, and now I know how to do one more thing. Thanks y'all, for pointing the way. Quote Link to comment
CipesDesign Posted August 17, 2003 Share Posted August 17, 2003 3 hours ago? Hmm...Alseep! Ah well, I'm glad you figured one out. By the way, the NUMBER STAMP also works with LETTERS (a,b,c, etc.). P Quote Link to comment
Cloud Hidden Posted August 17, 2003 Author Share Posted August 17, 2003 Mine handles letters, too. I haven't found out how to increment the value with each occurrence, though. Anyone here know? Quote Link to comment
MullinRJ Posted August 17, 2003 Share Posted August 17, 2003 Try: J := ord(aCharacter); { returns the integer value of aCharacter } and Ch := chr(aNumber); { returns a character with integer value aNumber } or, the quick way to increment a char, Ch := chr(ord(Ch)+1); { Increments character Ch by 1 } Quote Link to comment
Cloud Hidden Posted August 17, 2003 Author Share Posted August 17, 2003 How persistent are those values? Do variables retain values across a session or some other interval? Guess I just assumed that unless you did something special, a variable's value was just local to that use of the pio. Quote Link to comment
Alexandre Villares Posted August 18, 2003 Share Posted August 18, 2003 There is a way to change a PIO's default values.. then you might make it increment it's value at each insertion. I'll try and see if I can find and post some old code I made for an incrementing PIO. 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.