Kinook Software Forums

Kinook Software Forums (http://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (http://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   list macros from Powershell? (http://www.kinook.com/Forum/showthread.php?t=3639)

tan125 05-28-2008 01:47 PM

list macros from Powershell?
 
Using vbscript, you can use vbld_AddDelimValue to set a temporary macro to the value of a list. Is there a method/way to do this within a Powershell step? Is there an equivalent Powershell command that does the same thing?

kinook 05-28-2008 02:20 PM

1 Attachment(s)
PowerShell is not currently integrated to the same degree as Active Scripting languages (VBScript, JScript, Python, RubyScript, etc.), so it doesn't have access to the live VBP object model for creating/updating temporary macros, etc. (deeper integration with PowerShell is something we'd like to add in the future).

From a PowerShell script, you can create another instance of the VBP object model and create/update a global macro, which would then be accessible from the calling VBP project (see attached sample).

tan125 05-28-2008 02:45 PM

Thanks!

I assume the "2" in $global = $app.Macros(2) refers to the type of macro being created (in this case, global)?

-Tom

kinook 05-28-2008 02:55 PM

Correct.
http://www.visualbuild.com/Manual/macrosproperty.htm


All times are GMT -5. The time now is 08:31 AM.


Copyright 1999-2019 Kinook Software, Inc.