<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- RSS generation done by UBB.threads(tm) on Fri, 03 Feb 2012 11:49:13 EST -->
<rss version="2.0">
	<channel>
		<title>Vectorworks VectorScript</title>
		<link>http://techboard.vectorworks.net/ubbthreads.php</link>
		<description>Vectorworks VectorScript</description>
		<generator>Vectorworks Community Board - UBB.threads(tm)</generator>
		<item>
			<title>Re: SelectObj Appendix?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=165849#Post165849</link>
			<description>
			<![CDATA[<b>Posted by</b> MaxStudio:<br />
			Miguel,

I found it!  I'm so use to working in the external editor because eveything is color coded and I found it to be easier.  The criteria  menu is definitely going to be useful in the future.

Thanks
Derek]]>
			</description>
			<pubDate>Fri, 03 Feb 2012 11:34:51 EST</pubDate>
		</item>
		<item>
			<title>Re: Viewports problems</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=165847#Post165847</link>
			<description>
			<![CDATA[<b>Posted by</b> Elagrop:<br />
			Hi! when I open the viewports and go on the right design layer, it doesn't zoom on the right point of the draw.  How can I resolve this?  Thanx to who will find a moment to answer!  Laura]]>
			</description>
			<pubDate>Fri, 03 Feb 2012 11:07:53 EST</pubDate>
		</item>
		<item>
			<title>Re: PIO checking for duplicated field values</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=165842#Post165842</link>
			<description>
			<![CDATA[<b>Posted by</b> J. Miller:<br />
			Thanks for he tips... 
Here is a brief description of what this plug-in is doing.
The field 'name' of this plug in (center) will be placed into another plug-in (point) available thru a pop up list. This will allow the other plug in (point) to find it and get its &quot;X&quot;, &quot;Y&quot; location based on the user selection of the name. If the plug-in (center) is not in the file than the other plug-in (point) will use the current files center. The offset difference will be used for some dimensioning and reports of (point) based on the position of plug-in (center). Originally i was only going to use one (center), but wanted to make the plug-in a little more robust by allowing multiple (centers). If two (centers) are named the same then erroneous results happen (point usually fined the newest (center)first). I know not to have to (centers) with the same name, but don't want to rely on the user to know that. Trapping user errors always complicates things.... doesn't it??

Sorry it takes a few days for]]>
			</description>
			<pubDate>Fri, 03 Feb 2012 09:59:04 EST</pubDate>
		</item>
		<item>
			<title>Re: Is DoMenuTextByName limited to certain Menu commands?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=165828#Post165828</link>
			<description>
			<![CDATA[<b>Posted by</b> VvierA:<br />
			Ok thank you very much. I'll try that.
VvierA]]>
			</description>
			<pubDate>Fri, 03 Feb 2012 00:13:08 EST</pubDate>
		</item>
		<item>
			<title>Re: objects on PLANAR</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=165812#Post165812</link>
			<description>
			<![CDATA[<b>Posted by</b> Assembly:<br />
			Have any of you gurus used the planar text in your objects yet?. ]]>
			</description>
			<pubDate>Thu, 02 Feb 2012 15:34:30 EST</pubDate>
		</item>
		<item>
			<title>Re: Select by Line Weight?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=165778#Post165778</link>
			<description>
			<![CDATA[<b>Posted by</b> MaxStudio:<br />
			ok i think i got it working now....

it was as simple as adding two more parentheses

SelectObj((LW=n));]]>
			</description>
			<pubDate>Wed, 01 Feb 2012 17:47:59 EST</pubDate>
		</item>
		<item>
			<title>Re: 2010 Pios Don't work in 2012 Because of character length</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=165715#Post165715</link>
			<description>
			<![CDATA[<b>Posted by</b> klinzey:<br />
			There is no way to increase the size limit.
The size limit is about 32K (at one time you could do 64K on windows but I don't know it that is possible any longer.)
The limitation is the Vectorscript text editor and not the PIO itself.
The best thing to do is to use Include files. Inside the PIO you just have a single line {$Include FileName.px}
Copy your existing code into FileName.px and place it in the plug-ins folder.
You can now edit the file with any text editor and if you encrypt the script you only need to the encrypted pio.
Include files make development a lot easier.]]>
			</description>
			<pubDate>Tue, 31 Jan 2012 15:52:45 EST</pubDate>
		</item>
		<item>
			<title>Re: Modifying the Object to manipulate the variable?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=165559#Post165559</link>
			<description>
			<![CDATA[<b>Posted by</b> Pat Stanford:<br />
			I don't know why Rectangle PIOs work that way, just that they do.

Depending on what you are doing, perhaps it would be better to use a Linear PIO to get the opposite corners instead of the two edges.]]>
			</description>
			<pubDate>Fri, 27 Jan 2012 14:07:49 EST</pubDate>
		</item>
		<item>
			<title>Re: {$NAMES 15} or {$STRICT 15} How does it work?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=165556#Post165556</link>
			<description>
			<![CDATA[<b>Posted by</b> Miguel Barrera:<br />
			 [quote]In general plug-ins are only forward compatible. You may find a few versions that are compatible only because the plug-in format did not change between versions.
 [/quote] 

Kevin,

Or you change the definition of a function variable. I ran into a problem with the Extrude Along Path on vw 2010 where it could not create a curved and tapered mast arm. It worked before in vw 2008 with a &quot;uniform scale&quot; and &lt; 1 &quot;factor&quot;. After further trial and error I found that VW can only create a curved EAP with uniform scale and a factor of 1. Any other factor will throw an error. Is this a bug?

My workaround was to change the scale to &quot;exponential&quot; but there is no documentation about the relationship between the scaling factor and the reduction/augmentation at the other end. Again, after a lot of trial and error, I found that the profile dimension ratio of the tapered end over the origin end was related to this factor and the values plotted resembled an arc. With this I can get an app]]>
			</description>
			<pubDate>Fri, 27 Jan 2012 13:10:39 EST</pubDate>
		</item>
		<item>
			<title>Re: PIO with  Buttons</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=165551#Post165551</link>
			<description>
			<![CDATA[<b>Posted by</b> MaxStudio:<br />
			[quote=J. Miller]If I only wrote code a little more frequently I might even be able to post answers myself.[/quote] 

I usually ask the question and if I make some progress on my own I post my progress and solution anyway.  I figure it may help someone else out some day!

Happy it all worked out for you!]]>
			</description>
			<pubDate>Fri, 27 Jan 2012 12:28:13 EST</pubDate>
		</item>
		<item>
			<title>Re: How to get the handle to the latest generated Polyline?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=165522#Post165522</link>
			<description>
			<![CDATA[<b>Posted by</b> VvierA:<br />
			LNewObj - that's it - thank you again.]]>
			</description>
			<pubDate>Fri, 27 Jan 2012 01:25:31 EST</pubDate>
		</item>
		<item>
			<title>Re: Is there a way to call the Menu 'Export PDF (Quartz only)' via VS?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=165452#Post165452</link>
			<description>
			<![CDATA[<b>Posted by</b> JBenghiat:<br />
			Yes, there is an ExportPDFPages procedure under Commands, but I believe that because the batch PDF export functionality is not available to Fundamentals, you cannot access it through VS.  

There are actually a number of non-industry specific functions that I would consider fundamental, but that aren't included in Fundamentals.

-Josh]]>
			</description>
			<pubDate>Wed, 25 Jan 2012 13:52:47 EST</pubDate>
		</item>
		<item>
			<title>Re: Rectangle Plugin with Parameters referring to each other</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=165449#Post165449</link>
			<description>
			<![CDATA[<b>Posted by</b> JBenghiat:<br />
			Glad I could help.
-Josh]]>
			</description>
			<pubDate>Wed, 25 Jan 2012 13:36:29 EST</pubDate>
		</item>
		<item>
			<title>Re: Auto-Updating TitleBlock Stamps Help</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164882#Post164882</link>
			<description>
			<![CDATA[<b>Posted by</b> AEChadwick:<br />
			Hey Mr Stanford! as if I wasn't in your debt already! Thank you so much for checking in.

Your version worked perfectly!

I shall now set about complicating it, and I will check back in as soon as I have broken something.

—Æ]]>
			</description>
			<pubDate>Tue, 10 Jan 2012 02:40:14 EST</pubDate>
		</item>
		<item>
			<title>Re: ForEachObjectAtPoint</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164867#Post164867</link>
			<description>
			<![CDATA[<b>Posted by</b> PeterT:<br />
			I am running a script which uses ForEachObjectAtPoint, and it only seems to find objects on the active layer, even with traversal options set to all objects, and layer options set to show, snap, modify others.

Is this as intended?  It sure does not indicate this in the Function Reference.]]>
			</description>
			<pubDate>Mon, 09 Jan 2012 20:32:31 EST</pubDate>
		</item>
		<item>
			<title>Re: Old Script in New version not Working</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164841#Post164841</link>
			<description>
			<![CDATA[<b>Posted by</b> klinzey:<br />
			Carl,

There were a lot of changes between v11.5 and 2011 in Vectorworks and Vectorscript.  Several Vectorscript calls from v11 are not obsolete and no longer work in 2011.  Also the Vectorworks file extension changed from .mcd to .vwx so any script that access external Vectorworks files will no longer be able to find or use the old .mcd files.

If you an give us the exact error message we may be able to help you out a little more.
]]>
			</description>
			<pubDate>Mon, 09 Jan 2012 15:44:08 EST</pubDate>
		</item>
		<item>
			<title>Re: Get Leader/Trailer returns NIL?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164624#Post164624</link>
			<description>
			<![CDATA[<b>Posted by</b> michaelk:<br />
			Thanks, Kevin.]]>
			</description>
			<pubDate>Tue, 03 Jan 2012 10:39:41 EST</pubDate>
		</item>
		<item>
			<title>Re: Changing planar object</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164622#Post164622</link>
			<description>
			<![CDATA[<b>Posted by</b> DCarpenter:<br />
			Maarten,

Your the best, thank you so much.]]>
			</description>
			<pubDate>Tue, 03 Jan 2012 09:59:02 EST</pubDate>
		</item>
		<item>
			<title>Re: string dialog box question</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164560#Post164560</link>
			<description>
			<![CDATA[<b>Posted by</b> michaelk:<br />
			[quote=MullinRJ]
   To be honest, I guessed. It's one of the few times I took a shot in the dark and hit it on the first try. Saddly, I have never needed SetdownDialogC. [/quote]
That is an insightful and prescient guess!


[quote=MullinRJ]
   As Joshua said, nothing happens during these dialog events that you don't explicitly program. They are just 2 events that get passed to your handler to start things up and finish them off. No magic involved. If you don't put any code in these sections, the dialog will run as if they never existed. [/quote]

Thanks, Raymond.  I'm slowing figuring it out...  Until your reply above prompted me to watch the debugger, I was unclear about when SetUpDialogC executed in relation to the rest of the code.

It would be nice if there was more documentation.  And if the examples didn't involve obsolete functions!


thanks!
mk]]>
			</description>
			<pubDate>Sun, 01 Jan 2012 12:27:50 EST</pubDate>
		</item>
		<item>
			<title>Re: bail out</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164402#Post164402</link>
			<description>
			<![CDATA[<b>Posted by</b> klinzey:<br />
			No, It's only valid inside the dialog handler.]]>
			</description>
			<pubDate>Thu, 22 Dec 2011 18:12:51 EST</pubDate>
		</item>
		<item>
			<title>Re: Color Index question</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164387#Post164387</link>
			<description>
			<![CDATA[<b>Posted by</b> Miguel Barrera:<br />
			The color index refers to the number of colors in a palette.

You should have a utility that can draw the active palette on a layer and if you export this chart to vectorscript it will write each color index with the corresponding RGB color values.

As far as I know, only the first 16 index colors in the vw classic palette were fixed/reserved but the rest could be any color so you could create your own color palettes]]>
			</description>
			<pubDate>Thu, 22 Dec 2011 10:42:30 EST</pubDate>
		</item>
		<item>
			<title>Re: GetWSCellxxxxBorder?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164361#Post164361</link>
			<description>
			<![CDATA[<b>Posted by</b> michaelk:<br />
			There is a SetWSCell[Top/Bottom/Left/Right/Outline]Border - but no partner Get_____.

Any ideas for a workaround to get the worksheet cell border settings?


(There is a GetWSCellBorder that returns the (on/off) state of top, right, bottom, and left borders - but no settings for those borders)


thanks


mk]]>
			</description>
			<pubDate>Wed, 21 Dec 2011 19:35:09 EST</pubDate>
		</item>
		<item>
			<title>Re: Getting values from dialog boxes</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164331#Post164331</link>
			<description>
			<![CDATA[<b>Posted by</b> michaelk:<br />
			Thank you, Raymond!

That finally makes sense.  

Not sure I'll be able to fix my code  - but now I understand why!


mk]]>
			</description>
			<pubDate>Wed, 21 Dec 2011 09:36:38 EST</pubDate>
		</item>
		<item>
			<title>Re: DialogID</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164322#Post164322</link>
			<description>
			<![CDATA[<b>Posted by</b> MullinRJ:<br />
			[quote=JBenghiat] you could in theory run two identical dialogs at the same time, each created with its own ID[/quote]It's more than theory. I do this for a special case in Reshaper; open a second dialog from inside a first dialog. It may not be the best interface design, but it may work for some instances.

The dialogID allows you to have the same item numbers in multiple dialogs. If this were not the case, confusion would ensue if you tried to modify an item number that existed in multiple dialogs. 

The idea of the dialogID acting as a HANDLE to the dialog window is exactly the right way to think of it. It's assigned at runtime when the dialog opens, and disappears when the dialog closes.

Raymond]]>
			</description>
			<pubDate>Wed, 21 Dec 2011 01:18:41 EST</pubDate>
		</item>
		<item>
			<title>Re: CreateLayout help</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164200#Post164200</link>
			<description>
			<![CDATA[<b>Posted by</b> Matt Panzer:<br />
			A great way to show messages while in a dialog is to add a static text &quot;message&quot; field in the dialog itself and load it with whatever you wish while in the dialog loop.  ]]>
			</description>
			<pubDate>Fri, 16 Dec 2011 10:23:54 EST</pubDate>
		</item>
		<item>
			<title>Re: calculate arc center from polyline arc segment</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164150#Post164150</link>
			<description>
			<![CDATA[<b>Posted by</b> Hannes L:<br />
			Miguel,
Thank you, Thanks a lot!!!
It works great. Now i can finish my Plugin for writing the CNC code for the CNC Router.

Again, many Thanks!!

Kind Regards, Hannes]]>
			</description>
			<pubDate>Thu, 15 Dec 2011 07:16:41 EST</pubDate>
		</item>
		<item>
			<title>Re: Alternative to SelectObj</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164049#Post164049</link>
			<description>
			<![CDATA[<b>Posted by</b> James Russell:<br />
			Ahh! I see!

Respect to that.

*runs away to test*

Thanks.

J]]>
			</description>
			<pubDate>Tue, 13 Dec 2011 21:00:35 EST</pubDate>
		</item>
		<item>
			<title>Re: Changing sounds</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=164007#Post164007</link>
			<description>
			<![CDATA[<b>Posted by</b> JBenghiat:<br />
			Trevor,

You are correct -- you can only make a system beep with VS.  You may be able to do more with the SDK, but I'm not an expert.

-Josh]]>
			</description>
			<pubDate>Mon, 12 Dec 2011 12:19:06 EST</pubDate>
		</item>
		<item>
			<title>Re: elevation benchmark homegrown</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=163657#Post163657</link>
			<description>
			<![CDATA[<b>Posted by</b> Dexie:<br />
			Does'nt the Stake Object tool provide this functionality?]]>
			</description>
			<pubDate>Thu, 01 Dec 2011 02:44:27 EST</pubDate>
		</item>
		<item>
			<title>Re: Toggle &amp;quot;Use Layer Colors&amp;quot;</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=163421#Post163421</link>
			<description>
			<![CDATA[<b>Posted by</b> JBenghiat:<br />
			Indeed, the presence constants aren't all documented in the function reference. If you want the most up to date and comprehensive list, download the SDK and look at the MiniCADCallbacks file. It's actually fairly well commented. 

-Josh]]>
			</description>
			<pubDate>Thu, 24 Nov 2011 09:50:49 EST</pubDate>
		</item>
		<item>
			<title>Re: Handle to Object Matching Search Criteria</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=163273#Post163273</link>
			<description>
			<![CDATA[<b>Posted by</b> James Russell:<br />
			All sorted and functioning correctly. Thanks guys!

Cheers,

J]]>
			</description>
			<pubDate>Tue, 22 Nov 2011 02:33:16 EST</pubDate>
		</item>
		<item>
			<title>Re: Is it possible to create an exterior corner board trim PIO?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=163211#Post163211</link>
			<description>
			<![CDATA[<b>Posted by</b> Joe-SA:<br />
			Are you asking for a CornerBoard image (the boards that cap the siding profile at building corners) or for a trim profile that wraps a window opening?  or both?

Incidentally, Vector Depot has a suite of tools known as Mouldings that does trim at openings.  I haven't used it but it looks like it would be a great add-on.

Joe]]>
			</description>
			<pubDate>Mon, 21 Nov 2011 09:47:27 EST</pubDate>
		</item>
		<item>
			<title>Re: Menu Command Solar Animation- Interested?.</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=163179#Post163179</link>
			<description>
			<![CDATA[<b>Posted by</b> Assembly:<br />
			Hi WhoCanDo

I've pasted into a pastbin:
  [url=http://pastebin.com/jVtsPfyx]Pastebin Link[/url]  

You need to do a couple things to set this up.
a) $include into your menu.

b) The drawing needs a couple Named Object (data pallet name).
1) A North Point PIO named 'TheNorth'.
If you don't have it in the drawing yet the script makes you put one in. 

2) A text object if you want a title. 

You will need to set the glatitude and gLongitude for the site (use Google earth to get that info)

Set up the view you want to see the sun animated.
Set the render you want 
Run the script. 
You will get the sun animated for its highest point and lowest point.
The final animation will be in your user folder. 
]]>
			</description>
			<pubDate>Mon, 21 Nov 2011 02:26:44 EST</pubDate>
		</item>
		<item>
			<title>Re: Create new layer/Create new Class</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=162955#Post162955</link>
			<description>
			<![CDATA[<b>Posted by</b> Pat Stanford:<br />
			Not a problem.  If you need help, just ask.  I just happened to have this script that I mostly wrote back in 2008 for someone else.

I will be happy to help with modifications or lessons on how to make it a menu item.  Just ask.]]>
			</description>
			<pubDate>Wed, 16 Nov 2011 00:09:54 EST</pubDate>
		</item>
		<item>
			<title>Re: Wallowing through arrays of structures</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=162787#Post162787</link>
			<description>
			<![CDATA[<b>Posted by</b> ccroft:<br />
			Hi Jeff,

I actually haven't written anything meaningful in quite some time, and I'd like to thank you for posting and tweaking my interest again, and trying to see what you were up to.

If I may I'd make a couple more comments. I think you'll find that you're doing a few things in your code that don't need to be done. You don't need to have a separate &quot;fill the first location&quot; line. My example handles that in the first line of the loop. IE the first time we look at the array we can assume that it's blank. Actually, some might say that we need some error checking to make sure, but I've never done that and in some 8 years of using a tool daily that doesn't check I haven't had a failure.

Also, the section at your comment {IF NAMES DONT MATCH ADD 1 to arraycnt to look at next element} isn't needed if you increment the index after the logic is finished evaluating things. If neither condition is met, then the index increments to look at the next location in the array.

So let's say]]>
			</description>
			<pubDate>Fri, 11 Nov 2011 13:36:57 EST</pubDate>
		</item>
		<item>
			<title>Re: VSave. Can it be longer than 64 characters?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=162372#Post162372</link>
			<description>
			<![CDATA[<b>Posted by</b> WhoCanDo:<br />
			I can't get any more than 63.

Could try Chr and Ord somewhere in you code to convert some numbers between 34 &amp; 128 into ascii and reduce the length of your name.

Regards
]]>
			</description>
			<pubDate>Tue, 01 Nov 2011 23:16:14 EDT</pubDate>
		</item>
		<item>
			<title>Re: Place all symbols present in the file on the drawing. Help!</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=162371#Post162371</link>
			<description>
			<![CDATA[<b>Posted by</b> WhoCanDo:<br />
			I have VW 2010 SP4 Fundamentals and it works for me.

Regards]]>
			</description>
			<pubDate>Tue, 01 Nov 2011 22:58:17 EDT</pubDate>
		</item>
		<item>
			<title>Re: Screen Layout</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=162232#Post162232</link>
			<description>
			<![CDATA[<b>Posted by</b> Assembly:<br />
			Thanks... 
I suspect this is a common case for 1000's of users. 
Come on VW do we really have to get into shell scripts to solve such a case. 

]]>
			</description>
			<pubDate>Sun, 30 Oct 2011 17:08:25 EDT</pubDate>
		</item>
		<item>
			<title>Re: Message - Current File Path</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=162035#Post162035</link>
			<description>
			<![CDATA[<b>Posted by</b> MaxStudio:<br />
			i knew it was simple after further digging around i found the function GetFPathName.  That seemed to work just fine.

[i]PROCEDURE Example;
VAR
   n :STRING;
   
BEGIN

	n:=GetFPathName;
	Message(n);
	
END;
RUN(Example);[/i]]]>
			</description>
			<pubDate>Wed, 26 Oct 2011 11:25:30 EDT</pubDate>
		</item>
		<item>
			<title>Re: change viewport update status?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=161853#Post161853</link>
			<description>
			<![CDATA[<b>Posted by</b> Pat Stanford:<br />
			If you download the SDK and look in MiniCADCallBacks.h you will see that 1004 is a read only parameter.]]>
			</description>
			<pubDate>Fri, 21 Oct 2011 22:37:50 EDT</pubDate>
		</item>
		<item>
			<title>Re: Setting a LongInt Pref</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=161829#Post161829</link>
			<description>
			<![CDATA[<b>Posted by</b> Assembly:<br />
			I don't get it ether. 
The script does execute. 
This error is written to file
/VectorworkSettings/2011/Error Output
The only way I found this error was I had the file open in BBEDIT and noticed the error Output being updated when the script ran.

---
For what it is worth- The content of this Dialog is what I'd like to be able to set with a script. (Note these give quite a good exterior render)
  [img]http://vectorschool.weebly.com/uploads/1/1/5/0/1150616/2290091_orig.png[/img]  ]]>
			</description>
			<pubDate>Fri, 21 Oct 2011 17:27:40 EDT</pubDate>
		</item>
		<item>
			<title>Re: how to set the location of a symbol from text</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=161595#Post161595</link>
			<description>
			<![CDATA[<b>Posted by</b> David Bengali:<br />
			Thanks Maarten and Miguel! That was exactly what I was looking for.]]>
			</description>
			<pubDate>Sat, 15 Oct 2011 12:40:58 EDT</pubDate>
		</item>
		<item>
			<title>Re: Creating bitmap from file</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=161472#Post161472</link>
			<description>
			<![CDATA[<b>Posted by</b> CodeGier:<br />
			Hello,

using
FUNCTION   CreateTextureBitmapN ( shaderRecord:HANDLE ) :HANDLE ;  
 
gives me a Handle to a bitmap created with an upcoming dialog to choose the image file. 
Is there a way to do this without a dialog?

I need a handle to a TextureBitmap created from a jpg or png file and do not find anything matching in the Function Reference.

Thanks in advance.

Josef]]>
			</description>
			<pubDate>Thu, 13 Oct 2011 16:50:53 EDT</pubDate>
		</item>
		<item>
			<title>Re: One parameter to contol two different plugin objects?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=161151#Post161151</link>
			<description>
			<![CDATA[<b>Posted by</b> DWorks:<br />
			The name is the name of the plug-in object.
To identify a certain object, you must have a parameter that you set to something.

Then you can search of all objects of the same plug-in, and search the one or ones with a certain value of the parameter.]]>
			</description>
			<pubDate>Fri, 07 Oct 2011 03:05:59 EDT</pubDate>
		</item>
		<item>
			<title>Re: CreateExtrudeAlongPath surprises</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=161071#Post161071</link>
			<description>
			<![CDATA[<b>Posted by</b> michaelk:<br />
			Thanks, again!]]>
			</description>
			<pubDate>Wed, 05 Oct 2011 13:28:25 EDT</pubDate>
		</item>
		<item>
			<title>Re: Plug-in Objects, Create a sub-menu in OIP?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=161062#Post161062</link>
			<description>
			<![CDATA[<b>Posted by</b> MaxStudio:<br />
			 Miguel,

Do you have an example of the buttons you are talking about?

Thanks]]>
			</description>
			<pubDate>Wed, 05 Oct 2011 11:01:24 EDT</pubDate>
		</item>
		<item>
			<title>Re: VectorScript Editor for Windows available</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=160905#Post160905</link>
			<description>
			<![CDATA[<b>Posted by</b> CodeGier:<br />
			First Beta of my Windows VectorScript Editor is available now:

 [url=http://www.fenninger.biz/23043/45801.html]VectorScript Editor 0.50 Beta[/url] 

It works stable, and I use it for my own scripting regularily.

Feel free to use it for your own work.

Bye

Josef]]>
			</description>
			<pubDate>Fri, 30 Sep 2011 16:12:52 EDT</pubDate>
		</item>
		<item>
			<title>Re: Does Class Exist</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=160755#Post160755</link>
			<description>
			<![CDATA[<b>Posted by</b> michaelk:<br />
			I'll give it a shot. 


Thanks.]]>
			</description>
			<pubDate>Tue, 27 Sep 2011 13:09:14 EDT</pubDate>
		</item>
		<item>
			<title>Re: Get handle of known field value</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=159768#Post159768</link>
			<description>
			<![CDATA[<b>Posted by</b> ccroft:<br />
			Even better! I didn't think of doing it all with criteria. ]]>
			</description>
			<pubDate>Sun, 04 Sep 2011 13:43:54 EDT</pubDate>
		</item>
		<item>
			<title>Re: Dynamic clipping</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=159686#Post159686</link>
			<description>
			<![CDATA[<b>Posted by</b> DWorks:<br />
			[quote=redl]Possible uses :
- complex pavings (so you could still change the global shape of the paving because you wouldn't need to trim it)
[/quote]

I think this is better done with the new tile fill that was introduced in VW2011. I really like it and use it a lot. I used it for all ground covers and for 2D elevations. You can make the repeating part as big as you like and have color variation in them, very nice! Also, you can set the rotation, origin and scale of it. The shape you use it on is the clipping.

[quote=redl]Possible uses :
- regular layouts (you could have a regular layout of parkings lots or furniture to adapt to a surface, eventually with an option to hide partially trimmed objects)
[/quote]

There are tools in VW for creating parking lots. And as far as I know, you don't want furniture to adapt to a surface. If you mean a seating layout, that's also in VW. You can even use your own symbols with the seating layout!

[quote=redl]Possible uses :
- clipping]]>
			</description>
			<pubDate>Thu, 01 Sep 2011 14:57:59 EDT</pubDate>
		</item>
		<item>
			<title>Re: Toggle Class Visibility</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=159598#Post159598</link>
			<description>
			<![CDATA[<b>Posted by</b> Christiaan:<br />
			Nice one, thanks.]]>
			</description>
			<pubDate>Tue, 30 Aug 2011 04:30:37 EDT</pubDate>
		</item>
		<item>
			<title>Re: XY script that works in a viewport's annotations</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=159369#Post159369</link>
			<description>
			<![CDATA[<b>Posted by</b> maarten.:<br />
			Didn't test it so could be wrong.

With GetObjectVariableReal(Handle to viewport,1003) you can get the scale, so then it's just your coordinates * that scale.

But i think you also need the position of that viewport.]]>
			</description>
			<pubDate>Tue, 23 Aug 2011 05:20:05 EDT</pubDate>
		</item>
		<item>
			<title>Re: Add clip and intersect surface to right click menu?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=159214#Post159214</link>
			<description>
			<![CDATA[<b>Posted by</b> Elsubstar:<br />
			Brilliant! Thank you oz!]]>
			</description>
			<pubDate>Fri, 19 Aug 2011 07:15:58 EDT</pubDate>
		</item>
		<item>
			<title>Re: for each in worksheet</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=159167#Post159167</link>
			<description>
			<![CDATA[<b>Posted by</b> James Russell:<br />
			Michael,

Just a word of warning from prior death by tables. 

I thought it was cool to do mega loops involving mass data changes, line styles and font. 

Firstly, when I read from Pat about SetWSAutoRecalcState in regards to worksheet scripting was the happiest week for a while. Cutting creation time to a tenth of previously. You're probably all over it but never hurts to reiterate for others.

Secondly, the moment I started to do mass changes when I had larger numbers of database lookups with more subrows everything slows exponentially. When I run one of my scripts on a table which has somewhere between 500 and 4000 database lookups, (don't ask why, it's the crazy!)  it normally completes in around 15 seconds when none of them have data. When there are approximately 200 databases containing data the script time increases to around 3 mins, 1000 containing data, 8 mins.

I'm sure your databases/worksheets are nothing quite this radical but just as fair warning make your scrip]]>
			</description>
			<pubDate>Thu, 18 Aug 2011 00:29:28 EDT</pubDate>
		</item>
		<item>
			<title>Re: color picker</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=159150#Post159150</link>
			<description>
			<![CDATA[<b>Posted by</b> Pat Stanford:<br />
			Check out the VSSetColorChoice command on the  online VS Function Reference

http://developer.vectorworks.net/index.php?title=VS:SetColorChoice

The sample script on that page let's you get the the color picker through a couple of steps.

If you only want to display the palette that is in the drawing I think you can use the CreateColorPopup command in a dialog handler.

]]>
			</description>
			<pubDate>Wed, 17 Aug 2011 13:23:27 EDT</pubDate>
		</item>
		<item>
			<title>Re: Redraw 3D-PIO when changing view</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=159131#Post159131</link>
			<description>
			<![CDATA[<b>Posted by</b> CodeGier:<br />
			Josh, Miguel,

can't believe it was that easy! Thanks for pushing me in the right direction. 

Miguel I agree with your statement. It would be a very useful feature to have full control in drawing your hybrid PIO.

Josef]]>
			</description>
			<pubDate>Wed, 17 Aug 2011 02:13:44 EDT</pubDate>
		</item>
		<item>
			<title>Re: Vectorscript for a Newbie</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=159017#Post159017</link>
			<description>
			<![CDATA[<b>Posted by</b> Pat Stanford:<br />
			Steve,

I think I have a script to do what you want.

Can you send me a test file with a few symbols that need to be converted in it?

Use the email in my signature.
]]>
			</description>
			<pubDate>Fri, 12 Aug 2011 22:51:14 EDT</pubDate>
		</item>
		<item>
			<title>Re: Is there an upon keystroke command?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=158988#Post158988</link>
			<description>
			<![CDATA[<b>Posted by</b> James Russell:<br />
			Maarten,

I knew there'd have to be one. Thanks.

J]]>
			</description>
			<pubDate>Thu, 11 Aug 2011 23:44:46 EDT</pubDate>
		</item>
		<item>
			<title>Re: Custom Tool - Dash Styles</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=158858#Post158858</link>
			<description>
			<![CDATA[<b>Posted by</b> maarten.:<br />
			PenPat(-4); should be your dash style.
If not, try this:

Activate your dash style in the attribute palette and run this script:

Message(FPenPat);

Fill in the value that you'll find in the messagebox in
PenPat(value);]]>
			</description>
			<pubDate>Wed, 10 Aug 2011 03:15:50 EDT</pubDate>
		</item>
		<item>
			<title>Re: ForEachObjectInLayer</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=158613#Post158613</link>
			<description>
			<![CDATA[<b>Posted by</b> James Russell:<br />
			Hey all,

Thanks for great responses here. I've had a read through all and have just tested your script Pat.

It's all good in terms of rotating the symbol within the group and I'm pretty sure I can play with the IF constraints to isolate it to a symbol as required the only issue it that the rotation seems to be around the group centre not symbol centre. 

See the attached file for results and a little more insight.

Thankyou for the responses Raymond and Miguel, it's little snippets like this that'll get me over the line at some stage ;)

Cheers,

J]]>
			</description>
			<pubDate>Wed, 03 Aug 2011 00:48:57 EDT</pubDate>
		</item>
		<item>
			<title>Re: Changing  Layers Name.</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=158426#Post158426</link>
			<description>
			<![CDATA[<b>Posted by</b> ALB:<br />
			[quote=maarten.]GetName Doesn't work indeed, that's because the Layers aren't part of the NameList (and GetName use that list).

But SetName should work. Have you tried SetName? It works fine here... [/quote]


Yes, you're right! Thank you very much!

My mistake was [i]GetLVis(h)=1[/i].
Possible values are:
Normal	0
Grayed	2
Invisible	-1 

This is my final script:

[i]Procedure prefix_visible_layer_names;
VAR
stringa, layer_name,new_name:STRING;
h:HANDLE;

BEGIN
	stringa:=StrDialog('Prefix string', '001.A' );
	h:=FLayer; 

While hNIL DO BEGIN

IF GetLVis(h)=0 THEN BEGIN;

layer_name:=GetLName(h);
new_name:=CONCAT(stringa,' ',layer_name);
SetName(h,new_name);
			END;

h:=NextLayer(h);
END;

END;
RUN (prefix_visible_layer_names);[/i]]]>
			</description>
			<pubDate>Thu, 28 Jul 2011 03:04:29 EDT</pubDate>
		</item>
		<item>
			<title>Re: VectorWorks Installation Directory</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=158324#Post158324</link>
			<description>
			<![CDATA[<b>Posted by</b> Jack_1983:<br />
			Thanks a lot Josh,
I'll change the plugin installation directory with the one you pointed out.
As for the registry key, somehow, I am missing the Path key you mentioned. I mean, I have the whole VectorWorks folder, but it is empty.
I'll uninstall VW and then reinstall it again to see if this solves my issue.

Jack
]]>
			</description>
			<pubDate>Mon, 25 Jul 2011 11:54:44 EDT</pubDate>
		</item>
		<item>
			<title>Re: do nenu text by name &amp;quot;Add Surface&amp;quot;</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=158241#Post158241</link>
			<description>
			<![CDATA[<b>Posted by</b> maarten.:<br />
			If they are square, you could do something like this:

make an array and save the bounding box in it.
Loop trough the array and see if the {x2,y1},{x2,y2} of one object is the same as the {x1,y1},{x1,y2} of an other object, if so, they connect on one side and you can add their surface. Save their new bounding box in the array.
Do the same thing in the vertical direction.
]]>
			</description>
			<pubDate>Sat, 23 Jul 2011 00:35:11 EDT</pubDate>
		</item>
		<item>
			<title>Re: BuildResourceList How big could it be?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=158158#Post158158</link>
			<description>
			<![CDATA[<b>Posted by</b> Assembly:<br />
			Thank you, Maarten. Thats a good news. 5000 symbols is probably way more than I need, but I've got plenty of RAM and time to run the loop. ]]>
			</description>
			<pubDate>Thu, 21 Jul 2011 19:59:28 EDT</pubDate>
		</item>
		<item>
			<title>Re: Symbol Library - Editing with Scripts</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=158122#Post158122</link>
			<description>
			<![CDATA[<b>Posted by</b> James Russell:<br />
			Thanks Maarten and Josh,

Maarten - I tried the change, no result yet but I think I still need to do a bit more reading about handles and referencing.

Josh - Change one field you say... Ah! This is a work around for part b) of my problem. There are two outcomes that I wanted to achieve from this. The first being object manipulation through a script from within the resource browser, ie. Select a few symbols in your browser and have them all filled black or width increased by 100mm.

The second part was record manipulation. Much like your Instrument Maintenance can rewrite the base Light Info Record on a fixture but on a batch scale. I've done some modifications to the Light Info Record (not quite mastered yet mind you), in an attempt to give a lamp a specific Label Legend upon insertion, ie. Fluro batten having an elongated Label, ganged cyc units and small conventionals vs large conventionals. In this case I was hoping to just select the fixtures in my library and much like the ]]>
			</description>
			<pubDate>Wed, 20 Jul 2011 19:52:12 EDT</pubDate>
		</item>
		<item>
			<title>Re: Script made on VW 11.5 doesn't work on VW2008</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=158076#Post158076</link>
			<description>
			<![CDATA[<b>Posted by</b> maarten.:<br />
			Are you sure your lines are the correct red? It has to be the 7th (i=7) colour of the &quot;Classic VW colour palette&quot; (wel, actually, the 8th one because white=0, black=1, ... yellow=5, green=6 and red=7)

RGBToColorIndex(r,g,b,i);
IF i=7 THEN h1:=hl;]]>
			</description>
			<pubDate>Wed, 20 Jul 2011 06:49:32 EDT</pubDate>
		</item>
		<item>
			<title>Re: SetWSPlacement - Values?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=158069#Post158069</link>
			<description>
			<![CDATA[<b>Posted by</b> James Russell:<br />
			Thanks Pat,

Seems only one screen. It's odd that before it would insist on putting my worksheets on my third monitor and now it only wants them on my first. I thought it might be related to where the dialog box was or the pallet/resource browser you were using to run the script but right now it seems it's irrelevant.

Strange about the change in scale.

Cheers,

James]]>
			</description>
			<pubDate>Tue, 19 Jul 2011 22:05:26 EDT</pubDate>
		</item>
		<item>
			<title>Re: Scaling symbol inside a PIO</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=157887#Post157887</link>
			<description>
			<![CDATA[<b>Posted by</b> VectorGeek:<br />
			And Waldo worked perfectly. Thanks Pat and Josh!


V-G.]]>
			</description>
			<pubDate>Thu, 14 Jul 2011 20:17:57 EDT</pubDate>
		</item>
		<item>
			<title>Re: Export Symbol into Different VW file through vectorscript</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=157721#Post157721</link>
			<description>
			<![CDATA[<b>Posted by</b> Assembly:<br />
			Hi, Pat. 

I took your advice and had a look at options which applescript gives and I think I found the solution.

Thank you!]]>
			</description>
			<pubDate>Thu, 07 Jul 2011 17:48:55 EDT</pubDate>
		</item>
		<item>
			<title>Re: Change default PIO parameters from script.</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=157671#Post157671</link>
			<description>
			<![CDATA[<b>Posted by</b> JBenghiat:<br />
			Yes.  Basically, getting a handle to an object with the name of your PIO will let you access document defaults.  Something like this:

[code]
recHan:=GetObject(kObjectName);
	
IF recHan=NIL THEN BEGIN
	tmpHan:=CreateCustomObjectN(kObjectName, 0, 0, 0, FALSE);
	DelObject(tmpHan);
	recHan:=GetObject(kObjectName);
END;
[/code]

In the second part, if the the PIO has not yet been placed in the document, I add an instance, then delete it, which reates the defaults record.

-Josh]]>
			</description>
			<pubDate>Wed, 06 Jul 2011 11:34:45 EDT</pubDate>
		</item>
		<item>
			<title>Re: change hatch fill via script</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=157562#Post157562</link>
			<description>
			<![CDATA[<b>Posted by</b> myf:<br />
			Another time &quot;WOW&quot;

you are great,
i think i will need monthss to understand that,
but i will try.

Thanks to your nice written code,
i can understand at least a little bit...

Dank je well
mika]]>
			</description>
			<pubDate>Thu, 30 Jun 2011 13:21:27 EDT</pubDate>
		</item>
		<item>
			<title>Re: Procedure as Variable</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=157464#Post157464</link>
			<description>
			<![CDATA[<b>Posted by</b> maarten.:<br />
			http://techboard.nemetschek.net/ubbthreads.php?ubb=showflat&amp;Number=151361#Post151361]]>
			</description>
			<pubDate>Tue, 28 Jun 2011 02:49:13 EDT</pubDate>
		</item>
		<item>
			<title>Re: Class visibilities in VPs</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=157267#Post157267</link>
			<description>
			<![CDATA[<b>Posted by</b> Miguel Barrera:<br />
			
Have not tried this function yet but it seems this is what you want.

FUNCTION SetVPClassVisibility(                viewportHandle   :HANDLE;                className        :STRING;                visibilityType   :INTEGER) : BOOLEAN;

visibilityType values: 
-1 invisible, 
0 visible, 
2 gray 
]]>
			</description>
			<pubDate>Thu, 23 Jun 2011 09:56:12 EDT</pubDate>
		</item>
		<item>
			<title>Re: Shifting Object to a new or existing Layer</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=157077#Post157077</link>
			<description>
			<![CDATA[<b>Posted by</b> John Gr:<br />
			Hi Josh

Excellent --


temp := SetParent(FSActLayer, GetLayerByName('Panel Layer'));



This one line script shifts Selected Object to a Layer called &quot;Panel Layer&quot;.

John]]>
			</description>
			<pubDate>Wed, 15 Jun 2011 18:13:14 EDT</pubDate>
		</item>
		<item>
			<title>Re: &amp;quot;External&amp;quot; control point</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156956#Post156956</link>
			<description>
			<![CDATA[<b>Posted by</b> andreavw:<br />
			Thank you all!
I make it event enabled; adding parameters by function is too complicated for me :( !]]>
			</description>
			<pubDate>Tue, 14 Jun 2011 03:48:16 EDT</pubDate>
		</item>
		<item>
			<title>Re: 3ds Export</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156836#Post156836</link>
			<description>
			<![CDATA[<b>Posted by</b> Jack_1983:<br />
			Thanks Miguel,
but unfortunately, I already tried this procedure and it doesn't seem to work. I'm sorry I forgot to mention it in my post.

Here's some calls that I tried, maybe I'm missing something and some of you could help me:
DoMenutTextByName('Export 3DS (3D Only)...',0); {exact name of the menu item}
DoMenuTextByName('Export 3DS',0); 
DoMenuTextByName('Export',14); {try calling it by referencing with the submenu...}
And even more combinations that seemed to me just like wasted prayers...

Did anyone of you actually make it work?
Thanks again

Jack

EDIT: I just found the solution (Google was my friend, again, and redirected me just on this very board... :) )
So, to make it work, you need to use the file name found in the Plug-ins directory of Vectorworks, just like this:
DoMenuTextByName('3DS Export',0);
]]>
			</description>
			<pubDate>Thu, 09 Jun 2011 03:27:37 EDT</pubDate>
		</item>
		<item>
			<title>Re: Function with dynarray of char.</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156813#Post156813</link>
			<description>
			<![CDATA[<b>Posted by</b> musisback:<br />
			Thanks Miguel, this way is much easier...]]>
			</description>
			<pubDate>Wed, 08 Jun 2011 04:16:49 EDT</pubDate>
		</item>
		<item>
			<title>Re: A few problems in creating classes script</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156812#Post156812</link>
			<description>
			<![CDATA[<b>Posted by</b> RDS Casa:<br />
			Thanks, I'll let you know how I get on. A long way to go for me I think.]]>
			</description>
			<pubDate>Wed, 08 Jun 2011 04:16:10 EDT</pubDate>
		</item>
		<item>
			<title>Re: Localization</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156782#Post156782</link>
			<description>
			<![CDATA[<b>Posted by</b> klinzey:<br />
			Any strings used in the code that need to be localized should be exposed as plug-in strings.
Localization must be done for each language. Typically this is done by the localizing distributor.
There is a tool available for localizing plug-ins available. 

The tool is not pubically available, please send me a private message with your email address and contact information and I can make arrangements to provide you with the tool.

Kevin]]>
			</description>
			<pubDate>Tue, 07 Jun 2011 14:11:22 EDT</pubDate>
		</item>
		<item>
			<title>Re: GetPt &amp;amp; GetPtL crashes VW</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156750#Post156750</link>
			<description>
			<![CDATA[<b>Posted by</b> DCarpenter:<br />
			Miguel,

I might use two control points.  Once again, I always appreciate your input.  Thanks.  

Regarding the GetPtL saga, I only know enough about Vectorsript to get myself in trouble so I don't know if I can speak much into the &quot;event loop&quot; discussion, all I know is it doesn't make sense.

Always appreciative of your help,  Thanks.]]>
			</description>
			<pubDate>Mon, 06 Jun 2011 15:53:32 EDT</pubDate>
		</item>
		<item>
			<title>Re: Creating poly with 2 vertices doesn't appear to work</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156650#Post156650</link>
			<description>
			<![CDATA[<b>Posted by</b> MullinRJ:<br />
			[quote=IanH]In the end, for the special case of only 2 vertices, I simply drew a line between start and end then converted to polyline with the aid of the very useful LNewObj function making it a cinch. Oddly enough, it created a 2 vertex polygon!
[/quote]
Actually, it's not that odd. Polygons are really a degenerate case of Polylines. Remove all the curvy parts, show all the sides, and you've got a Polygon. Since a Line has no curvy parts, it defaults to becoming a Polygon when converted. You can create a Polyline with only Corner Points, but you have to be careful you don't cajole VW into &quot;downgrading&quot; it for you. The method I outlined above is the only way I know of to create a 2-vertex Polyline via VS. There may be others, but I usually stop looking after I find the first way that works.

I agree with you that VS is a function-rich language, but I don't think of the language as feature poor, but rather the compiler. VS is not a fully implemented version of Pascal, allocating me]]>
			</description>
			<pubDate>Thu, 02 Jun 2011 18:58:22 EDT</pubDate>
		</item>
		<item>
			<title>Re: Vectorscript Compiler - Easier way?</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156645#Post156645</link>
			<description>
			<![CDATA[<b>Posted by</b> Fuge:<br />
			Ahh got it's a toggle to force compiling...  Perfect!

Thanks for your quick reply...

:)
]]>
			</description>
			<pubDate>Thu, 02 Jun 2011 12:20:27 EDT</pubDate>
		</item>
		<item>
			<title>Re: Change &amp;quot;alternate name&amp;quot; (parameter)</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156607#Post156607</link>
			<description>
			<![CDATA[<b>Posted by</b> andreavw:<br />
			I made it!! :)

-------------------------
procedure TEST;

CONST
	overrideid=8;
VAR
	result:BOOLEAN;

BEGIN
result:= SetObjPropVS(overrideid, true);
result:= vsoAppendParamWidget(parameter_number,new_text, 0);
END;

run(TEST);
-------------------------
]]>
			</description>
			<pubDate>Wed, 01 Jun 2011 12:30:41 EDT</pubDate>
		</item>
		<item>
			<title>Re: VS insert bitmap</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156578#Post156578</link>
			<description>
			<![CDATA[<b>Posted by</b> Assembly:<br />
			Anyone know how to insert a bmp or any type of image file with VS?.]]>
			</description>
			<pubDate>Tue, 31 May 2011 15:34:06 EDT</pubDate>
		</item>
		<item>
			<title>Re: Snap to xref vw 2009</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156506#Post156506</link>
			<description>
			<![CDATA[<b>Posted by</b> jbtfp:<br />
			How to snap to an xref layer (vw 2009 basic)?
Need to draw some objects in a new layer but have to use the xref layers as a base for some points. I know it was possible in vw12.

Thanks for info!
]]>
			</description>
			<pubDate>Sun, 29 May 2011 17:18:41 EDT</pubDate>
		</item>
		<item>
			<title>Re: Gradient fill not visible</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156361#Post156361</link>
			<description>
			<![CDATA[<b>Posted by</b> MullinRJ:<br />
			Dave, You are very welcome. I filed a bug report referencing this thread, so maybe it won't be a bug for long. 

The Rectangle and Rounded Rectangle seem to be the only shapes that receive the gradient fill from the FillPat() command. Arcs/Circles, Polys, Polylines and Ovals do not. For these shapes, use the manual method from above.

Raymond]]>
			</description>
			<pubDate>Thu, 26 May 2011 03:25:42 EDT</pubDate>
		</item>
		<item>
			<title>Re: Getting the source layer of a layer link</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156301#Post156301</link>
			<description>
			<![CDATA[<b>Posted by</b> musisback:<br />
			Thanks,

 I have another probleme now though.

I cannot change the class of a layer link with the procedure setclass(LayerlinkHandle, classname).

weird....

]]>
			</description>
			<pubDate>Tue, 24 May 2011 08:37:50 EDT</pubDate>
		</item>
		<item>
			<title>Re: BuildResourceList - For a custom location.</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156242#Post156242</link>
			<description>
			<![CDATA[<b>Posted by</b> maarten.:<br />
			It is not possible according to the VS Language guide (see &quot;What VectorScript Can't Do&quot;)

The only thing i can think of is working with favourites. When you add that file on your server to your favourites (in the resource browser), a shortcut to that file will be added to your library and you can make a list of that with BuildResourceList.]]>
			</description>
			<pubDate>Mon, 23 May 2011 03:51:29 EDT</pubDate>
		</item>
		<item>
			<title>Re: Returning VAR to the OIP</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156161#Post156161</link>
			<description>
			<![CDATA[<b>Posted by</b> Assembly:<br />
			Yes DWorks that is it. 
I just realized I can use a static text type on the PIO and set that.
Easy 
]]>
			</description>
			<pubDate>Fri, 20 May 2011 07:31:53 EDT</pubDate>
		</item>
		<item>
			<title>Re: Workspace Setups</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156155#Post156155</link>
			<description>
			<![CDATA[<b>Posted by</b> maarten.:<br />
			Two workspaces?

But be aware, the position of the palettes are also saved in one of the user settings files, those overrule the positions of the workspace.]]>
			</description>
			<pubDate>Fri, 20 May 2011 02:15:19 EDT</pubDate>
		</item>
		<item>
			<title>Re: gradient fill angle</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156134#Post156134</link>
			<description>
			<![CDATA[<b>Posted by</b> DCarpenter:<br />
			I was finally able to get my gradient to map correctly using:

SetFillOriginPoint(handle,AGRAD[i].x,AGRAD[i].y); {begining point of the gradient}
SetFillIAxisEndPoint(handle,BGRAD[i].x,BGRAD[i].y); {ending point of the gradient}

but wound up not having to use SetFillJAxisEndPoint(handle,AGRAD[i].x,AGRAD[i].y); in my script.

Dave]]>
			</description>
			<pubDate>Thu, 19 May 2011 12:57:55 EDT</pubDate>
		</item>
		<item>
			<title>Re: Controlling the mapping of a gradient</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156132#Post156132</link>
			<description>
			<![CDATA[<b>Posted by</b> DCarpenter:<br />
			I was finally able to get my gradient to map correctly using:

SetFillOriginPoint(handle,AGRAD[i].x,AGRAD[i].y); {begining point of the gradient}
SetFillIAxisEndPoint(handle,BGRAD[i].x,BGRAD[i].y); {ending point of the gradient}

but wound up not having to use SetFillJAxisEndPoint(handle,AGRAD[i].x,AGRAD[i].y); in my script.

Dave]]>
			</description>
			<pubDate>Thu, 19 May 2011 12:34:26 EDT</pubDate>
		</item>
		<item>
			<title>Re: Export Resource to File</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=156069#Post156069</link>
			<description>
			<![CDATA[<b>Posted by</b> Assembly:<br />
			I'd like to be able to use a menu to export symbols to specific files. 
But I think file access is outside VS scope. 
Can it be done? ]]>
			</description>
			<pubDate>Wed, 18 May 2011 06:02:45 EDT</pubDate>
		</item>
		<item>
			<title>Re: Resource lists from external files.</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=155836#Post155836</link>
			<description>
			<![CDATA[<b>Posted by</b> Assembly:<br />
			Got it.

BuildResourceList(defConResType, defConFoldID, '', defConCount);

The '' is for a sub folder. 
I created a subfolder in the user directory and included the folder name.

BuildResourceList(defConResType, defConFoldID, 'Basin', defConCount);

This now loads only the symbols from basins. ]]>
			</description>
			<pubDate>Thu, 12 May 2011 03:03:53 EDT</pubDate>
		</item>
		<item>
			<title>Re: updating symbols</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=155670#Post155670</link>
			<description>
			<![CDATA[<b>Posted by</b> J. Miller:<br />
			Thanks for the input Pat.
I will give this a try

Jeff]]>
			</description>
			<pubDate>Sun, 08 May 2011 10:50:35 EDT</pubDate>
		</item>
		<item>
			<title>Re: Return In Message()</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=155583#Post155583</link>
			<description>
			<![CDATA[<b>Posted by</b> James Russell:<br />
			Oh, well that's boring.

Thanks for testing it never the less Pat.

Cheers,

J]]>
			</description>
			<pubDate>Thu, 05 May 2011 21:25:49 EDT</pubDate>
		</item>
		<item>
			<title>Re: Setting &amp;quot;Snap to working plane&amp;quot; on</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=155435#Post155435</link>
			<description>
			<![CDATA[<b>Posted by</b> musisback:<br />
			Well, it does not allow to get the present snapping status. I guess it is just not possible in VW 2010 (in vectorscript)]]>
			</description>
			<pubDate>Mon, 02 May 2011 08:51:29 EDT</pubDate>
		</item>
		<item>
			<title>Re: Recalculate Individual Worksheet</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=155090#Post155090</link>
			<description>
			<![CDATA[<b>Posted by</b> orso b. schmid:<br />
			Hi, it's a bit tricky:

there is the Worksheet preference &quot;autoRecalc&quot;. If that is TRUE, the worksheet will 
* before VW 2011 or 10 (I should check) using the command &quot;recalculate&quot; would recalc ALL worksheets whose pref &quot;AutoRecalc&quot; was true. Both running &quot;Recalculate&quot; from inside an open Worksheet window or contextual menu.
* in the current version, the command &quot;recalculate&quot; will recalc all worksheets, unregarded if their option autorecalc is on or not.

I find this good, because too often I have about 50 worksheets and no wish whatsoever to miss one from recalcs which are tied to loads of referenced data. I am VERY happy that now &quot;recalculate&quot; fetches everything.

When you script this kind of action you should remember that worksheets will only recalculate by script upon running &quot;RecalculateWS&quot; if their autorecalc flag is active. So you need to
* fetch handle to worksheet definition
* check its autorecalc state using GetWSAutoRecalcState, store it
* if this returns FALSE, ]]>
			</description>
			<pubDate>Sat, 23 Apr 2011 02:07:07 EDT</pubDate>
		</item>
		<item>
			<title>Re: Green Message on message bar</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=154892#Post154892</link>
			<description>
			<![CDATA[<b>Posted by</b> Pat Stanford:<br />
			I don't think the green message option has been exposed to VS. At least it was not the last time I looked into it.]]>
			</description>
			<pubDate>Mon, 18 Apr 2011 12:23:31 EDT</pubDate>
		</item>
		<item>
			<title>Re: Disable reset on move from script;</title>
			<link>http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&amp;Number=154885#Post154885</link>
			<description>
			<![CDATA[<b>Posted by</b> Miguel Barrera:<br />
			As far as I know you cannot disable it by a function call. However, you can prevent the move3Dobj procedure from executing in the script.

If the currently executing pio is part of the list then exclude it from the procedure:

IF objhd  curPioHd THEN
  move3Dobj(objhd);


You can further perform selective execution by sending messages to other pio before moving or resetting them. For example, only those receiving a 'move' message will be included in the move3Dobj procedure.
]]>
			</description>
			<pubDate>Mon, 18 Apr 2011 10:19:41 EDT</pubDate>
		</item>
	</channel>
</rss>
